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.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior front-end game developer who builds polished, accessible browser games.

Build Echo Garden, an original color sequence memory game set in a glowing night garden. Four large pads sit in a round board: teal, gold, rose and violet. Each round the game plays the previous pattern plus one new step, and the player repeats it in order.

Rules:
1. Pair every color with a shape drawn in inline SVG (circle, triangle, square, diamond) and its own synthesized tone (C4, E4, G4, C5). Show a legend so the game works without relying on color.
2. Controls: click or tap a pad, press keys 1-4 or Q W A S to match the layout, and press Space or Enter to start. Pads are real buttons with clear focus rings and aria-labels.
3. Speed ramp: the playback step starts around 600 ms and shortens each round down to a floor near 230 ms. Show the round, best score and current speed.
4. Strict mode toggle: when on, one mistake ends the run. When off, play an error buzz and replay the pattern.
5. Use the Web Audio API only, created on the first interaction, with low volume and a visible mute toggle. No audio files, storage or external assets.
6. Dark palette with high contrast text, a responsive layout from 360 to 1280 px, and no shake or scale animation under prefers-reduced-motion.

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: Echo Garden, a four-pad color and shape memory game with synth tones.

Press Start or Space and watch the pads light up. Then repeat the pattern by tapping the pads or using keys 1-4 or Q W / A S. Each round adds one step and plays a bit faster.

Turn on Strict to end the run on your first mistake. Use Mute to silence the tones. Before you start, tap any pad to hear its note.

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

Tips and common edits

Why this works

  • Pinning exact tones, keys and timing numbers removes guesswork, so the first output plays correctly.
  • Pairing each color with an SVG shape and a legend makes the game playable for color-blind players.
  • Creating audio on the first interaction and banning external assets keeps it running offline in any sandbox.

Paste into ChatGPT, Claude or Gemini. Save the returned code as echo-garden.html and open it in any browser, or run it in the chat's preview or canvas. Turn your sound on to hear the tones.

Common edits

  • Change the theme by swapping the four colors, the shapes and the name, for example ocean buoys or space beacons.
  • Make it harder by lowering the speed floor, or add a fifth pad with its own tone and shape.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Simple HTML Games