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 » Wed Feb 06, 2008 4:00 am

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: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Documentation errors/inaccuracies

Post by rude » Wed Feb 06, 2008 6:51 pm

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 » Wed Feb 06, 2008 9:19 pm

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: No registered users and 5 guests