2020-05-10 22:47:03 +00:00
|
|
|
import { Select } from "./applet/Init";
|
|
|
|
import { KeyName } from "./applet/Keyboard";
|
|
|
|
import { BindTests } from "./ecs/test";
|
|
|
|
import { Data } from "./game/GameComponents";
|
|
|
|
import { Main } from "./game/Main";
|
2020-05-18 03:47:50 +00:00
|
|
|
import { Connection } from "./net/Connection";
|
|
|
|
import {} from "./net/LoopbackServer";
|
2020-03-25 03:47:04 +00:00
|
|
|
|
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;
|
|
|
|
* });
|
|
|
|
* }
|
|
|
|
*/
|
|
|
|
|
2020-05-18 03:47:50 +00:00
|
|
|
Select(".GameCanvas").forEachCanvas((c, cx, keys) => {
|
|
|
|
const connection = new Connection<KeyName[], Data>("ws://localhost:9090/");
|
|
|
|
new Main(c, cx, keys, connection.socket);
|
|
|
|
});
|
2020-05-03 01:20:54 +00:00
|
|
|
|
2020-03-25 03:47:04 +00:00
|
|
|
BindTests();
|