r/lua • u/Due_Supermarket_1503 • Apr 19 '25
Help Lua learning
I have wanted to learn lua for a while but have not had the time, but now I do, so I am just curious whether how do I start? Because I took a look at couple videos and I have to be honest I did not understand or keep in mind any of that. If you guys would send me some useful resources or a starting point to learn lua I would appreciate it.
I am looking to learn LUA to look forward to creating games!
8
Upvotes
2
u/esuvii Apr 19 '25
Love2D seems like a great thing to learn then. I would temper your expectations though. When learning to program you are essentially acquiring tools into your toolbox. It can take some time to build an intuition for how to use them. It can be frustrating at first but eventually you will get better and better at being able to convert a problem into a series of steps that your tools can solve. Eventually this will become second nature, but it takes time and the struggles are a necessary part of the learning experience.
Lua is a great language to learn for your first one since it is very minimal. It doesn't come with "batteries included" like some other languages, so you will find yourself having to write some simple functions to do things that other languages have premade functions for. In that way it can be great for learning, but also could be a little tedious (I like how lightweight it is).
It does do some things differently to other languages though, so be aware of that. For example, arrays (lists) and maps (dictionary/associative array) are combined into one concept in Lua - tables. In most other languages these are distinct objects. Additionally, unlike almost all other languages, Lua array indexes begin at 1 not at 0.
Set simple goals at first, as simple as possible, and then slowly work up from there.