bar data set and fixed index mistake
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 119 B |
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 116 B After Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 105 B |
@ -96,9 +96,11 @@ public class GamePlayMap {
|
|||||||
int howMuchLess = -(index - amount);
|
int howMuchLess = -(index - amount);
|
||||||
index = 0;
|
index = 0;
|
||||||
return howMuchLess;
|
return howMuchLess;
|
||||||
}
|
} else {
|
||||||
|
index -= amount;
|
||||||
return amount;
|
return amount;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void goForward(int amount) {
|
public void goForward(int amount) {
|
||||||
if (index+amount > spawnList.size-1) {
|
if (index+amount > spawnList.size-1) {
|
||||||
|
@ -72,8 +72,9 @@ public class RhythmMapAlgorithm implements Runnable {
|
|||||||
map.resetIndex();
|
map.resetIndex();
|
||||||
}
|
}
|
||||||
if (bassPeaks.get(index) != 0) {
|
if (bassPeaks.get(index) != 0) {
|
||||||
|
int spawnLocations = (Polyjet.GAME_AREA_WIDTH-8)/8;
|
||||||
map.addToMap(Entities.BAR,
|
map.addToMap(Entities.BAR,
|
||||||
MathUtils.round(1.5f+rand.nextFloat()*(Polyjet.GAME_AREA_WIDTH-3)),
|
MathUtils.round(rand.nextFloat()*spawnLocations)*8,
|
||||||
(8f/avgSPB)*speedMod);
|
(8f/avgSPB)*speedMod);
|
||||||
} else {
|
} else {
|
||||||
if (UMPeaks.get(index) != 0) {
|
if (UMPeaks.get(index) != 0) {
|
||||||
|
@ -22,7 +22,7 @@ public class Bar extends Actor implements Entity, Poolable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void init(float x, float rate) {
|
public void init(float x, float rate) {
|
||||||
setSize(5f, 0.5f);
|
setSize(8f, 0.5f);
|
||||||
setPosition(x, Polyjet.GAME_AREA_HEIGHT);
|
setPosition(x, Polyjet.GAME_AREA_HEIGHT);
|
||||||
this.rate = rate;
|
this.rate = rate;
|
||||||
hitbox.set(getX(), getY(), getWidth(), getHeight());
|
hitbox.set(getX(), getY(), getWidth(), getHeight());
|
||||||
|
@ -47,7 +47,8 @@ public VoidCircle(Texture voidTexture) {
|
|||||||
} else {
|
} else {
|
||||||
voidCircleTexture.setSize(2*endRadius, 2*endRadius);
|
voidCircleTexture.setSize(2*endRadius, 2*endRadius);
|
||||||
voidCircleTexture.setColor(1f,1f,1f,0.1f);
|
voidCircleTexture.setColor(1f,1f,1f,0.1f);
|
||||||
} hitBox.setCenter(getX()+center.x, getY()+center.y);
|
}
|
||||||
|
hitBox.setCenter(getX()+center.x, getY()+center.y);
|
||||||
|
|
||||||
if (timer > 0) {
|
if (timer > 0) {
|
||||||
timer -= delta;
|
timer -= delta;
|
||||||
@ -58,7 +59,7 @@ public VoidCircle(Texture voidTexture) {
|
|||||||
} else {
|
} else {
|
||||||
endRadius = -1f;
|
endRadius = -1f;
|
||||||
if (currentRadius > 0) {
|
if (currentRadius > 0) {
|
||||||
growCurrentRadius(delta*-3*growthRate);
|
growCurrentRadius(delta*-2f*growthRate);
|
||||||
} else {
|
} else {
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
|