minor value changes
This commit is contained in:
parent
16d45757e5
commit
7afb7be021
@ -81,7 +81,7 @@ public class Flake extends Actor implements Poolable, Entity {
|
|||||||
public boolean isDead() {
|
public boolean isDead() {
|
||||||
if (timer <= 0) {
|
if (timer <= 0) {
|
||||||
for (int i = 0; i < shards.length; i++) {
|
for (int i = 0; i < shards.length; i++) {
|
||||||
shards[i].setRate(40f);
|
shards[i].setRate(45f);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -26,13 +26,13 @@ public class Pellet extends Actor implements Entity, Poolable {
|
|||||||
this.texture = texture;
|
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);
|
setPosition(x, y);
|
||||||
direction.set(MathUtils.sinDeg(angle), MathUtils.cosDeg(angle));
|
direction.set(MathUtils.sinDeg(angle), MathUtils.cosDeg(angle));
|
||||||
setSize(0.75f, 0.75f);
|
setSize(0.75f, 0.75f);
|
||||||
hitBox.setSize(getWidth(), getHeight());
|
hitBox.setSize(getWidth(), getHeight());
|
||||||
this.rate = rate;
|
this.rate = rate;
|
||||||
setColor(1f, colorG, 0f, 1f);
|
setColor(1f, MathUtils.random(), 0f, 1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -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()) {
|
if (getX() > Polyjet.GAME_AREA_WIDTH || getY() > Polyjet.GAME_AREA_HEIGHT || getX() < 0-getWidth() || getY() < 0-getHeight()) {
|
||||||
hp = 0;
|
hp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
super.act(delta);
|
super.act(delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(Batch batch, float parentAlpha) {
|
public void draw(Batch batch, float parentAlpha) {
|
||||||
sprite.setCenter(getX()+center.x, getY()+center.y);
|
sprite.setCenter(getX()+center.x, getY()+center.y);
|
||||||
|
|
||||||
sprite.setColor((float)hp/(float)maxHp, 0f, 0f, 1f);
|
sprite.setColor((float)hp/(float)maxHp, 0f, 0f, 1f);
|
||||||
sprite.draw(batch);
|
sprite.draw(batch);
|
||||||
batch.setColor(Color.WHITE);
|
batch.setColor(Color.WHITE);
|
||||||
|
@ -76,7 +76,7 @@ public class SpawnerWindow extends Window {
|
|||||||
break;
|
break;
|
||||||
case PELLET:
|
case PELLET:
|
||||||
Pellet pellet = (Pellet) entity;
|
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);
|
stage.addActor(pellet);
|
||||||
break;
|
break;
|
||||||
case VOID_CIRCLE:
|
case VOID_CIRCLE:
|
||||||
|
Loading…
Reference in New Issue
Block a user