๐ŸŽน Neon Tiles - Mary Had A Little Lamb

By Neon Piano

Neon Piano

0 subscribers

Based on the following code

๐ŸŽน Neon Tiles - Baby Shark

๐ŸŽน Neon Tiles - Baby Shark

Neon Piano

17 views ยท 20d ago

11 viewsยท19d ago

#rhythmgame #game #music

A neon-styled 4-lane rhythm game built around the first song most children ever learn โ€” "Mary Had a Little Lamb" โ€” the chart was transcribed directly from sheet music and runs through both verses of the 8-bar tune. Cyberpunk visuals with a cyanโ†’magenta gradient palette, ambient drifting tiles on the start and game-over screens, and the Orbitron typeface remix the schoolyard standard for the synthwave era.

๐ŸŽฎ How to Play

  • Tap / Click โ€” Tap tiles on mobile, or click them with the mouse on desktop.
  • Keyboard โ€” Use A S D F for the four lanes (left โ†’ right).
  • Hold notes โ€” For taller tiles, keep the key/finger pressed until the tile clears.
  • Burst tiles โ€” Some tiles fire a quick two-note flourish from a single tap, capturing the song's dotted-quarter + eighth swing.
  • Pause โ€” Space or P
  • Mute / Unmute โ€” M
  • Quick start / restart โ€” Press D while any overlay is showing.

โœจ Features

๐ŸŽต Real Score, Real Pitch

  • 8 measures played twice (16 measures total per cycle), transcribed directly from sheet music โ€” both verses of "Mary had a little lamb / Its fleece was white as snow..." through to the final cadence.
  • Every note plays at its actual pitch in G major across a tight 4-note pentatonic-feeling range (G4 / A4 / B4 / D5 โ€” that's it, the entire song lives inside a 5-note window).
  • Tempo is โ™ฉ=120 in 4/4 time, with each game beat = one quarter note (500 ms) โ€” comfortable nursery-rhyme pulse with a clear quarter-note grid.

๐ŸŽถ Sub-Slot Bursts on the Iconic Swing

  • The song's rhythmic signature โ€” "Ma-ry had a" (dotted quarter + eighth + quarter) โ€” is preserved as a sub-slot burst tile that fires both pitches at their correct rhythmic positions from a single tap.
  • This pattern appears 4 times per cycle: m2 and m6 ("Mary had a" / "fleece was white as"), each played twice via the repeat.
  • The original score's pickup anacrusis (a D5 8th leading into the first downbeat) has been converted to a rest so each pass starts cleanly on m2's B4 โ€” no awkward partial-measure pickup.

๐Ÿš€ Progressive Difficulty + Cycle Flash

  • BPM increases by +12.5% per cycle (120 โ†’ 135 โ†’ 150 โ†’ 169...). The tight 4-note range means the chart stays readable even as the tempo climbs.
  • Each cycle is also transposed up by a whole step (2 semitones), lifting Mary's pentatonic walk into ever-brighter territory.
  • Cycle transition flash: every new cycle pops up a centered CYCLE 2 / โ™ช +2 ยท โšก +12% banner with a scale-and-glow animation.

๐ŸŽจ Neon Polish

  • Cyan โ†’ blue โ†’ purple โ†’ magenta per-lane gradient, glowing tube borders, scanline textures inside the active press zone, ambient drifting tiles behind every overlay, and an animated START button that slides down into the game.
  • Visible miss feedback: red flash + dissonant low buzz with downward portamento on any miss.
  • Forgiving holds (75% duration counts, soft gradient fade at the top edge) and smart lane distribution that avoids consecutive same-lane spawns.

๐ŸŽผ Scoring

  • 10 points per beat cleared, with bursts counted as a single tile.
  • High score saved locally.

๐Ÿ› ๏ธ Tech Stack

  • Pure HTML / CSS / JavaScript, zero dependencies, single self-contained .html file โ€” drop it anywhere and play.
  • HTML5 Canvas + Web Audio API square-wave synthesis (with separate envelopes for burst sequences).
  • Chart auto-generated from MusicXML via a custom Python converter, with automatic repeat-barline unfolding (the song's "play twice" structure is unfolded directly into the melody array).

๐Ÿ’ก Things to Try

  • This chart has the tightest pitch range in the batch โ€” just 4 unique notes (G4, A4, B4, D5). Watch how the lane algorithm distributes only those four pitches across all four lanes for maximum variety.
  • The 4 sub-slot bursts at m2 and m6 are the chart's signature โ€” they're the only tiles that fire more than one pitch per tap, so they stand out rhythmically as the "swing" moments of the verse.
  • The original D5 anacrusis was converted to a rest, so play starts cleanly on B4 at m2 โ€” listen for the silent first quarter-beat of each pass.
  • By cycle 4 (transposed up a major third) the song lives in B major and the original G4 โ†’ D5 window is now B4 โ†’ Fโ™ฏ5 โ€” same shape, much brighter sky.

Loading comments...

Other Codes

No other codes yet