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
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
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 like this
Build a Reaction Time Tester Game with False-Start Detection in One HTML File
Get a polished reaction time test with random delays, false-start penalties, a five-attempt average and an SVG results chart, all in one HTML file.
Build a Word Scramble Puzzle Game with Hints, Categories and Streaks in HTML
A prompt that produces a single-file word scramble game with themed categories, paid letter hints, streak bonuses, and both typing and tile-tapping controls.
Build an Emoji Memory Card Matching Game with Star Rating in One HTML File
You get a polished, original emoji memory matching game in a single HTML file, with three grid sizes, a move counter, a timer, keyboard navigation and a 1–3 star rating.
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.