Working animations

This commit is contained in:
Ian Gulliver
2021-05-11 03:12:32 +00:00
parent 0ff24fe806
commit ea167e42a1
17 changed files with 74 additions and 37 deletions

View File

@@ -6,5 +6,11 @@ export class SimpleTile extends Tile {
this.elem.style.backgroundSize = 'cover';
this.animations = animations;
}
play(name) {
const animation = this.animations.get(name);
if (animation) {
this.elem.animate(...animation);
}
}
}
//# sourceMappingURL=simple_tile.js.map