This commit is contained in:
Tangent Wantwight 2020-04-04 21:48:50 -04:00
parent 264db31ac7
commit 04f947e7a4
1 changed files with 11 additions and 0 deletions

View File

@ -2,6 +2,17 @@ import { Select } from "./Applet/Init";
import { BindTests } from "./Ecs/test";
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));
BindTests();