feat(#15): separate sprite from player

This commit is contained in:
Juan Sebastián Montoya 2024-09-20 15:55:32 -05:00
parent e2cd0ee490
commit ea9d912e2f
6 changed files with 91 additions and 84 deletions

View 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;
}
}