aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts28
1 files changed, 21 insertions, 7 deletions
diff --git a/src/main.ts b/src/main.ts
index 50d41e6..7b2b445 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,13 +1,27 @@
import './style.css'
-import Ball, { Nexts } from "./Ball"
-import { genGameTable, render } from "./ui";
+/* For documentation only */
+import * as UI from "./ui";
+// import * as Consts from "./consts";
+// import * as Map from "./map";
+// import * as Utils from "./utils";
+import * as Ball from "./Ball";
+// import * as Pathfinder from "./pathfinder";
+// import * as Graph from "./pathfinder/Graph";
+// export { UI, Consts, Map, Utils, Ball, Pathfinder, Graph };
+/** Global array of {@linkcode Ball} */
declare global {
- interface Window { balls: Ball[]; }
+ interface Window { balls: Ball.Ball[]; startTime: number; }
}
-Nexts.setEls();
-window.balls = Ball.generateNewBalls([]);
-genGameTable();
-render();
+/** Sets preview of next balls */
+Ball.Nexts.setEls();
+/** Generate stat balls */
+window.balls = Ball.Ball.generateNewBalls([]);
+
+/** Generate html table for balls */
+UI.genGameTable();
+/** renders balls */
+UI.render();
+window.startTime = Date.now()