Dojo Defender Session 3: Demo
How to demo the solution
- Open a terminal in the project folder.
- Run:
uv run python3 code/sessions/04-pong/dojo-defender-solution/main.py- 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.