Hacky projectile system

This commit is contained in:
Ian Gulliver
2021-05-11 05:17:16 +00:00
parent ffe531d5e5
commit 4e65819183
27 changed files with 170 additions and 159 deletions

View File

@@ -9,7 +9,10 @@ export class SimpleTile extends Tile {
play(name) {
const animation = this.animations.get(name);
if (animation) {
this.elem.animate(...animation);
return this.elem.animate(...animation);
}
else {
return undefined;
}
}
}