impact drill progress
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user