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

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

One HTML file. Save it and open it in any browser.Open full screen

Example: Glowtide Breaker, a midnight-lagoon paddle and bricks game.

Steer the driftwood raft with the mouse, a finger drag or ←/→ (A/D). Launch the glowing pearl with a click, tap or Space. Where the pearl lands on the raft sets its bounce angle. Clear three reefs: Shallow Wave, Diamond Reef and Stone Fortress. Catch falling capsules: W widens the raft, S splits the pearl and T slows the tide. P pauses and M mutes.

Written by AI from this prompt. Your results will vary.

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 in Simple HTML Games