Search found 37 matches

by SirRanjid
Thu Nov 30, 2017 9:14 am
Forum: Support and Development
Topic: Font density
Replies: 8
Views: 2389

Re: Font density

You could cut the string and put each letter into an array. Then iterate the draw over each letter and add a custom spacing. Could be sufficient for a spaced out title line. Don't know how much perf-loss it actually is over the build in version so a löve based ebook reader could be damn slow if not ...
by SirRanjid
Tue Nov 28, 2017 11:16 pm
Forum: Support and Development
Topic: [solved] Local mouse position for rotated panels.
Replies: 6
Views: 2211

Re: [solved] Local mouse position for rotated panels.

Ah wow now I see. Thats the kind of stupidity slipping through my stupidity radar :/ I would have just given +rep as stated in the rules to not bump again but it seems to be gone so: Thanks everyone for the help and clarification - much appreciated. c:
by SirRanjid
Tue Nov 28, 2017 9:49 pm
Forum: Support and Development
Topic: [solved] Local mouse position for rotated panels.
Replies: 6
Views: 2211

Re: [need help] Local mouse position for rotated panels.

Ok I just *randomly* fixed it like this: Not working: v.mx = v.mx - rx v.my = v.my - ry v.mx = v.mx * c - v.my * s v.my = v.mx * s + v.my * c v.mx = v.mx + rx v.my = v.my + ry Working: v.mx = v.mx - rx v.my = v.my - ry local vmx = v.mx * c - v.my * s local vmy = v.mx * s + v.my * c v.mx = vmx + rx v...
by SirRanjid
Tue Nov 28, 2017 8:32 pm
Forum: Support and Development
Topic: [solved] Local mouse position for rotated panels.
Replies: 6
Views: 2211

Re: [need help] Local mouse position for rotated panels.

Yeah I did this, it doubles the rotation. But since love.graphics.rotate rotates the scene rather than the object it makes sense this way. Thanks though! The local X position seems to be right while the local Y seems down scaled(with the pivot as [0,0]) as I just observed it again. Weird. Heres a gi...
by SirRanjid
Tue Nov 28, 2017 3:22 pm
Forum: Support and Development
Topic: [solved] Local mouse position for rotated panels.
Replies: 6
Views: 2211

[solved] Local mouse position for rotated panels.

So I'm rotating my panels as I also plan to also use them as bones for 2d models. Everything works so far except the local mouse position has a weird offset. local x,y,w,h,r,rx,ry = v:Layout() --[x,y]=pos [w,h]=size [r]=rotation [rx,ry]=pivot point offset+pos if r ~= 0 then love.graphics.translate(r...
by SirRanjid
Tue Nov 28, 2017 2:41 pm
Forum: Support and Development
Topic: Integrate Torch7 into LÖVE?
Replies: 3
Views: 1307

Re: Integrate Torch7 into LÖVE?

I'm really curious what you want to use Torch for? Combining ML and gamedev gets my imagination running wild. Mine too c: At first I just wanna play around. Maybe gui improvements. But mostly the enemy AI player... I wanna let 2 AI's compete for long enough to get a decent bot. The pro side is ever...
by SirRanjid
Mon Nov 20, 2017 8:14 pm
Forum: Support and Development
Topic: Integrate Torch7 into LÖVE?
Replies: 3
Views: 1307

Integrate Torch7 into LÖVE?

Hello I just started using löve which is super easy however I have no clue how to build a new love.exe with torch(http://torch.ch/) included. I followed "https://love2d.org/wiki/Building_L%C3%96VE" as far as possible (win 8 x64). So I got the löve and the torch source (both 64bit luajit (löve c++, t...