Page 1 of 2

love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 4:00 am
by {coder}
Hello I started using LOVE today and I'm having problems. I'm using the code from http://love2d.org/wiki/Tutorial:Gridlocked_Player but when I use "line" to draw the "walls" the are not draw. If I change it to "fill" the are drawn. Everything else is working fine.

Re: love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 6:44 am
by MarekkPie
You mind uploading the .love so we could look at it.

Re: love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 8:31 am
by Robin
Try love.graphics.setLineStyle:

Code: Select all

love.graphics.setLineStyle("rough")

Re: love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 8:52 am
by miko
{coder} wrote:Hello I just started using love today and I'm having problems. I am using the code from http://love2d.org/wiki/Tutorial:Gridlocked_Player and it runs fine except is I draw the "walls" with "line" nothing is drawn but it is drawn with "fill"
On my graphics card (Intel) with love 0.7.2 I get no lines if those are of width 1 and are vertical/horizontal. So either use love.graphics.setLinewidth(2) or use love 0.8 which fixes this bug.

Re: love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 1:27 pm
by {coder}
miko wrote:
{coder} wrote:Hello I just started using love today and I'm having problems. I am using the code from http://love2d.org/wiki/Tutorial:Gridlocked_Player and it runs fine except is I draw the "walls" with "line" nothing is drawn but it is drawn with "fill"
On my graphics card (Intel) with love 0.7.2 I get no lines if those are of width 1 and are vertical/horizontal. So either use love.graphics.setLinewidth(2) or use love 0.8 which fixes this bug.
Hello I think this may be the problem I will test it later when I get back from school. I have Intel Intagrated graphics too and I had no idea there was a newer version(arch linux AUR has 7.2 I will see if the mantainer will update the package)

Re: love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 1:49 pm
by thelinx
{coder} wrote: Hello I think this may be the problem I will test it later when I get back from school. I have Intel Intagrated graphics too and I had no idea there was a newer version(arch linux AUR has 7.2 I will see if the mantainer will update the package)
The AUR package has 0.7.2 because that's the current stable release. If you want 0.8.0, get love-hg.

Re: love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 8:53 pm
by {coder}
Thanks upgrading to 0.8.0 fixed it. Is there any problems I should look out for with 0.8.0?

Re: love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 9:34 pm
by slime
Most of the remaining known issues are related to love.physics (which has been upgraded from box2d 2.0 to 2.2, so the API is a bit different as well).

Re: love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 9:48 pm
by {coder}
So where can I find the documentation for 0.8.0?

Re: love.graphics.rectangle("line"....Dose not work

Posted: Thu Jan 05, 2012 10:18 pm
by tentus