Asteroids · nova-2-lite-v1
Output generated Cost / run $0.0235 Runtime 57.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.
thinking
[REDACTED].
index.html (17077 bytes)Successfully wrote 17077 bytes to index.html
thinking
[REDACTED].
The Asteroids game has been successfully created in `index.html`! 🎮 **Features included:** - Vector-based ship with thrust and rotation controls (arrow keys) - Shooting mechanics (spacebar) - Procedurally generated asteroids that split when hit - Screen wrapping at edges - Score tracking and lives system - Particle explosions on collisions - Fully self-contained (no external resources) - Responsive canvas that adjusts to window size **How to play:** 1. Open `index.html` in any modern web browser 2. Use **←/→** to rotate, **↑** to thrust, **SPACE** to fire 3. Destroy asteroids to earn points 4. Avoid colliding with asteroids 5. Game ends when you lose all lives The implementation uses pure vector graphics with no external assets, running entirely in the browser with HTML5 Canvas. The game includes a starfield background, smooth animations, and a game-over screen.