Asteroids · nova-2-lite-v1
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.
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.
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
EVALUATION
Ship, asteroids, and score render but WASD input immediately triggers GAME OVER with no visible combat or ship destruction shown.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.