progress on debug screen and minor error resolved with map gen

This commit is contained in:
2017-07-11 23:33:25 -05:00
parent 27757f0024
commit 2cd752f25c
14 changed files with 66 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ public class Flake extends Actor implements Poolable, Entity {
public void init(float x, float y, float rate, float fuse, float angle, Shard... shards) {
this.shards = shards;
setSize(1f, 1f);
setSize(3f, 3f);
this.rate = rate;
this.timer = fuse;
hitbox.setSize(getWidth(), getHeight());

View File

@@ -71,7 +71,7 @@ public class Shard extends Actor implements Entity, Poolable {
@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.setColor(1.3f-((float)hp/(float)maxHp), 1.3f-((float)hp/(float)maxHp), 1.3f-((float)hp/(float)maxHp), 0.75f);
sprite.draw(batch);
batch.setColor(Color.WHITE);
super.draw(batch, parentAlpha);