oneshotlm
Compare all models on this prompt →

Asteroids · qwen3-next-80b-a3b-instruct

Output generated Cost / run $0.0045 Runtime 25.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

modelqwen3-next-80b-a3b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime25.8s
tokens in6.4k
tokens out3.5k
cached1.1k
cost / run$0.0045
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

I'll create a standalone Asteroids game with all the requested features: a thrust-and-rotate vector ship, shooting, screen wrapping, asteroids splitting into smaller pieces, score, and lives - all using procedural vector graphics with no external assets. Let me build this as a single HTML file with embedded CSS and JavaScript:

→ write index.html (13160 bytes)
toolResult

Successfully wrote 13160 bytes to index.html

assistant

I've created a complete Asteroids game as a single HTML file with all requested features: - A thrust-and-rotate vector ship with proper physics (acceleration, friction, rotation) - Shooting mechanism with bullet limits - Screen wrapping for all objects - Asteroids that split into smaller pieces when hit - Score tracking (10, 20, 30 points for large, medium, small asteroids) - Lives system with invulnerability period after being hit - Procedural vector graphics only (no external assets) - Game over and restart functionality The game runs entirely in the browser with no network requests or external dependencies. Controls: - Arrow keys or WASD to rotate and thrust - Spacebar to shoot - Press spacebar after game over to restart The index.html file is now ready and contains everything needed to play the game.