i'll LOVE it if someone helps....

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
abhilash2863
Prole
Posts: 2
Joined: Sun Nov 22, 2009 5:25 am

i'll LOVE it if someone helps....

Post by abhilash2863 »

i've just downloaded LOVE engine i must say i'm LOVing it(sorry... can't resist using this word:) although i was able to make the first game that was given in the getting started section in wiki but there no further guidance on wat to do next....mostly examples are there but is there some sort of tutorial for beginners.....can some one suggest sites where there are tutorials for love...
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: i'll LOVE it if someone helps....

Post by Robin »

Maybe you've seen it already, but the Wiki does include quite a lot of tutorials. (For a nice collection, see: http://love2d.org/wiki/index.php?title=Tutorials)

Otherwise, just try things, keep the documentation at hand, and if you don't know what to do, ask the community, either on the forum or on IRC, about one specific problem you have at a time.
Help us help you: attach a .love.
abhilash2863
Prole
Posts: 2
Joined: Sun Nov 22, 2009 5:25 am

Re: i'll LOVE it if someone helps....

Post by abhilash2863 »

thanx for it.....i'll give it a more careful reading.....since i'm new to LOVE and lua it will take some more time for me to get hang of it becoz originally i'm a ActionScript programmer, by the way you said you can help.... i was trying to draw shape in love but i couldn't, since there was no example code for it in the docs(i was successful in loading a image :ultrahappy: )

one last thing............... i'll "OBEY" rude and change my avatar :megagrin: as soon as possible
User avatar
napco
Party member
Posts: 129
Joined: Fri Jun 12, 2009 9:28 pm
Location: Ital... ehm...

Re: i'll LOVE it if someone helps....

Post by napco »

Well, in 0.5.0 you can look in the "graphics" section of the documentation to draw a shape. An example is:

Code: Select all

function draw()
    love.graphics.setColor(255, 255, 255)
    love.graphics.rectangle(love.draw_fill, x, y, width, height)
end
You can change love.draw_fill with love.draw_line to draw only the borders. In 0.6.0 (it's a beta version of the next LOVE release) love.draw_fill and line have been replaced qith string constants, i think, and the draw callback is now called love.draw.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: i'll LOVE it if someone helps....

Post by Robin »

napco wrote:In 0.6.0 (it's a beta version of the next LOVE release) love.draw_fill and line have been replaced qith string constants, i think, and the draw callback is now called love.draw.
Yes, in 0.6.0 the equivalent code will be:

Code: Select all

function love.draw()
    love.graphics.setColor(255, 255, 255)
    love.graphics.rectangle("fill", x, y, width, height)
end
Or even better:

Code: Select all

function love.draw()
    love.graphics.rectangle("fill", x, y, width, height)
end
Since in both 0.5.0 and 0.6.0 white is already the default, this is better performance-wise. ;)
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests