States: Idle, Running, Sleeping
Game characters live in states. A pet might be idle, then running, then sleeping — and the state decides what it does next.
What you'll learn
Drive behaviour from a state variable inside a loop.
💻 Code Editorjs
🎬
Press Run Code to see your creation!