Name
A useful variable name describes the information stored.
Curriculum topic
Variables give names to information that can change. State describes which situation the whole system is currently in.
Why it matters
Scores, health, fuel, mood, timers, current questions, and robot modes all need memory. A named value lets students inspect that memory instead of hiding it inside a complicated script.
Real-world connection
A taxi meter remembers a fare while the vehicle moves. A game score and a robot patrol mode do the same kind of work: they preserve information so later decisions can use it.
The connection shows where the idea returns; it does not claim every advanced application is taught in this first topic.
Math and logic kernel
A useful variable name describes the information stored.
Every test should begin from a known value.
An event changes a value for a reason.
A label such as PLAYING, CAUGHT, or DELIVERING controls the current rules.
Small examples
Increase after a completed action, not every frame.
Store a changing need and show its effect.
Separate starting, playing, won, and lost behaviour.
Remember whether a machine is waiting, moving, or correcting.
Program connections
Beginner-friendly programming through original games, animations, simulations, and interactive stories.
Commands, sensors, simple electronics, simulations, and physical systems organized around Sense, Decide, Act.
A future bridge from visual programming to Lua, 3D objects, events, and larger game systems.
A future practical and critical program about patterns, predictions, prompts, limits, and human judgment.
Common mistakes
A new game begins with values from the previous run.
A score jumps unexpectedly because several scripts update it.
Variables called thing or number hide their purpose.
Hiding a variable monitor does not reset its stored value.
Lesson and projects
Create a virtual pet whose mood, energy, and trust change according to events and time.
Open projectNavigate a space taxi between coordinate-based pickups and destinations.
Open projectMeasure reaction time, store results, and decide what makes a timing test fair.
Open project