oneshotlm
Compare all models on this prompt →

Top-down alien shooter · granite-4.1-8b

Output generated Cost / run $0.0005 Runtime 16.0s

Prompt for this run

Using the pre-provided phaser.min.js (global Phaser), build a top-down alien shooter: move with WASD, aim and fire at waves of advancing aliens, with health, score, and increasing difficulty. Use ONLY procedurally generated graphics, no external image or audio 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

modelgranite-4.1-8b
vendorIBM · Granite
harnesspi-agent
generated2026-08-01

METRICS

runtime16.0s
tokens in5.4k
tokens out1.8k
cached1.7k
cost / run$0.0005
Transcript · 4 messages
user

Using the pre-provided phaser.min.js (global Phaser), build a top-down alien shooter: move with WASD, aim and fire at waves of advancing aliens, with health, score, and increasing difficulty. Use ONLY procedurally generated graphics, no external image or audio assets.

assistant
→ write index.html (5801 bytes)
toolResult

Successfully wrote 5801 bytes to index.html

assistant

The file **index.html** has been created in the current directory (`/tmp/ws`). It contains a fully self‑contained top‑down alien shooter built with the provided `phaser.min.js`. The game uses only procedurally generated graphics, supports WASD movement, continuous firing (SPACE), wave spawning, health (lives) and score, and difficulty increases as the waves progress. No external images, audio, or network resources are required. You can open `index.html` in a browser to play the game.