Space Invaders · granite-4.1-8b
Output generated Cost / run $0.0005 Runtime 19.9s
Prompt for this run
Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
METRICS
Transcript · 4 messages
Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.
index.html (6785 bytes)Successfully wrote 6785 bytes to index.html
The index.html file containing a fully self‑contained Space Invaders game built entirely with procedural canvas graphics has been created in the current directory (`/tmp/ws`). You can open this file in a browser to play the game; it includes player movement, shooting, descending alien waves with AI fire, destructible bunkers with health bars, score tracking, and lives management—all without any external assets. Enjoy!