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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
{coder}
Prole
Posts: 11
Joined: Thu Jan 05, 2012 3:43 am

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

Post by {coder} » Thu Jan 05, 2012 4:00 am

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.

User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

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

Post by MarekkPie » Thu Jan 05, 2012 6:44 am

You mind uploading the .love so we could look at it.

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post by Robin » Thu Jan 05, 2012 8:31 am

Try love.graphics.setLineStyle:

Code: Select all

love.graphics.setLineStyle("rough")
Help us help you: attach a .love.

User avatar
miko
Party member
Posts: 409
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

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

Post by miko » Thu Jan 05, 2012 8:52 am

{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.
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples

{coder}
Prole
Posts: 11
Joined: Thu Jan 05, 2012 3:43 am

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

Post by {coder} » Thu Jan 05, 2012 1:27 pm

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)

User avatar
thelinx
The Strongest
Posts: 847
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

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

Post by thelinx » Thu Jan 05, 2012 1:49 pm

{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.

{coder}
Prole
Posts: 11
Joined: Thu Jan 05, 2012 3:43 am

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

Post by {coder} » Thu Jan 05, 2012 8:53 pm

Thanks upgrading to 0.8.0 fixed it. Is there any problems I should look out for with 0.8.0?

User avatar
slime
Solid Snayke
Posts: 2858
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post by slime » Thu Jan 05, 2012 9:34 pm

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).

{coder}
Prole
Posts: 11
Joined: Thu Jan 05, 2012 3:43 am

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

Post by {coder} » Thu Jan 05, 2012 9:48 pm

So where can I find the documentation for 0.8.0?

User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

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

Post by tentus » Thu Jan 05, 2012 10:18 pm

Kurosuke needs beta testers

Post Reply

Who is online

Users browsing this forum: KayleMaster and 3 guests