Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 755 Bytes

File metadata and controls

25 lines (21 loc) · 755 Bytes

Week 16 – Two-Level Game (Progression & State Management)

Objectives

  • Implement level progression
  • Change game parameters based on level
  • Manage game state (level, score, difficulty)

Key Concept: State Management

level = 1
if score >= 10 and level == 1:
    level = 2
    speed = 7  # Increase difficulty

Lesson flow (60 min)

  1. Warm-up (10 min): Play Week 15, discuss "what makes games harder?"
  2. Teach (15 min): Level systems, difficulty progression
  3. Build (20 min): Add 2-3 levels with increasing difficulty
  4. Challenge (15 min): Add level-specific features (colors, sizes)

Success Criteria

  • Game advances to level 2 at score threshold
  • Visible difficulty increase
  • Level displayed on screen