Skip to content

Commit

Permalink
chore(sprites): add gooba anims
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 25, 2025
1 parent afed743 commit 4e3ca10
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Binary file modified public/sprites/gooba.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion src/scenes/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,22 @@ scene(Scene.Preload, () => {
},
})

loadSprite(Sprite.Gooba, 'sprites/gooba.png', {
sliceX: 6,
anims: {
[Animation.Idle]: 0,
[Animation.Move]: 5,
[Animation.Attack]: {
from: 1,
to: 2,
},
[Animation.Cooldown]: 3,
[Animation.Stunned]: 4,
},
})

const sprites = [
[Sprite.Bean, 'sprites/bean.png'],
[Sprite.Gooba, 'sprites/gooba.png'],
[Sprite.Projectile, 'sprites/projectile.png'],
]

Expand Down

0 comments on commit 4e3ca10

Please sign in to comment.