Tower class hierarchy
This commit is contained in:
11
js/tile.js
Normal file
11
js/tile.js
Normal 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
|
||||
Reference in New Issue
Block a user