aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.ts
blob: 7b2b4451abf07c8eae0ae7536386b0c36dc49e17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import './style.css'

/* 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.Ball[]; startTime: number; }
}

/** 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()