Awesome wave shooter game! I like how the enemies move closer to you on the beat! They wait till the beat drops! Did you just check for when the amplitude was highest in the audio file? I've done that before and it's pretty tough to get right, you did a good job!
Viewing post in GROOVE GUNNER jam comments
Thanks for the comment! Since we were only using music which I made myself, we knew the BPM of each track ahead of time and the devs didn’t have to worry about scanning waveforms for beat detection. Instead we just do a little bit of math to fire signals on each beat, and maintain a “BeatOffset” value each frame.
You can check out the code here if you’re interested in the specifics: https://github.com/abdulhakeemidr/Pegjam-Waves/blob/main/Assets/Scripts/Conductor.cs