Module 6.6 — Game State Machines
Quarter 2 · Weeks ? · Environment: shplay
Lessons in this module
Estimated: ~6 hr 50 min
- Slides6.6.1Slides — One Game, Many Screens~5 min
- Video6.6.2Video — State Machines in Games~5 min
- Reading6.6.3Reading — MDN: The switch Statement~10 min
- Reading6.6.4Reading — shplay docs: switch in draw()~10 min
- Worked Example6.6.5Worked Example — switch with Three Cases~15 min
- Reading6.6.6Reading — break and default in switch~10 min
- Reading6.6.7Reading — shplay docs: The state Variable~10 min
- Worked Example6.6.8Worked Example — One Variable, Many Screens~15 min
- Reading6.6.9Reading — Naming States: Conventions~10 min
- Video6.6.10Video — Building a Title Screen~5 min
- Worked Example6.6.11Worked Example — Title Screen with Start Button~15 min
- Video6.6.12Video — Game Over and Restart~5 min
- Worked Example6.6.13Worked Example — Three-State Machine: Title, Play, Game Over~20 min
- Assignment6.6.14Chart the Code — The Three-State Machine~25 min
- Reading6.6.15Reading — shplay docs: Input-Driven Transitions~10 min
- Worked Example6.6.16Worked Example — Keyboard-Driven State Changes~15 min
- Reading6.6.17Reading — shplay docs: Condition-Driven Transitions~10 min
- Worked Example6.6.18Worked Example — Score Threshold Triggers Game Over~20 min
- Video6.6.19Video — More States: Pause, Inventory, Settings~5 min
- Worked Example6.6.20Worked Example — Adding a Pause State~15 min
- Assignment6.6.21Fix the Broken Chart — the Pause State~20 min
- Worked Example6.6.22Worked Example — Win Screen State~15 min
- Video6.6.23Video — States Decide When to Save~5 min
- Worked Example6.6.24Worked Example — Save on State Transition~20 min
- Worked Example6.6.25Worked Example — Continue Loads the Correct State~20 min
- Assignment6.6.26Game States — State Machine with Persistence~60 min
- Challenge6.6.27Challenges — Extended State Features~30 min
- Video6.6.28Video — What's Next: Looking Ahead to Unit 3~5 min