Love Tutorials on headchant.com

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
headchant
Party member
Posts: 105
Joined: Fri Sep 03, 2010 12:39 pm
Contact:

Love Tutorials on headchant.com

Post by headchant »

I'm writing up a small tutorial for love2d on my blog on http://www.headchant.com!

In the tutorial series I will develop a small space invaders like game. The first couple of posts were about organizational stuff like choosing a text editor and how to set up love.

I hope this brings some more attention to this awesome framework :)

If you have any questions feel free to ask them here or in the comments of the blog posts. Let me know when you find anything I have done horribly wrong.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Love Tutorials on headchant.com

Post by Robin »

The flowchart contains two errors:
  1. "Love.load()" does not really start with a capital, you do this right the rest of the time.
  2. That's not really how it works. love.load() doesn't call love.update(), and love.update() and love.draw() don't call each other. On the other hand, it might be better to have an incorrect flowchart than the more complicated love.run().
  1. Fire up your Text Editor, make a new file called main.lua and save it to a new directory called “tut1″
I think you should say something more about this, it's really important and very easy to miss.
I missed part 0 of your tutorial, in which you do explain this. You could, however, link to that post, because people might have missed that part, just like I did.

In the code examples, proper indentation will make it easier to follow.

Nice work. :)
Help us help you: attach a .love.
User avatar
headchant
Party member
Posts: 105
Joined: Fri Sep 03, 2010 12:39 pm
Contact:

Re: Love Tutorials on headchant.com

Post by headchant »

Flowchart: Yes, I know it's incorrect but I think it helps to get a first understanding of the order in which the functions are executed. Maybe I should include a footnote stating this. I will change the incorrect capital letters later.

Links: Added links to all previous articles/parts of the tutorial series on the top of the page.

Thank you for pointing that out!
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Love Tutorials on headchant.com

Post by zac352 »

redlock wrote:Flowchart: Yes, I know it's incorrect but I think it helps to get a first understanding of the order in which the functions are executed. Maybe I should include a footnote stating this. I will change the incorrect capital letters later.
YOU SOUND EXACTLY LIKE MY TEACHER WHEN I TOLD HER THAT M$ ACCESS NAMED THE DATABASES AND TABLES WRONG! O_O

But anyway, if it wasn't for tutorials like yours, I never would have figured out how to use Glade to make GTK+ projects. :P
Hello, I am not dead.
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: Love Tutorials on headchant.com

Post by qubodup »

I was inspired by this tutorial and especially the diagram to make one myself: simple-game-making-1
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
User avatar
Ryne
Party member
Posts: 444
Joined: Fri Jan 29, 2010 11:10 am

Re: Love Tutorials on headchant.com

Post by Ryne »

qubodup wrote:I was inspired by this tutorial and especially the diagram to make one myself: simple-game-making-1
That's a rather nicely laid out tutorial. Easily explained for sure. I think all of the tutorials posted here are good, I just like those little images you used :)

Good job guys!
@rynesaur
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Love Tutorials on headchant.com

Post by tentus »

Ryne wrote:
qubodup wrote:I was inspired by this tutorial and especially the diagram to make one myself: simple-game-making-1
That's a rather nicely laid out tutorial. Easily explained for sure. I think all of the tutorials posted here are good, I just like those little images you used :)

Good job guys!
Wait, why don't we have tutorials put together in Love itself? That would be an excellent twofer, it seems so obvious!

On topic, I concur, those are some nice diagrams, well done.
Kurosuke needs beta testers
User avatar
headchant
Party member
Posts: 105
Joined: Fri Sep 03, 2010 12:39 pm
Contact:

Re: Love Tutorials on headchant.com

Post by headchant »

qubodup wrote:I was inspired by this tutorial and especially the diagram to make one myself: simple-game-making-1
Yes! Spread the love. Your diagram looks a lot nicer than mine. Will definitely add a link to your tutorial later on.
tentus wrote: Wait, why don't we have tutorials put together in Love itself?
Good idea. I just don't see how this should look like in practice. Could you elaborate and make an example?
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Love Tutorials on headchant.com

Post by tentus »

I was thinking of something about like this (except that I'm writing this on my Droid while on a bus, so I have no idea if it actually works, and it probably looks just awful).

Droid limitations aside, you get the idea. Interactive, animated, probably cuter that Lua the Cat with a bunch of strings. Something that stresses accessibility over everything else.
Attachments
tutorial.love
(918 Bytes) Downloaded 222 times
Kurosuke needs beta testers
User avatar
johnblanco
Prole
Posts: 1
Joined: Fri Dec 10, 2010 9:16 pm

Re: Love Tutorials on headchant.com

Post by johnblanco »

tentus wrote:I was thinking of something about like this (except that I'm writing this on my Droid while on a bus, so I have no idea if it actually works, and it probably looks just awful).

Droid limitations aside, you get the idea. Interactive, animated, probably cuter that Lua the Cat with a bunch of strings. Something that stresses accessibility over everything else.
Woah!

You are very talented, it's not easy to write a working program on a bus, it looks good too.

I never wrote a program and made it work the first time, no matter how simple.
Post Reply

Who is online

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