8 lines
172 B
JavaScript
8 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;
|
||
|
}
|
||
|
}
|