Search found 71 matches

by ingsoc451
Thu Mar 14, 2019 6:19 am
Forum: General
Topic: Putting Objects Into Strings
Replies: 5
Views: 188

Re: Putting Objects Into Strings

https://www.lua.org/manual/5.2/manual.html#pdf-tostring
you need to add __tostring metamethod to your userdata in C
or manually turn it to string in lua without using tostring
by ingsoc451
Thu Mar 14, 2019 6:08 am
Forum: Support and Development
Topic: Checking if variable = a or b then
Replies: 1
Views: 81

Re: Checking if variable = a or b then

if variable == a or variable == b then ... end
by ingsoc451
Thu Mar 14, 2019 5:57 am
Forum: Games and Creations
Topic: Get mouse coordinates on a rotated "grid"
Replies: 10
Views: 377

Re: Get mouse coordinates on a rotated "grid"

I think it is screen space/coordinates/position to world space/coordinates/position transformation/projection problem So maybe this helps? https://stackoverflow.com/questions/7692988/opengl-math-projecting-screen-space-to-world-space-coords https://stackoverflow.com/questions/46749675/opengl-mouse-c...
by ingsoc451
Wed Mar 13, 2019 10:21 am
Forum: General
Topic: Does Löve support Linux..??
Replies: 2
Views: 173

Re: Does Löve support Linux..??

it runs on android with an arm. It might give you the evidence you need
by ingsoc451
Fri Mar 08, 2019 3:38 am
Forum: Support and Development
Topic: Problem to make an Orbit (circle with sin(x) and cos(x)) [SOLVED]
Replies: 5
Views: 1032

Re: Problem to make an Orbit (circle with sin(x) and cos(x))

Ignore it, it is a copy-paste error (I was searching through some github projects at the time)
I used the equation from the following page to calculate speed
https://en.wikipedia.org/wiki/Elliptic_orbit
by ingsoc451
Fri Mar 08, 2019 12:45 am
Forum: Support and Development
Topic: Using vector images in Love?
Replies: 5
Views: 714

Re: Using vector images in Love?

https://github.com/poke1024/tove2d This seems to be pretty complete and actively maintained/developed. https://love2d.org/forums/viewtopic.php?f=5&t=86419#p226150 this is barebones svg to raster image using nanosvg But, in my opinion, converting to mesh makes more sense, unlike an image it can scale...
by ingsoc451
Thu Mar 07, 2019 3:41 am
Forum: Support and Development
Topic: Problem to make an Orbit (circle with sin(x) and cos(x)) [SOLVED]
Replies: 5
Views: 1032

Re: Proble to make an Orbit (circle with sin(x) and cos(x))

formula is (x_0, y_0) + (R1 * sin(t), R2 *cos(t)) for t= 0 to 2* PI
and R1 = R2 for circle
it seems like you are updating your initial points in the function foo, you probably meant "x = point.x + sin(a)" ?

edit: I tried something random... rather than fixing it
by ingsoc451
Tue Mar 05, 2019 7:54 am
Forum: Games and Creations
Topic: Tower Climb
Replies: 15
Views: 3350

Re: Tower Climb

you can also add zones with different gravity/friction
by ingsoc451
Sun Mar 03, 2019 9:07 pm
Forum: Libraries and Tools
Topic: svg rendering with nanosvg
Replies: 2
Views: 900

Re: svg rendering with nanosvg

Nice library (I think it is not on https://love2d.org/wiki/Category:Libraries)

I changed this to make it a little more convenient to use.