LOOP
-
-
1bar
1beat
120bpm
The game picks the music
Jukebox mode: you pick the tracks on the right, the scene waits.
The scene calls play(track) every step from its state (title, field, battle) and jingle() once at each event (slime defeated, chest opened). A switch waits for the next beat; after a jingle the field loop resumes on a beat, not from its start.