game-engine/modules/game-objects/animation.js

8 lines
172 B
JavaScript
Raw Normal View History

2024-09-20 15:55:32 -05:00
export class Animation extends GameObject {
constructor({ frames = [], name, x = 0, y = 0 }) {
super({ x, y });
this.frames = frames;
this.name = name;
}
}