Tips To Learn Lua/Love2D

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
TheScriptan
Citizen
Posts: 56
Joined: Wed Feb 27, 2013 7:53 pm

Tips To Learn Lua/Love2D

Post by TheScriptan »

Hello everyone! I want to ask you guys one question. How I need to learn Lua/Love2D? Should I just learn basics of Lua and go right into the Love2D or should I learn Lua with some advanced functions like (metatables, arrays and more). I have experience in C++/C#, but I made a long break and I don't remember that much from these languages. I am really sorry that I am posting this, I know that there is tons of posts like this, but new post might be better for other people as well!:)
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Tips To Learn Lua/Love2D

Post by davisdude »

Definitely learn Lua first.
When I first started programming, I had very little understanding of Lua or LÖVE, and this made me form some very bad habits. I had no idea what I was doing, just "it worked in some other place, so it should work here."
But don't completely abandon LÖVE while learning Lua. I would integrate them, but focus more on the Lua aspect at first. Then, once you understand Lua well, focus more on LÖVE.
That's how I would do it if I could redo it.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
TomcisUMB
Prole
Posts: 9
Joined: Tue Apr 15, 2014 8:21 pm
Location: Vilnius, Lithuania

Re: Tips To Learn Lua/Love2D

Post by TomcisUMB »

TheScriptan
Citizen
Posts: 56
Joined: Wed Feb 27, 2013 7:53 pm

Re: Tips To Learn Lua/Love2D

Post by TheScriptan »

Thank you for the response, if I find a way, I will try to buy that book! :)
User avatar
OttoRobba
Party member
Posts: 104
Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil

Re: Tips To Learn Lua/Love2D

Post by OttoRobba »

Lua first, without question.
You can read the second edition of Programming in Lua here: http://www.lua.org/pil/contents.html

The first 7 chapters or so represent the core of what is done with Lua, covering functions, iterators, basics of tables, etc...
It should give you enough of a foundation to start testing and developing small things.

Also, Lua-Wiki has great resources (including benchmarks, tutorials and whatnot) and for me was a great way to learn a bit more.

This video is a nice intro to both Lua and LÖVE though:



PS: The "Lua for LÖVE" book is ok but you are probably better off either with the "Programming in Lua" or "Lua for Beginners". I like the former for being short and concise but the latter explains things at a slower pace and is preferred by some. :)
TheScriptan
Citizen
Posts: 56
Joined: Wed Feb 27, 2013 7:53 pm

Re: Tips To Learn Lua/Love2D

Post by TheScriptan »

Thank you for this wide response! I will definitely watch this video and maybe find those books! :) Now I am learning fundamentals of lua from website! :)
Post Reply

Who is online

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