Dojo Defender Session 2: Demo

How to demo the solution

  1. Open a terminal in the project folder.
  2. Run:
uv run python3 code/sessions/03-space-blaster/dojo-defender-solution/main.py
  1. Show:
    • The ship moves left/right with the arrow keys.
    • SPACE fires a bullet up (cooldown visible).
    • Enemies (enemy_drone) spawn at the top and fall with a sine movement.
    • Bullet hits enemy → both disappear, +10 points.
    • Every 10 kills: the wave goes up, enemies spawn faster.
    • Asteroids still keep falling (from S1).
    • A bullet can also hit asteroids (+5 points).
    • Three lives, explosion animation, invincibility, game over — everything from S1 still works.