summaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts
new file mode 100644
index 0000000..36d156f
--- /dev/null
+++ b/src/main.ts
@@ -0,0 +1,11 @@
+import './styles.css';
+import { CyberJumpApp } from './game/CyberJumpApp';
+
+const root = document.querySelector<HTMLDivElement>('#app');
+
+if (!root) {
+ throw new Error('Missing #app root element.');
+}
+
+const app = new CyberJumpApp(root);
+app.start();