Draw size independent from puddle size. (#3826)

* Draw size independent from puddle size.

* Apply change to Bullets
This commit is contained in:
MEEP of Faith
2020-12-23 07:29:26 -08:00
committed by GitHub
parent 986caa857e
commit a21f79ac6a
2 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ import static mindustry.Vars.*;
public class LiquidBulletType extends BulletType{
public Liquid liquid;
public float puddleSize = 6f;
public float orbSize = 6f;
public LiquidBulletType(@Nullable Liquid liquid){
super(3.5f, 0);
@@ -64,7 +65,7 @@ public class LiquidBulletType extends BulletType{
public void draw(Bullet b){
Draw.color(liquid.color, Color.white, b.fout() / 100f);
Fill.circle(b.x, b.y, puddleSize / 2);
Fill.circle(b.x, b.y, orbSize / 2);
}
@Override