i'll LOVE it if someone helps....
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 2
- Joined: Sun Nov 22, 2009 5:25 am
i'll LOVE it if someone helps....
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...
- 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....
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.
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.
-
- Prole
- Posts: 2
- Joined: Sun Nov 22, 2009 5:25 am
Re: i'll LOVE it if someone helps....
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 )
one last thing............... i'll "OBEY" rude and change my avatar as soon as possible
one last thing............... i'll "OBEY" rude and change my avatar as soon as possible
Re: i'll LOVE it if someone helps....
Well, in 0.5.0 you can look in the "graphics" section of the documentation to draw a shape. An example is:
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.
Code: Select all
function draw()
love.graphics.setColor(255, 255, 255)
love.graphics.rectangle(love.draw_fill, x, y, width, height)
end
- 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....
Yes, in 0.6.0 the equivalent code will be: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.
Code: Select all
function love.draw()
love.graphics.setColor(255, 255, 255)
love.graphics.rectangle("fill", x, y, width, height)
end
Code: Select all
function love.draw()
love.graphics.rectangle("fill", x, y, width, height)
end
Help us help you: attach a .love.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests