Game Logic: Keeping Score
Every game needs a score. Collect coins, add points, and check whether the player beat the target — that's game logic.
What you'll learn
Track state in a variable and check it against a goal.
💻 Code Editorjs
🎬
Press Run Code to see your creation!