bar data set and fixed index mistake

This commit is contained in:
Harrison Deng 2017-07-16 02:15:00 -05:00
parent cecec88df0
commit 8db65566c9
12 changed files with 9 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 B

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

After

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

After

Width:  |  Height:  |  Size: 127 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 B

After

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 B

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 B

After

Width:  |  Height:  |  Size: 105 B

View File

@ -96,8 +96,10 @@ public class GamePlayMap {
int howMuchLess = -(index - amount);
index = 0;
return howMuchLess;
} else {
index -= amount;
return amount;
}
return amount;
}
public void goForward(int amount) {

View File

@ -72,8 +72,9 @@ public class RhythmMapAlgorithm implements Runnable {
map.resetIndex();
}
if (bassPeaks.get(index) != 0) {
int spawnLocations = (Polyjet.GAME_AREA_WIDTH-8)/8;
map.addToMap(Entities.BAR,
MathUtils.round(1.5f+rand.nextFloat()*(Polyjet.GAME_AREA_WIDTH-3)),
MathUtils.round(rand.nextFloat()*spawnLocations)*8,
(8f/avgSPB)*speedMod);
} else {
if (UMPeaks.get(index) != 0) {

View File

@ -22,7 +22,7 @@ public class Bar extends Actor implements Entity, Poolable {
}
public void init(float x, float rate) {
setSize(5f, 0.5f);
setSize(8f, 0.5f);
setPosition(x, Polyjet.GAME_AREA_HEIGHT);
this.rate = rate;
hitbox.set(getX(), getY(), getWidth(), getHeight());

View File

@ -47,7 +47,8 @@ public VoidCircle(Texture voidTexture) {
} else {
voidCircleTexture.setSize(2*endRadius, 2*endRadius);
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) {
timer -= delta;
@ -58,7 +59,7 @@ public VoidCircle(Texture voidTexture) {
} else {
endRadius = -1f;
if (currentRadius > 0) {
growCurrentRadius(delta*-3*growthRate);
growCurrentRadius(delta*-2f*growthRate);
} else {
done = true;
}