Case study · Browser game

RhythmForge

A rhythm battle game, in the style of Friday Night Funkin', that builds its charts from any MIDI.

  • becomes a playable songAny MIDI
  • StatusPlayable on my PC
  • Built withJavaScript · Canvas 2D · Python
  • My partDesign, research, build, testing
RhythmForge gameplay: a rhythm duel with arrow lanes over a synthwave sunset

The problem

Rhythm games need every note placed by hand. My first version worked the same way, so making a new song took hours.

What I built

  • A chart builder that finds the melody in each 4-bar phrase of a MIDI file and turns it into easy, normal and hard charts, with long notes as holds
  • Audio rendered from the same MIDI with the MuseScore General sound font through FluidSynth
  • A duel mode where phrases alternate between you and the Forge Bot, plus a solo mode
  • Original music, including Adventure Groove, written around my own melody

The hard part

Speed. Full-screen glow effects cost 12 to 27 ms a frame on their own. Drawing them once into small cached pictures, and giving the background its own lower-rate canvas, brought a frame down to about 3.5 ms.

How the work was split

My part

I designed the game, the look and the characters, wrote the songs, and playtested the charts until they felt right.

Where AI helped

AI-assisted programming wrote much of the game and chart-builder code.

Result

Drop in any MIDI file and it becomes a playable song in three difficulties.

Stack

JavaScriptCanvas 2DPythonMIDIFluidSynthWeb Audio

What's next

A chart editor to fine-tune generated songs, gamepad support, and characters and stages for each song.

Next case studyWindows Media Player Visualizations, Rebuilt