Build a Paddle and Bricks Game with Power-Ups and Levels in One HTML File
A ready-to-paste prompt for a complete paddle-and-bricks canvas game with three original levels, angle-based bounces, three power-ups, synthesized sound, and touch, mouse and keyboard controls.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
You are a senior front-end game developer.
Build "Glowtide Breaker", an original paddle-and-bricks game set in a midnight lagoon. A driftwood raft bounces a glowing pearl into coral bricks across three levels defined as character grids:
- Shallow Wave
- Diamond Reef, with two-hit gold bricks
- Stone Fortress, with unbreakable stone walls and a gap at the bottom
Clear all breakable bricks to advance. Clearing level three shows a win screen.
Rules:
1. Controls: mouse move or touch drag steers the raft, and Left/Right or A/D steer it too. Click, tap or Space launches. P pauses and M mutes.
2. Angle-based bounce: where the pearl hits the raft sets the rebound. It goes straight up at the center and up to 60 degrees at the edges. Sub-step movement so the pearl never tunnels through bricks.
3. Power-ups drop from about 16% of broken bricks as lettered capsules: Wide (raft 60% wider, 10 s), Split (two extra pearls) and Slow Tide (35% slower, 8 s). Show HUD countdowns for timed effects.
4. Scoring is 10 points per brick and 25 per two-hit brick, with 3 lives. Include title, pause, level-clear, game-over and win overlays.
5. Use a fixed-resolution canvas scaled to fit 360-1280px widths and the window height, crisp on high-DPI screens. Palette: navy, teal, coral and gold. prefers-reduced-motion disables particles and screen shake.
6. Web Audio blips are created on first input, at low volume, with a visible mute button.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Levels as short character grids give the model a compact, exact layout format that is easy to verify and extend.
- Requiring sub-stepped collision and edge-based bounce angles prevents the classic tunneling and boring straight-line bugs.
- Spelling out each power-up's size, duration and HUD countdown removes guesswork, so the effects feel distinct on the first run.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as glowtide.html and open it in any browser, or run it in the chat's preview or canvas panel. It needs no internet or installs.
Common edits
- Swap the lagoon theme for space or candy by renaming levels and changing the four palette colors and capsule letters.
- Raise difficulty by increasing the per-level speed boost, lowering the 16% drop rate or adding a fourth grid level.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a One-Button Fox Endless Runner Game in a Single HTML File
A ready-to-paste prompt that produces Ember Fox Dash, a polished one-button forest runner with coyote-time jumps, fair obstacle spacing, rising speed and synthesized sound.
Build a Color Sequence Memory Game with Synth Tones in One HTML File
A ready-to-paste prompt that builds Echo Garden, a four-pad color-and-shape sequence memory game with Web Audio tones, a strict mode and rising speed.
Build a Daily Five-Letter Word Guessing Game with Colorblind Mode in One HTML File
A ready-to-paste prompt that produces Quillmark, an original daily five-letter word game with correct duplicate-letter coloring, an on-screen keyboard and a colorblind mode.
Build a Four-Lane Rhythm Tap Game with a Generated Beat in One HTML File
A ready-to-paste prompt that builds a complete four-lane rhythm tap game with a live Web Audio beat, Perfect/Good/Miss timing grades, combo scoring and a results screen.
Build a Garden Caterpillar Snake Game with Swipe and Wrap Mode in HTML
A prompt that produces Leafline, an original snake-style game where a caterpillar eats garden leaves, with swipe controls, buffered turns, wrap mode and a speed slider.
Build a Gnome-Popping Whack-a-Mole Game With Decoys in One HTML File
A ready-to-paste prompt that makes an AI build Gnome Pop Garden, a fast whack-a-mole style tapping game with speed that ramps up, hedgehog decoys that cost points, and number-key controls.