Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Really like the style and aesthetic!

I'd like to make something similar, would you mind if I asked how you coded the movement of the two balls to match with the MIDI? It doesn't look exactly like a sine wave, and sometimes it falters before it hits the middle. I really like the movement and its synchronicity but I can't figure out how exactly it works.

(3 edits) (+1)

I used the Unity Splines Package for the curves (https://docs.unity3d.com/Packages/com.unity.splines@1.0/api/UnityEngine.Splines....).

I generate control points for the spline based on the MIDI: There's a control point every 1/2 beat, and its distance from the center is based on how far it is from the last and next note, maxing out at a value so it doesn't go too far.

Then I have a custom spline follower script that looks at the audio time to move the ball along the spline, such that the ball travels between two control points each 1/2 beat of the song.