door automatic opening/closing now works

This commit is contained in:
minjaesong
2022-07-28 15:48:01 +09:00
parent c903d48073
commit 56fbfb578f
6 changed files with 117 additions and 73 deletions

View File

@@ -1,6 +1,5 @@
package net.torvald.spriteanimation
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.Pixmap
import com.badlogic.gdx.graphics.Texture
import com.badlogic.gdx.graphics.g2d.SpriteBatch
@@ -162,6 +161,7 @@ class AssembledSpriteAnimation(
override fun render(batch: SpriteBatch, posX: Float, posY: Float, scale: Float) {
if (parentActor.isVisible) {
batch.color = colourFilter
renderThisAnimation(batch, posX, posY, scale, "${currentAnimation}_${1+currentFrame}")
}
}