📄️ Scripting: Variables
Now that we've said Hello World, it's time to learn about something even more important: Variables! 🎉
📄️ Scripting: Comments
You may have noticed the // in some examples.
📄️ Scripting: Strings
In GraalScript, strings are sequences of text used to store words, phrases, or any other set of characters.
📄️ Scripting: Logic
Logic is what makes your scripts smart! It allows your code to make decisions and react to different situations. Think of it like teaching your script to think: "If this happens, then do that."
📄️ Scripting: Math
Math in programming is actually much simpler than what you learned in school! You'll mostly be doing basic calculations like addition, subtraction, and maybe some multiplication. Don't worry - no complex formulas here!
📄️ Scripting: Functions
Functions are like little helpers in your code! Think of them as containers that hold a set of instructions you want to use over and over again. Instead of writing the same code multiple times, you can put it in a function and just call that function whenever you need it.
📄️ Scripting: Timeouts & Looping
When building systems for your server, you'll often need scripts that run continuously. Examples include moving objects, updating displays, or checking conditions repeatedly.
📄️ Scripting: Keyboard and Mouse I/O
Now that you've mastered the basics, it's time to learn how to handle user input! This allows your scripts to respond to keyboard presses and mouse clicks, making your games truly interactive.