added pellet gen

This commit is contained in:
2017-07-11 16:17:27 -05:00
parent 0cf0609442
commit 897f802885
2 changed files with 65 additions and 44 deletions

View File

@@ -59,9 +59,13 @@ public class RhythmMapAlgorithm implements Runnable {
((Polyjet.GAME_AREA_HEIGHT-bassPeaks.get(index)*Polyjet.GAME_AREA_HEIGHT)/avgBPS)*speedMod);
} else {
if (UMPeaks.get(index) != 0) {
//TODO basic pellet scatter spawn
float xSpawnLocation = (rand.nextFloat()*(Polyjet.GAME_AREA_WIDTH-2))+1;
map.addToMap(Entities.PELLET,
xSpawnLocation,
Polyjet.GAME_AREA_HEIGHT-0.25f,
180+180*rand.nextFloat(),
speedMod*(Polyjet.GAME_AREA_HEIGHT/3)/avgBPS);
}
//TODO rest of the basic generation
}
} else {
map.addRestToMap();