mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
drawSpinSprite
This commit is contained in:
parent
2583541c0f
commit
a7ed7a71d5
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue