Files
tower/js/animatable_tile.js
2021-05-11 05:28:20 +00:00

17 lines
459 B
JavaScript

import { Tile } from './tile.js';
export class AnimatableTile extends Tile {
constructor(width, height, animations) {
super(width, height);
this.animations = animations;
}
play(name) {
const animation = this.animations.get(name);
if (animation) {
return this.elem.animate(...animation);
}
else {
return undefined;
}
}
}
//# sourceMappingURL=animatable_tile.js.map