Documentation errors/inaccuracies

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Merkoth
Party member
Posts: 186
Joined: Mon Feb 04, 2008 11:43 pm
Location: Buenos Aires, Argentina

Documentation errors/inaccuracies

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
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Documentation errors/inaccuracies

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?
User avatar
Merkoth
Party member
Posts: 186
Joined: Mon Feb 04, 2008 11:43 pm
Location: Buenos Aires, Argentina

Re: Documentation errors/inaccuracies

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
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 30 guests