new walk anim delay WIP

This commit is contained in:
minjaesong
2022-01-11 15:19:16 +09:00
parent 202123486a
commit 65d9ae7ee1
7 changed files with 41 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ class SpriteAnimation(@Transient val parentActor: ActorWithBody) : Disposable {
internal set
private val currentDelay: Second
get() = delays[currentRow]
get() = delays[currentRow].coerceAtLeast(1f / 16f) // animation delay cannot be too short
/**
* Sets delays for each rows. Array size must be the same as the rows of the sheet