something

This commit is contained in:
yugecin 2016-11-06 11:46:56 +01:00
parent b90a9a963a
commit 6a3aaf7375

View File

@ -273,6 +273,8 @@ public class MainMenu extends BasicGameState {
float scale = 1f;
double position = 0;
double beatLength = 1;
int realtime = 1;
if (MusicController.isPlaying() && MusicController.getBeatmap() != null) {
int trackposition = MusicController.getPosition();
@ -293,8 +295,8 @@ public class MainMenu extends BasicGameState {
}
}
if (p != null) {
double beatLength = beatlen * 100;
int realtime = trackposition * 100;
beatLength = beatlen * 100;
realtime = trackposition * 100;
position = (((realtime/* - time * 100 idk.. */) % beatLength) / beatLength);
scale -= (0 - position) * 0.05;
}