oneshotlm
Compare all models on this prompt →

Space Invaders · gpt-5.6-luna

Output generated Cost / run $0.0131 Runtime 26.5s

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
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime26.5s
tokens in5.8k
tokens out3.6k
cached2.3k
cost / run$0.0131
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
**Creating index.html**

I need to create an index.html file, and I should probably inspect my current working directory. It's important to write the full details and ensure everything is playable and polished. I’m thinking about including a canvas, controls, and arrow keys (A, D), along with space for pause and restart functionality — I need to implement that. Maybe I should test the syntax using Node.js before I finish my writing. Let’s keep this organized!
→ write /tmp/ws/index.html (9505 bytes)
toolResult

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

assistant

Created `/tmp/ws/index.html` with a fully self-contained, playable Space Invaders game featuring: - Canvas-based procedural graphics - Player cannon movement and shooting - Descending alien formation with firing enemies - Destructible bunkers - Score, waves, and lives - Game-over and pause states - Keyboard and mobile controls - No external assets, resources, or network requests