I tried to draw a rectangle using the parameters listed in the documentation:
love.graphics.rectangle( x, y, w, h )
But that didn't work, because it actually expects a fifth argument, like this:
love.graphics.rectangle( bOutline, x, y, w, h )
Where bOutline == 1 draws the box as just a perimeter, and anything else (so it seems) draws the rectangle as a filled box.
Just thought I'd mention this, as I've found the documentation to be very useful thus far, and this is the only place that tripped me up.
--Mr. Strange
draw rectangle parameters
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: draw rectangle parameters
This tripped me up aswell but you can check the demos to see how it's done.
The argument should actually be love.draw_line or love.draw_fill says the Constants page.
The argument should actually be love.draw_line or love.draw_fill says the Constants page.
Re: draw rectangle parameters
Thanks, Mr. Strange.
Who is online
Users browsing this forum: No registered users and 84 guests