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.
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.
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:
index.html (13160 bytes)Successfully wrote 13160 bytes to index.html
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.