oneshotlm
Compare all models on this prompt →

Top-down alien shooter · kimi-k3

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 ↗
transcript · 6 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
thinking
Build a Phaser game in index.html. Write the file with procedural graphics via graphics.generateTexture.
write /workspace/index.html (9213 bytes)
toolResult

Successfully wrote 9213 bytes to /workspace/index.html

assistant
bash {"command":"ls -la /workspace && node -e \"new Function(require('fs').readFileSync('/workspace/index.html','utf8').match(/<script>\\n([\\s\\
toolResult

total 2128 drwxrwxrwx 4 node node 128 Jul 28 01:16 . drwxr-xr-x 1 root root 4096 Jul 28 01:15 .. -rw-r--r-- 1 node node 9215 Jul 28 01:16 index.html -rw-r--r-- 1 node node 1181917 Jul 28 01:15 phaser.min.js JS OK

assistant
thinking
Done. Small note: unused `ang` in fire — harmless.

Done — `index.html` is a complete top-down alien shooter built on the local `phaser.min.js`: - **Movement**: WASD with normalized velocity; ship rotates to face the mouse cursor. - **Combat**: hold/click mouse to fire toward the pointer; bullets destroyed on hit or after timeout. - **Enemies**: grunts (fast, melee) and brutes (tanky, shoot green spit when in range) spawn from screen edges. - **Difficulty scaling**: each wave adds more aliens, higher speed/HP, and faster brute spit. - **Health/Score UI**: color-changing HP bar (green→yellow→red), score counter, wave banner, i-frame blinking, camera shake on damage, game-over screen with click-to-restart. - **All graphics procedural**: player ship, aliens, bullets, particles, and starfield are drawn with Phaser Graphics → `generateTexture`; no external assets or network calls. JS syntax verified. Open `index.html` in a browser to play.

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

modelkimi-k3
vendorMoonshot · Kimi
harnesspi-agent
generated2026-07-28

EVALUATION

3/5 working

Top-down alien shooter with waves, health bar, score, and game over screen; player ship dies quickly to aliens.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion1.1%
on click2.8%
on drag3.1%
on wheel0.9%
on enter + space0.9%
on arrow keys2.8%
on w/a/s/d0.0%
frame spread10 / 255
console errors0
js errors none

METRICS

runtime83.4s
tokens in4.5k
tokens out3.4k
cached6.4k
cost / run$0.0156