Asteroids · qwen3.6-plus
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
The user wants a classic Asteroids game as a single self-contained HTML file. Let me build this with: 1. A canvas-based game with procedural vector graphics 2. A ship that thrusts and rotates, with screen wrapping 3. Shooting mechanics 4. Asteroids that split into smaller pieces when hit 5. Score tracking and lives 6. All CSS and JS inline in one file Let me design the game architecture: - Ship: vector-drawn triangle, rotation with arrow keys, thrust with up arrow, shoot with space - Asteroids: large, medium, small sizes; when hit, split into smaller ones until they disappear - Bullets: fired from ship nose, limited range - Collision detection: ship vs asteroids (lose life), bullets vs asteroids (score + split) - Game states: playing, game over Let me write this out comprehensively.
/tmp/ws/index.html (12748 bytes)Successfully wrote 12748 bytes to /tmp/ws/index.html
The game is ready at `/tmp/ws/index.html`. Here's what's included: **Controls:** - **← → / A D** — Rotate ship - **↑ / W** — Thrust (with flame particles) - **Space / X** — Fire bullets - **Enter** — Start / Restart **Gameplay features:** - Vector-style ship with thrust flame and cyan glow - Screen wrapping for ship, bullets, and asteroids - Asteroids split: **large → 3 medium → 2 small** - Scoring: 20 / 50 / 100 points - 3 lives shown as mini ships, with invincibility blinking after hit - Particle explosions on every hit and on ship death - Progressive difficulty — each level adds more asteroids - Starfield background - Start screen with instructions, game over screen with final score
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
Menu screen loads, Enter starts game with ship, asteroids, wrapping, and score/level HUD responding to keyboard controls.
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.