kaplayjs / kaplay

🦖 A JavaScript Game Library for making games simple, fast and fun

Home Page:https://kaplayjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: `SpriteComp.getCurAnim()` for get the current animation data

lajbel opened this issue · comments

As title says, there should be a method to get all animation data, for example you can use SpriteComp.curAnim() to get the current animation name, but you can't get if the animation is pingpong, speed or other props

Also would be good to deprecate SpriteComp.curAnim(), because will be a shorthand of SpriteComp.getCurAnim().name