Trying to get modules to work
This commit is contained in:
14
ts/tower.ts
Normal file
14
ts/tower.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { TowerMap } from 'tower_map.js';
|
||||
|
||||
export function main() {
|
||||
document.body.style.margin = '0';
|
||||
document.body.style.backgroundColor = 'black';
|
||||
|
||||
const container = document.createElement('div');
|
||||
document.body.appendChild(container);
|
||||
container.style.width = '100vmin';
|
||||
container.style.height = '100vmin';
|
||||
|
||||
const map = new TowerMap(container);
|
||||
map.draw();
|
||||
};
|
||||
Reference in New Issue
Block a user