littlektframework / littlekt

A multiplatform WebGPU 2D game framework written in Kotlin. Build your own game engine on top.
https://littlekt.com
Apache License 2.0
314 stars 12 forks source link

Update `AnimationPlayer` start, resume, and stop logic. #152

Closed LeHaine closed 2 years ago

LeHaine commented 2 years ago

anim player: refactor the current 'start()' function to be named 'resume()'

anim player: add new 'start()' function the will restart any running animaton to the first frame

anim player: add 'restart()' function that is an alias for 'start()'