12 lines
246 B
TypeScript
12 lines
246 B
TypeScript
import "./style.css";
|
|
import { GameApp } from "./game/GameApp";
|
|
|
|
const appRoot = document.querySelector<HTMLDivElement>("#app");
|
|
|
|
if (!appRoot) {
|
|
throw new Error("Missing #app root element");
|
|
}
|
|
|
|
const game = new GameApp(appRoot);
|
|
game.start();
|