DEV Community

Discussion on: 5 reasons you should learn Lua

Collapse
 
jwoertink profile image
Jeremy Woertink

Making a game love2d.org/wiki/Getting_Started is fun way to start. Or just start by making a small console app and getting that to work. That will help you feel out the flow of lua.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

Very nice idea! Segway: what is the dotnotation in this function declaration function love.load().

Thread Thread
 
jwoertink profile image
Jeremy Woertink

Lua has 2 different type of notations. Since it's not an object oriented language, you can think of . like a class method, and : like an instance method. So love.load() vs love:load(). Lua basically determines what self is based on how you call the functions (if that makes sense)..