feat(#15): separate sprite from player
This commit is contained in:
parent
e2cd0ee490
commit
ea9d912e2f
6 changed files with 91 additions and 84 deletions
7
modules/game-objects/animation.js
Normal file
7
modules/game-objects/animation.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
export class Animation extends GameObject {
|
||||
constructor({ frames = [], name, x = 0, y = 0 }) {
|
||||
super({ x, y });
|
||||
this.frames = frames;
|
||||
this.name = name;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue