Build a Four-Lane Rhythm Tap Game with a Synthesized Beat in One HTML File

A ready-to-paste prompt that builds an original four-lane rhythm game with a Web Audio backing loop, Perfect/Good/Miss timing judgments, combos, and keyboard plus touch lanes.

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

The prompt

Prompt
You are a front-end developer and game audio designer. Build "Tidepool Tempo", a four-lane rhythm tap game in which glowing pearls sink toward a reef line under the sea, and the player hits each lane as its pearl touches the line. All music is synthesized live with the Web Audio API: a 104 BPM loop of kick, noise snare, hi-hats, triangle bass and a soft sawtooth pad over an Am, F, C, G progression, with a two-bar count-in. Notes come from a seeded chart on the eighth-note grid that gets denser in later sections. All timing uses the AudioContext clock and a lookahead scheduler.
Rules:
1. Controls: D F J K or the arrow keys for lanes, tap or click a lane on touch screens, Space or Enter to start, M to mute, plus a visible mute button.
2. Judgments: Perfect within 50 ms, Good within 120 ms, otherwise Miss. Pearls that pass unhit count as misses. Show score, combo with a growing multiplier, and accuracy.
3. States: an intro overlay with instructions and a timing legend, play, and a results screen with grade, counts, max combo and replay.
4. Layout: canvas lanes in four colors on deep navy. The game fits 360 to 1280 px, resizes with the window, and uses high-contrast text.
5. Create the AudioContext on the first start press and keep the volume low. Turn off beat pulses and particles 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: Tidepool Tempo, a four-lane undersea rhythm tap game.

Press Start the tide (or Space) and a 104 BPM synth groove counts you in. Pearls sink down four colored lanes. Hit D F J K, the arrow keys, or tap the lane as each pearl meets the glowing reef line. Perfect is within 50 ms and Good within 120 ms. Anything else is a Miss. Combos raise your multiplier. Every hit plays a pentatonic pluck. When the song ends you get a grade and a replay button. M mutes.

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

Tips and common edits

Why this works

  • Timing runs on the AudioContext clock with a lookahead scheduler, so falling notes and the synthesized beat stay locked together.
  • A seeded chart on the eighth-note grid gives a fair, repeatable song with no audio files or hand-written note lists.
  • Clear judgment windows, intro and results states, and pointer plus key input make it playable on desktop and phone first time.

Paste into ChatGPT, Claude or Gemini. Save the reply's code as tidepool-tempo.html and open it in any modern browser, or run it in the chat's preview or canvas. Turn your sound on, since the beat is the game.

Common edits

  • Change BPM, the chord progression, or the density odds in the chart builder to make easier or harder songs.
  • Retheme it by swapping the four lane colors, the pearl gradient and the title, such as neon city lanes or falling lanterns.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Sound Effects & Music