7 lines
172 B
JavaScript
7 lines
172 B
JavaScript
export class Animation extends GameObject {
|
|
constructor({ frames = [], name, x = 0, y = 0 }) {
|
|
super({ x, y });
|
|
this.frames = frames;
|
|
this.name = name;
|
|
}
|
|
}
|