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

View File

@@ -13,7 +13,7 @@ export class Layer {
}
add_tile(tile_factory: TileFactory): HTMLElement {
const elem = tile_factory.get_elem(this.#tileset);
const elem = tile_factory.build(this.#tileset).get_elem();
elem.style.zIndex = `${this.#level}`;
return elem;
}