Asteroids · mistral-large-2512
Output generated Cost / run $0.0087 Runtime 46.8s
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.
/tmp/ws/index.html (15068 bytes)Successfully wrote 15068 bytes to /tmp/ws/index.html
The Asteroids game is ready! Open `/tmp/ws/index.html` in a web browser to play. **Controls:** - **Arrow Left/Right**: Rotate ship - **Arrow Up**: Thrust forward - **Space**: Fire bullets **Game Features:** - Vector-based ship, asteroids, and bullets - Screen wrapping (ship and asteroids reappear on opposite edges) - Asteroids split into smaller pieces when hit - Score tracking and lives system - Game over screen with restart button - Procedural asteroid shapes and particle effects