Dojo Defender Session 3: Demo

How to demo the solution

  1. Open a terminal in the project folder.
  2. Run:
uv run python3 code/sessions/04-pong/dojo-defender-solution/main.py
  1. Show:
    • The game starts with background music.
    • Shooting (SPACE) makes a laser sound.
    • Explosions (enemy/bullet collision) make an explode sound.
    • Ship hit makes a hit sound.
    • The game works without pgzero β€” show the import line at the top.
    • The game loop (while running:) is visible in the code.
    • Show pygame.mixer.init() and the sound variables.