minor value changes

This commit is contained in:
Harrison Deng 2017-06-04 18:44:24 -05:00
parent 16d45757e5
commit 7afb7be021
4 changed files with 4 additions and 6 deletions

View File

@ -81,7 +81,7 @@ public class Flake extends Actor implements Poolable, Entity {
public boolean isDead() {
if (timer <= 0) {
for (int i = 0; i < shards.length; i++) {
shards[i].setRate(40f);
shards[i].setRate(45f);
}
return true;
} else {

View File

@ -26,13 +26,13 @@ public class Pellet extends Actor implements Entity, Poolable {
this.texture = texture;
}
public void init(float x, float y, float angle, float rate, float colorG) {
public void init(float x, float y, float angle, float rate) {
setPosition(x, y);
direction.set(MathUtils.sinDeg(angle), MathUtils.cosDeg(angle));
setSize(0.75f, 0.75f);
hitBox.setSize(getWidth(), getHeight());
this.rate = rate;
setColor(1f, colorG, 0f, 1f);
setColor(1f, MathUtils.random(), 0f, 1f);
}
@Override

View File

@ -65,14 +65,12 @@ public class Shard extends Actor implements Entity, Poolable {
if (getX() > Polyjet.GAME_AREA_WIDTH || getY() > Polyjet.GAME_AREA_HEIGHT || getX() < 0-getWidth() || getY() < 0-getHeight()) {
hp = 0;
}
super.act(delta);
}
@Override
public void draw(Batch batch, float parentAlpha) {
sprite.setCenter(getX()+center.x, getY()+center.y);
sprite.setColor((float)hp/(float)maxHp, 0f, 0f, 1f);
sprite.draw(batch);
batch.setColor(Color.WHITE);

View File

@ -76,7 +76,7 @@ public class SpawnerWindow extends Window {
break;
case PELLET:
Pellet pellet = (Pellet) entity;
pellet.init(coords.x, coords.y, mod2.getValue()/mod2.getMaxValue()*360f, mod1.getValue(), mod3.getValue()/mod3.getMaxValue());
pellet.init(coords.x, coords.y, mod2.getValue()/mod2.getMaxValue()*360f, mod1.getValue());
stage.addActor(pellet);
break;
case VOID_CIRCLE: