aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.ts
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2022-03-27 23:06:05 +0200
committerMaksymilian Jopek <maks@jopek.eu>2022-03-27 23:06:05 +0200
commit6b08c641e9ad1f3b1c7ecc626efc0ee34d3d6925 (patch)
tree52a77c928e527125c752fdc2fec5d1809ea43818 /src/main.ts
parentab750d05a2eb580067e51c26032ff24358834d0b (diff)
downloadboules-6b08c641e9ad1f3b1c7ecc626efc0ee34d3d6925.tar.gz
boules-6b08c641e9ad1f3b1c7ecc626efc0ee34d3d6925.tar.zst
boules-6b08c641e9ad1f3b1c7ecc626efc0ee34d3d6925.zip
v0.1.0 - Game without ending
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main.ts b/src/main.ts
index 23355bf..50d41e6 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,16 +1,13 @@
import './style.css'
-import Ball from "./Ball"
+import Ball, { Nexts } from "./Ball"
import { genGameTable, render } from "./ui";
declare global {
interface Window { balls: Ball[]; }
}
-const balls = Ball.generateNewBalls();
-window.balls = balls;
-// Ball.generateStartBalls();
-// const map = <(Ball | null)[][]>[];
+Nexts.setEls();
+window.balls = Ball.generateNewBalls([]);
genGameTable();
-
-render(balls);
+render();