Tower class hierarchy

This commit is contained in:
Ian Gulliver
2021-05-11 02:57:17 +00:00
parent 495aeb6204
commit 0ff24fe806
28 changed files with 346 additions and 279 deletions

10
js/simple_tile.js Normal file
View File

@@ -0,0 +1,10 @@
import { Tile } from './tile.js';
export class SimpleTile extends Tile {
constructor(width, height, image_url, animations) {
super(width, height);
this.elem.style.backgroundImage = `url('${encodeURIComponent(image_url)}')`;
this.elem.style.backgroundSize = 'cover';
this.animations = animations;
}
}
//# sourceMappingURL=simple_tile.js.map