drawSpinSprite

This commit is contained in:
Sunny Kim 2021-07-19 16:40:57 +09:00 committed by GitHub
parent 2583541c0f
commit a7ed7a71d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,6 +54,7 @@ public class Drill extends Block{
public float updateEffectChance = 0.02f;
public boolean drawRim = false;
public boolean drawSpinSprite = true;
public Color heatColor = Color.valueOf("ff5512");
public @Load("@-rim") TextureRegion rimRegion;
public @Load("@-rotator") TextureRegion rotatorRegion;
@ -314,7 +315,8 @@ public class Drill extends Block{
Draw.color();
}
Draw.rect(rotatorRegion, x, y, timeDrilled * rotateSpeed);
if(drawSpinSprite) Drawf.spinSprite(rotatorRegion, x, y, timeDrilled * rotateSpeed);
else Draw.rect(rotatorRegion, x, y, timeDrilled * rotateSpeed);
Draw.rect(topRegion, x, y);