oneshotlm
Compare all models on this prompt →

Space Invaders · gpt-5.6-luna-pro

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

modelgpt-5.6-luna-pro
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime41.4s
tokens in28k
tokens out5.2k
cached15k
cost / run$0.0226
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
thinking
**Planning HTML Game Development**

I need to create an `index.html` file and inspect the current working directory to get it implemented smoothly. It's essential to ensure everything is in one place, and I might test by using `ls`. I want to craft a responsive HTML canvas with controls for arrows (A, D), space for shooting, P for pause, and a reset feature. The game mechanics include aliens descending, bullets, destructible bunkers, a scoring system, and lives. A playable canvas resolution of 900x700 makes sense, and I'll include a HUD overlay and procedural drawing as well.
→ write /tmp/ws/index.html (10730 bytes)
toolResult

Successfully wrote 10730 bytes to /tmp/ws/index.html

assistant

Created `/tmp/ws/index.html` — a self-contained, playable Space Invaders game with: - Canvas-based procedural graphics - Player cannon movement and shooting - Descending alien formation with return fire - Destructible bunkers - Score, high score, levels, and lives - Explosions and animated starfield - Keyboard and mouse/touch controls - Pause and restart functionality - No external assets, resources, or network requests