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

11
js/tile.js Normal file
View File

@@ -0,0 +1,11 @@
export class Tile {
constructor(width, height) {
this.elem = document.createElement('div');
this.elem.style.gridColumnEnd = `span ${width}`;
this.elem.style.gridRowEnd = `span ${height}`;
}
get_elem() {
return this.elem;
}
}
//# sourceMappingURL=tile.js.map