oneshotlm
Compare all models on this prompt →

Brick breaker · glm-4.7

Using the pre-provided phaser.min.js (global Phaser), build a playable brick-breaker game with a paddle (arrow keys or mouse), a bouncing ball, and a wall of breakable bricks with a score. Use ONLY procedurally generated graphics via the Phaser Graphics API or generated textures — no external image or audio assets whatsoever.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

Using the pre-provided phaser.min.js (global Phaser), build a playable brick-breaker game with a paddle (arrow keys or mouse), a bouncing ball, and a wall of breakable bricks with a score. Use ONLY procedurally generated graphics via the Phaser Graphics API or generated textures — no external image or audio assets whatsoever.

assistant
thinking
The user wants me to build a brick-breaker game using Phaser 3. I need to:
1. Create a single HTML file (index.html) that contains everything
2. Use the pre-provided phaser.min.js file
3. Create a playable brick-breaker game with:
   - Paddle controlled by arrow keys or mouse
   - Bouncing ball
   - Wall of breakable bricks
   - Score system
4. Use ONLY procedural graphics (Phaser Graphics API or generated textures) - no external assets

Let me plan the game:

1. Game setup with Phaser
2. Create textures programmatically using Phaser's Graphics or TextureManager
3. Paddle - rectangle, moves with arrow keys and mouse
4. Ball - circle, bounces off walls, paddle, and bricks
5. Bricks - grid of rectangles, different colors maybe
6. Score - display points for breaking bricks
7. Game states - start, playing, game over, win

Let me write the complete game in one index.html file.

I'll create a complete brick-breaker game using Phaser with procedurally generated graphics. Let me build this in a single index.html file.

write index.html (16432 bytes)
toolResult

Successfully wrote 16432 bytes to index.html

assistant

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

modelglm-4.7
vendorZ.ai · GLM
harnesspi-agent
generated2026-07-22

EVALUATION

1/5 broken

Canvas is entirely black in every frame due to a JS crash (createGradient is not a function); game never renders.

off-prompt

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 motion0.0%
on click0.0%
on drag0.0%
on wheel0.0%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread13.9 / 255
console errors0
js errors
  • ballGraphics.createGradient is not a function

METRICS

runtime209.3s
tokens in29
tokens out3.7k
cached1.5k
cost / run$0.0066