progress on debug screen and minor error resolved with map gen
This commit is contained in:
@@ -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());
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user