diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2022-04-21 13:44:38 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2022-04-21 15:55:51 +0200 |
| commit | ca7f97e765024b3ba279f2c4485e28add7b7e1a7 (patch) | |
| tree | f696510846b2654151ba99aebafcf5bb5445e254 /src/main.ts | |
| parent | 6b08c641e9ad1f3b1c7ecc626efc0ee34d3d6925 (diff) | |
| download | boules-ca7f97e765024b3ba279f2c4485e28add7b7e1a7.tar.gz boules-ca7f97e765024b3ba279f2c4485e28add7b7e1a7.tar.zst boules-ca7f97e765024b3ba279f2c4485e28add7b7e1a7.zip | |
v1.0.0
Diffstat (limited to 'src/main.ts')
| -rw-r--r-- | src/main.ts | 28 |
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() |
