oneshotlm
Compare all models on this prompt →

Brick breaker · gpt-4.1-mini

Output generated Cost / run $0.0050 Runtime 28.9s

Prompt for this run

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 ↗

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

METRICS

runtime28.9s
tokens in4.6k
tokens out2.2k
cached1.3k
cost / run$0.0050
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

I will create a self-contained index.html with Phaser that implements: - A paddle controlled by left-right arrow keys or mouse movement - A bouncing ball that starts moving on launch - A wall of bricks arranged in rows and columns - Bricks break when hit by the ball - A score displayed on screen, incrementing as bricks break All graphics will be generated with Phaser graphics API and generated textures, no external assets. Starting now.

→ write index.html (6255 bytes)
toolResult

Successfully wrote 6255 bytes to index.html

assistant

I have created index.html with a complete playable brick-breaker game using Phaser and procedurally generated graphics. Controls: - Left and right arrow keys to move paddle - Mouse moves paddle horizontally - Press space to launch ball from paddle - Break all bricks to reset the wall and score Open the index.html in a browser to play. Let me know if you want any feature tweaks or additions.