shCode

Module 2.6Game States

Quarter 2 · Weeks ? · Environment: q5play

Lessons in this module

Estimated: ~6 hr 25 min

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