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} »

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 »

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 »

Try love.graphics.setLineStyle:

Code: Select all

love.graphics.setLineStyle("rough")
Help us help you: attach a .love.
User avatar
miko
Party member
Posts: 410
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

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

Post 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.
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} »

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: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

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

Post 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.
{coder}
Prole
Posts: 11
Joined: Thu Jan 05, 2012 3:43 am

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

Post by {coder} »

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: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post 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).
{coder}
Prole
Posts: 11
Joined: Thu Jan 05, 2012 3:43 am

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

Post by {coder} »

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 »

Kurosuke needs beta testers
Post Reply

Who is online

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