How to Get Started with Lua
Know that Lua has a strict syntax, or format, the way the program is set up., Know that the computer runs through the program line by line, starting from the top and working it's way all the way down to the bottom, unless told to go to another...
Step-by-Step Guide
-
Step 1: Know that Lua has a strict syntax
You must have a different command per line, and in those commands, if you get even a single dot wrong, the whole program will crash.
We will learn more about commands later in the tutorial. , It is helpful to know this when you are bugfixing, meaning going through and fixing mistakes in the code.
They can simply be typos, or complicated things. , A variable can be called anything, except for a number. , Just type what you want the variable to be called, then an = sign, then what you want the variable to store. -
Step 2: or format
-
Step 3: the way the program is set up.
-
Step 4: Know that the computer runs through the program line by line
-
Step 5: starting from the top and working it's way all the way down to the bottom
-
Step 6: unless told to go to another line.
-
Step 7: Know that Lua has variables
-
Step 8: an element which is extremely important.
-
Step 9: Make a variable.
Detailed Guide
You must have a different command per line, and in those commands, if you get even a single dot wrong, the whole program will crash.
We will learn more about commands later in the tutorial. , It is helpful to know this when you are bugfixing, meaning going through and fixing mistakes in the code.
They can simply be typos, or complicated things. , A variable can be called anything, except for a number. , Just type what you want the variable to be called, then an = sign, then what you want the variable to store.
About the Author
Timothy Ramirez
Specializes in breaking down complex lifestyle topics into simple steps.
Rate This Guide
How helpful was this guide? Click to rate: