This commit is contained in:
Anuken
2021-07-19 15:20:53 -04:00
parent 0c46d5088c
commit 6b7a63aba5
5 changed files with 20 additions and 23 deletions

View File

@@ -41,6 +41,7 @@ public class Drawf{
Draw.reset();
}
/** Sets Draw.z to the text layer, and returns the previous layer. */
public static float text(){
float z = Draw.z();
if(renderer.pixelator.enabled()){
@@ -275,7 +276,7 @@ public class Drawf{
Draw.reset();
}
/** Draws a sprite that should be lightwise correct. Provided sprite must be symmetrical. */
/** 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){
r = Mathf.mod(r, 90f);
Draw.rect(region, x, y, r);