oneshotlm
Compare all models on this prompt →

Asteroids · kat-coder-pro-v2

Output generated Cost / run $0.0059 Runtime 57.9s

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

modelkat-coder-pro-v2
vendorKwaipilot
harnesspi-agent
generated2026-07-31

METRICS

runtime57.9s
tokens in7.6k
tokens out4.1k
cached5.7k
cost / run$0.0059
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
→ write /workspace/index.html (10359 bytes)
toolResult

Successfully wrote 10359 bytes to /workspace/index.html

assistant

Done! I've created a complete Asteroids game in `/workspace/index.html`. Here's what's included: **Gameplay:** - Vector-style ship with thrust (Up/W) and rotation (Left/Right or A/D) - Screen wrapping on all edges - Shoot with Spacebar - Asteroids split into 2 smaller pieces when hit (large → medium → small → destroyed) - Score: 20 pts for large, 50 for medium, 100 for small - 3 lives with invulnerability flash after respawning - Progressive difficulty (more asteroids each level) **Visuals:** - Pure vector graphics on HTML5 Canvas - Thrust flame animation - Particle explosions on hits and ship destruction - Clean retro aesthetic with no external dependencies **Controls:** - Arrow keys or WASD to move - Space to shoot - Enter to restart after game over The game runs entirely in the browser with no network requests. Just open `index.html` to play!