DEADSOFTWARE

Refactor rendering
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / misc / utils / SpriteUtils.kt
index 7d7aae110b22aa7a02b2c571fd1481906012cfd3..fd186e5a400e558a338895c01ebc45f20a34e97c 100644 (file)
@@ -7,7 +7,12 @@ import com.badlogic.gdx.graphics.g2d.SpriteBatch
  * Draw sprite at given position rotated by [rotation] degrees
  */
 @JvmOverloads
-fun SpriteBatch.drawSprite(sprite: Sprite, x: Float, y: Float, rotation: Float = 0f) {
+fun SpriteBatch.drawSprite(
+    sprite: Sprite,
+    x: Float,
+    y: Float,
+    rotation: Float = 0f
+) {
     sprite.rotation = rotation
     sprite.setPosition(x, y)
     sprite.draw(this)