Asteroids · granite-4.1-8b
Output generated Cost / run $0.0005 Runtime 20.3s
Prompt for this run
Build a playable Asteroids game on a canvas: a thrust-and-rotate vector ship that shoots and wraps around the screen edges, splitting asteroids into smaller pieces, with score and lives. Procedural vector 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 Asteroids game on a canvas: a thrust-and-rotate vector ship that shoots and wraps around the screen edges, splitting asteroids into smaller pieces, with score and lives. Procedural vector graphics only, no external assets.
index.html (7157 bytes)Successfully wrote 7157 bytes to index.html
The complete, self‑contained **index.html** file has been created in the current directory (**/tmp/ws/index.html**). It includes all the necessary HTML, procedural CSS, and JavaScript for a fully playable Asteroids game with thrust‑and‑rotate controls, bullet shooting, asteroid splitting, wrap‑around edges, score tracking, and life management, using only vector graphics and no external assets. Open this file in a web browser to play the game.