pspeter / Rhythm-Tapper

A funky Android rhythm game
MIT License
11 stars 6 forks source link

understanding the code a little #19

Open AlenToma opened 1 year ago

AlenToma commented 1 year ago

Hi, I am looking at your code and trying to understand how and where you convert the mp3 file to a readable notes and convert them to balls

could you please try and explain this.

I Opened an issue on stackoverflow about this, it would be great help if you could have a little time to explain this.

pspeter commented 1 year ago

Hey Alen! We would have loved to do something like that back when we created this, but to be honest, it would've been way to complex for this project. We hacked this game together for a university project, and only had like four days of time. The balls are just generated randomly, with no real correlation to the music. You can find the spawn logic here:

https://github.com/pspeter/Rhythm-Tapper/blob/2c6afa9e2c1ae35695e868fb5dbb851ec28d95cc/app/src/main/java/sma/rhythmtapper/game/GameScreen.java#L435-L465

If you have any other questions I'm happy to help!