diff --git a/core/src/zero1hd/polyjet/entity/enemies/Flake.java b/core/src/zero1hd/polyjet/entity/enemies/Flake.java index f09018d..402d423 100755 --- a/core/src/zero1hd/polyjet/entity/enemies/Flake.java +++ b/core/src/zero1hd/polyjet/entity/enemies/Flake.java @@ -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 { diff --git a/core/src/zero1hd/polyjet/entity/enemies/Pellet.java b/core/src/zero1hd/polyjet/entity/enemies/Pellet.java index 128ba09..abd9f80 100755 --- a/core/src/zero1hd/polyjet/entity/enemies/Pellet.java +++ b/core/src/zero1hd/polyjet/entity/enemies/Pellet.java @@ -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 diff --git a/core/src/zero1hd/polyjet/entity/enemies/Shard.java b/core/src/zero1hd/polyjet/entity/enemies/Shard.java index 3d0741f..e79b253 100755 --- a/core/src/zero1hd/polyjet/entity/enemies/Shard.java +++ b/core/src/zero1hd/polyjet/entity/enemies/Shard.java @@ -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); diff --git a/core/src/zero1hd/polyjet/ui/windows/SpawnerWindow.java b/core/src/zero1hd/polyjet/ui/windows/SpawnerWindow.java index 596b156..5f306aa 100755 --- a/core/src/zero1hd/polyjet/ui/windows/SpawnerWindow.java +++ b/core/src/zero1hd/polyjet/ui/windows/SpawnerWindow.java @@ -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: