This commit is contained in:
Tangent Wantwight 2020-04-04 21:48:50 -04:00
parent 264db31ac7
commit 04f947e7a4

View file

@ -2,6 +2,17 @@ import { Select } from "./Applet/Init";
import { BindTests } from "./Ecs/test"; import { BindTests } from "./Ecs/test";
import { Main } from "./Game/Main"; import { Main } from "./Game/Main";
/* // 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)); Select("#GameCanvas").forEachCanvas((c, cx, keys) => new Main(c, cx, keys));
BindTests(); BindTests();