oneshotlm
Compare all models on this prompt →

Space Invaders · qwen3-vl-32b-instruct

Output generated Cost / run $0.0031 Runtime 64.6s

Prompt for this run

Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural 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-vl-32b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime64.6s
tokens in8.1k
tokens out5.3k
cached0
cost / run$0.0031
Transcript · 4 messages
user

Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.

assistant
→ write index.html (17660 bytes)
toolResult

Successfully wrote 17660 bytes to index.html

assistant

I've created a playable Space Invaders game in a single HTML file as requested. The game features: - A player cannon that moves left/right with arrow keys or A/D, and shoots with spacebar/Enter - A descending grid of aliens that move horizontally and drop down when they hit the edges - Aliens fire back at random intervals - Destructible bunkers for player cover (4 bunkers across the bottom) - Score tracking and lives system (3 lives total) - Game over screen when all lives are lost or aliens reach the bottom - Start screen with instructions The game uses procedural graphics only - no external assets or CDNs. All elements are drawn directly on the canvas using JavaScript and CSS. The game is fully self-contained in index.html and runs entirely offline with no network requests. Players can restart after game over by pressing Enter. The code includes smooth animations, collision detection between bullets, aliens, bunkers, and the player, as well as responsive controls and visual feedback. You can now open index.html in any modern browser to play the game!