Learn Lua in an Hour.
These are all the parts of a Lua tutorial video, "Learn Lua in an Hour" (rather fetching title). These scripts are meant to be world-editable — the details are at the bottom of this page.
- Introduction
- Docs, installation, and the interpreter
- Types
- Operators and flexible assignment
- Tables and print
- Functions and closures
- Chunks and comments
- Loops
- pairs and ipairs
- if, else, elseif
- io.read, io.write
- require and modules
- Error handling
- Useful standard library functions
- Metatables
- Tables as classes
- The lgraph example
- Adding a subclass
- Conclusion
These scripts are intended to be open to suggestions in the form of pull requests. I'd love to make changes that improve clarity without significantly changing the focus, and that don't exceed the hard 60 minute limit on the video time. If I accept your pull request, then my plan is to later re-record and upload the video with the edits inserted at the appropriate spot.
I hope this is a useful way to learn Lua! Constructive feedback is welcome! Nonconstructive feedback is dumb.
By the way, I'm using Lua to develop an independent game called Apanga. Check out apanga.net for more about that!