General discussion about LÖVE, Lua, game development, puns, and unicorns.
-
Merkoth
- Party member
- Posts: 186
- Joined: Mon Feb 04, 2008 11:43 pm
- Location: Buenos Aires, Argentina
Post
by Merkoth »
So, reading through the
almighty docs I found a few issues:
love.graphics:setBackgroundColor(r, g, b): the example block reads love.graphics:setBackground, may be confusing
love.graphics:draw(image, x, y, angle): we pass the angle in degrees or radians?
Two dumb issues, that's for sure, but should be fixed nevertheless n_n
Edit 1:
love.mouse:isDown( button ): the example block reads
Code: Select all
if love.mouse:mouse:isDown(love.mouse_left) then
-
rude
- Administrator
- Posts: 1052
- Joined: Mon Feb 04, 2008 3:58 pm
- Location: Oslo, Norway
Post
by rude »
Thanks, Merkoth. I'll fix that ASAP.
love.graphics:draw(image, x, y, angle) expects degrees, whereas Lua math uses radians. Maybe everything should be changed to radians?
-
Merkoth
- Party member
- Posts: 186
- Joined: Mon Feb 04, 2008 11:43 pm
- Location: Buenos Aires, Argentina
Post
by Merkoth »
IMHO, degrees are more "intuitive" but maybe that's just me. A simple math.rad() call won't kill me anyway n_n
Users browsing this forum: Ahrefs [Bot] and 4 guests