impact drill progress

This commit is contained in:
Anuken
2021-11-04 15:42:16 -04:00
parent 1a8a2c326e
commit 240ffe1ca3
9 changed files with 139 additions and 17 deletions

View File

@@ -282,10 +282,11 @@ public class Drawf{
/** Draws a sprite that should be light-wise correct, when rotated. Provided sprite must be symmetrical in shape. */
public static void spinSprite(TextureRegion region, float x, float y, float r){
float a = Draw.getColor().a;
r = Mathf.mod(r, 90f);
Draw.rect(region, x, y, r);
Draw.alpha(r / 90f);
Draw.alpha(r / 90f*a);
Draw.rect(region, x, y, r - 90f);
Draw.alpha(1f);
Draw.alpha(a);
}
}

View File

@@ -121,5 +121,7 @@ public class Pal{
muddy = Color.valueOf("432722"),
redLight = Color.valueOf("feb380"),
vent = Color.valueOf("6b4e4e");
}