aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.ts
blob: 23355bf5bf94fa220e84eda9ebf757b04d1de653 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import './style.css'

import Ball 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)[][]>[];

genGameTable();

render(balls);