mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 02:24:05 +09:00
new walk anim delay WIP
This commit is contained in:
@@ -14,6 +14,7 @@ interface HasAssembledSprite {
|
||||
|
||||
/** ADL for main sprite. Necessary. */
|
||||
var animDesc: ADProperties?
|
||||
|
||||
/** ADL for glow sprite. Optional. */
|
||||
var animDescGlow: ADProperties?
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user