base2020/src/index.ts

19 lines
477 B
TypeScript
Raw Normal View History

import { Select } from "./Applet/Init";
import { BindTests } from "./Ecs/test";
import { Main } from "./Game/Main";
2020-04-05 01:48:50 +00:00
/* // Hot Module Reloading stub, if that's viable
* declare const module: any;
* if(module.hot) {
* const gen = module.hot.data?.gen ?? 0;
* module.hot.accept();
* module.hot.dispose((data: any) => {
* data.gen = gen + 1;
* });
* }
*/
Select("#GameCanvas").forEachCanvas((c, cx, keys) => new Main(c, cx, keys));
BindTests();