Help on how to learn Lua/Love the best.

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Java
Prole
Posts: 8
Joined: Wed Mar 07, 2012 12:09 am

Help on how to learn Lua/Love the best.

Post by Java »

Alright, well i have looked at the Wiki, and its just hard for me to grasp love. and i want to better learn myself so i can fully understand this code. i would probably have to learn lua, obviously. so i was wondering how should/could i start out and learn the best? thank you in the future.
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: Help on how to learn Lua/Love the best.

Post by MarekkPie »

Programming in Lua is probably the best online resource available.
User avatar
lots_of_birds
Prole
Posts: 13
Joined: Sun Dec 11, 2011 12:09 pm

Re: Help on how to learn Lua/Love the best.

Post by lots_of_birds »

What did you already tried ?
Do you already know other programming languages, or is it your first.

More details could help us to make a good response
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: Help on how to learn Lua/Love the best.

Post by veethree »

Learning lua for me was pretty easy since i had some experience with programming before i got into the whole game programming thing. But i'd say the best way to learn if you have no prior experience is first find some tutorials. There's a guy here on the forums (baconhawka7x) who i is making video tutorial series on löve, Don't think he's abandoned that yet. You could check that out for the basics. Another great source of tutorials is the wiki. I personally learned most of the basics there.

Once you got some of the basics down try making your first game. I'd recommend something like a pong or breakout clone.

You can also learn alot from reading other peoples code. Find some simple game in the projects and demos section and look over the code. you could check out my game "pop", I'm pretty sure it's the simplest game i've seen on here to date.
User avatar
tsturzl
Party member
Posts: 161
Joined: Fri Apr 08, 2011 3:24 am

Re: Help on how to learn Lua/Love the best.

Post by tsturzl »

Lua is pretty easy. What threw me for a spin was the way the object oriented system worked, but now I actually really like it. I was so used to C++, python, ruby, and php's OO style that lua was a bit odd to learn.

Love is pretty easy to learn also. Just read some tutorials on the wiki.
User avatar
anorak
Prole
Posts: 11
Joined: Mon Mar 25, 2013 8:10 am

Re: Help on how to learn Lua/Love the best.

Post by anorak »

I wrote a Lua tutorial aimed at people who already know one programming language (or more) and want a fast and friendly introduction to Lua. It's called Learn Lua in 15 Minutes.
User avatar
shatterblast
Party member
Posts: 136
Joined: Tue Dec 11, 2012 9:47 pm
Location: Dallas, Texas, USA

Re: Help on how to learn Lua/Love the best.

Post by shatterblast »

I stole this link from another thread, but I found it useful.

http://nova-fusion.com/2012/08/27/lua-f ... rs-part-1/
batatinha
Prole
Posts: 22
Joined: Mon Jun 24, 2013 3:49 am

Re: Help on how to learn Lua/Love the best.

Post by batatinha »

@tsturzl
Lua do not have built in OO, the odd thing about every Lua OO is that is a workaround made most of times with metatables, which is such a pain in the ass... But if you really want it, there is libraries that make it a lot easier because it look like you're really creating objects, not copying metatables, but i don't know how to install libraries on Love.

Creating from the scratch with metatables:
http://lua-users.org/wiki/SimpleLuaClasses
(didn't checked the entire tutorial, but look like fine)

Library:
http://code.google.com/p/lua-class-lib/
scutheotaku
Party member
Posts: 235
Joined: Sat Dec 15, 2012 6:54 am

Re: Help on how to learn Lua/Love the best.

Post by scutheotaku »

batatinha wrote: Lua do not have built in OO
Well, technically that's not completely accurate. Lua does not have built-in class based object oriented programming, instead it has prototype based object oriented programming. I wouldn't consider Lua an object-oriented programming language (like C++, C#, Java, Objective-C, and PHP), but it does definitely have built-in support for OOP (with prototype-based OOP being just a few lines of simple code away, just as with, for example, Javascript).

In my opinion, by-far the best resource for learning how to OOP in Lua is the "Object-Oriented Programming" chapter of Programming in Lua, which brings you through the different type of OOP attainable in Lua. You can read it here (only read this if you have a good understanding of Lua tables - a topic well-covered earlier in this same book): http://www.lua.org/pil/16.html
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Help on how to learn Lua/Love the best.

Post by kikito »

anorak wrote:I wrote a Lua tutorial aimed at people who already know one programming language (or more) and want a fast and friendly introduction to Lua. It's called Learn Lua in 15 Minutes.
I just want to say that this is actually very good! Congrats!
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest