added pellet gen
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user