oneshotlm
Compare all models on this prompt →

Space Invaders · qwen3-vl-8b-instruct

Output generated Cost / run $0.0023 Runtime 26.4s

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-8b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime26.4s
tokens in6.3k
tokens out3.5k
cached0
cost / run$0.0023
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

I'll build a complete Space Invaders game in a single HTML file with embedded CSS and JavaScript. The game will include: - Player cannon that moves left/right and shoots - Descending grid of aliens that advance and fire back - Destructible bunkers - Score and lives display Let me create this single-file implementation:

→ write index.html (12961 bytes)
toolResult

Successfully wrote 12961 bytes to index.html

assistant

I've created a complete Space Invaders game in a single HTML file. The game includes: - Player cannon that moves left/right and shoots - Descending grid of aliens that advance and fire back - Destructible bunkers with health indicators - Score and lives display - Game over screen with restart button The game is fully self-contained with embedded CSS and JavaScript, using only procedural graphics without any external assets. When you open the index.html file in a web browser, you'll be able to play the game immediately. Features: - Player controls: Arrow keys to move, Spacebar to shoot - Aliens move horizontally and descend when hitting edges - Aliens fire back at the player - Bunkers provide protection and can be destroyed - Score increases when aliens are hit - Lives decrease when hit by alien bullets - Game over when all lives are lost - Restart button to start over The implementation uses canvas for rendering and handles collision detection between bullets, aliens, and bunkers.