background now full window size; sensitivity slider no longer attached to analyzer

This commit is contained in:
2017-07-23 00:11:28 -05:00
parent 8af157567f
commit ec234af091
19 changed files with 63 additions and 95 deletions

View File

@@ -25,12 +25,12 @@ public class RhythmMapAlgorithm implements Runnable {
private float avgSPB;
private float umMax, bassMax;
private float speedMod, healthMod;
private float speedMod, healthMod, difficultyMod;
private float windowPerSecond;
private volatile int progress;
public RhythmMapAlgorithm(AudioAnalyzer analyzer, float speedMod, float healthMod) {
public RhythmMapAlgorithm(AudioAnalyzer analyzer, float speedMod, float healthMod, float difficultyMod) {
sender = new MiniSender();
bassPeaks = analyzer.getBassPeaks();
@@ -43,6 +43,7 @@ public class RhythmMapAlgorithm implements Runnable {
this.speedMod = speedMod;
this.healthMod = healthMod;
this.difficultyMod = difficultyMod;
umMax = analyzer.getUMMaxValue();
avgUM = analyzer.getUmAvg();
@@ -61,7 +62,7 @@ public class RhythmMapAlgorithm implements Runnable {
float warningTime = map.goBack((int) (windowPerSecond*1.5f))/windowPerSecond;
float endRadius = (bassPeaks.get(index)/bassMax)*(Main.GAME_AREA_HEIGHT/4f);
map.addToMap(Entities.VOID_CIRCLE,
endRadius,
endRadius,
rand.nextFloat()*Main.GAME_AREA_WIDTH,
rand.nextFloat()*Main.GAME_AREA_HEIGHT,
endRadius/(avgSPB*0.7f),