shCode

Module 6.6Game State Machines

Quarter 2 · Weeks ? · Environment: shplay

Lessons in this module

Estimated: ~6 hr 50 min

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