aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.ts
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2022-05-24 18:25:43 +0200
committerMaksymilian Jopek <maks@jopek.eu>2022-05-24 18:25:43 +0200
commit2f8b8c87fb2062313afea7b625ccb20d1bea95b9 (patch)
tree973e20986e4b9279b9322a9fd140e6f989eaf492 /src/main.ts
download1942-2f8b8c87fb2062313afea7b625ccb20d1bea95b9.tar.gz
1942-2f8b8c87fb2062313afea7b625ccb20d1bea95b9.tar.zst
1942-2f8b8c87fb2062313afea7b625ccb20d1bea95b9.zip
Initial commit
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts
new file mode 100644
index 0000000..9f462e5
--- /dev/null
+++ b/src/main.ts
@@ -0,0 +1,10 @@
+import "./style.css";
+import "./Events";
+import loadAllImages from "./Images";
+import { start } from "./game";
+
+async function init() {
+ await loadAllImages();
+ start();
+}
+document.body.onload = init;