Mercurial > games > semicongine
comparison src/semicongine/animation.nim @ 753:eb5ae1f1bc87
fix: do not apply last frame value after animation has stopped
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 20 Jun 2023 00:30:58 +0700 |
parents | 0b5566fc214d |
children | da0bd61abe91 |
comparison
equal
deleted
inserted
replaced
752:bcd246da025d | 753:eb5ae1f1bc87 |
---|---|
34 direction: Direction | 34 direction: Direction |
35 iterations: int | 35 iterations: int |
36 AnimationPlayer*[T] = object | 36 AnimationPlayer*[T] = object |
37 animation*: Animation[T] | 37 animation*: Animation[T] |
38 currentTime: float32 | 38 currentTime: float32 |
39 playing: bool | 39 playing*: bool |
40 currentDirection: int | 40 currentDirection: int |
41 currentIteration: int | 41 currentIteration: int |
42 currentValue*: T | 42 currentValue*: T |
43 | 43 |
44 func easeConst(x: float32): float32 = 0 | 44 func easeConst(x: float32): float32 = 0 |