Mania Game Sample
When a note falls on a key, press it.
Last updated
When a note falls on a key, press it.
Last updated
ManiaDemo GameObject contains 3 scripts which split the gameplay logic into 3 parts: spawning notes, gathering input and general gameplay stuff (like judgements for example).
ManiaInputManager.cs gathers input and invokes events for key presses; it also takes care of the visuals of pressing the individual keys.
ManiaNoteManager.cs reads the Song's note list and instantiates notes, moves them down, and destroys them whenever needed.
ManiaGameplayManager.cs makes use of the note and input manager to actually calculate the input timings and offsets.
ManiaNoteJudgementText.cs makes use of the judgements calculated in the gameplay manager and displays them on UI text.
ManiaSampleTextBounce.cs showcases a simple way of subscribing to (Auto) Beat Sequencer's OnInstrumentStep event to nicely bounce the sample text's scale to the beat of the music.