# Scratch Unit 125: Variables & Game State — Speed & Clean-Code Refactor > Structured speed & clean-code refactor for Variables & Game State: Counters, timers, flags, difficulty scaling, and sprite-local state. Modular Scratch curriculum Unit 125 (Variables & Game State — Speed & Clean-Code Refactor) with clear objectives, practice tasks, and verification steps. ## Unit 125 Learning Focus: Variables & Game State This module focuses on Counters, timers, flags, difficulty scaling, and sprite-local state, delivered as a focused speed & clean-code refactor suitable for self-study or a 20–45 minute classroom block. - [All 200 Modular Curriculum Units](/en/curriculum/): Browse the full 10-track curriculum sequence. - [Interactive Scratch Labs](/en/tools/): Test coordinates, angles, logic, lists, and probability live. **Unit 125 practice focus** - Goal: Apply Variables & Game State inside a small testable Scratch script - Method: Complete the Speed & Clean-Code Refactor step and predict output before clicking green flag - Verify: Test boundary inputs (0, negative values, stage edges) Try it: Students demonstrate mastery of Variables & Game State through observable, repeatable Scratch behavior. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)