Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: get sprite anims #305

Merged
merged 1 commit into from
Aug 4, 2024
Merged

feat: get sprite anims #305

merged 1 commit into from
Aug 4, 2024

Conversation

lajbel
Copy link
Collaborator

@lajbel lajbel commented Aug 3, 2024

From Changelog:

  • sprite() new methods, getAnim, hasAnim
const obj = add([
    sprite("bean"),
]);

// check if an animation exists
debug.log(obj.hasAnim("walk"));
// get the animation data
debug.log(obj.getAnim("walk"));

@lajbel lajbel requested a review from mflerackers August 3, 2024 01:53
Copy link

pkg-pr-new bot commented Aug 3, 2024

commit: 0971e62

pnpm add https://pkg.pr.new/kaplayjs/kaplay@305

Open in Stackblitz

@lajbel lajbel self-assigned this Aug 3, 2024
@lajbel lajbel merged commit 11fcc3f into master Aug 4, 2024
3 checks passed
@lajbel lajbel deleted the sprite-anims-getters branch August 4, 2024 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: obj.hasAnim()
2 participants