Trying to get modules to work
This commit is contained in:
14
ts/tower_map.ts
Normal file
14
ts/tower_map.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export class TowerMap {
|
||||
#prnt;
|
||||
|
||||
constructor(prnt: HTMLElement) {
|
||||
this.#prnt = prnt;
|
||||
this.#prnt.style.display = 'grid';
|
||||
}
|
||||
|
||||
draw() {
|
||||
this.#prnt.style.backgroundImage = 'url("images/land1.svg")';
|
||||
this.#prnt.style.gridTemplateColumns = 'repeat(20, 1ft)';
|
||||
this.#prnt.style.gridTemplateRows = 'repeat(20, 1ft)';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user