Session 1: Demo recording
Pgzero can not be compiled to WebAssembly (only Pygame from session 4 on). That is why the session page shows a GIF of the end result instead of a playable demo.
How to record
- Run the solution:
cd code/sessions/01-catch-the-stars/solution && uv run pgzrun main.py. - Use a screen recorder:
- Linux: Peek or SimpleScreenRecorder.
- Windows: ScreenToGif.
- macOS: built-in QuickTime → export to GIF via ffmpeg or Kap.
- Record ~10 seconds of gameplay.
- Save as
catch-the-stars.gifinstatic/sessions/01-catch-the-stars/. - Refer to it in the worksheet via:
.
Target size: ~600×400 pixels, ≤ 2 MB.