oneshotlm
Compare all models on this prompt →

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.

⛨ sandboxed Open in new tab ↗

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

modelnova-2-lite-v1
vendorAmazon · Nova
harnesspi-agent
generated2026-08-01

METRICS

runtime57.8s
tokens in8.0k
tokens out8.4k
cached0
cost / run$0.0235
Transcript · 4 messages
user

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.

assistant
thinking
[REDACTED].
→ write index.html (17077 bytes)
toolResult

Successfully wrote 17077 bytes to index.html

assistant
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.