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