added a shitty ecs that I'm confident is way worse than just looping … (#4)
* added a shitty ecs that I'm confident is way worse than just looping objects lol * mader a rendering system based on ecs
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import "./style.css";
|
||||
import { attachCanvas, connectWorker } from "../core/connection/mainThread.ts";
|
||||
import MainSceneWorker from "../examples/starterScene?worker";
|
||||
import { ECS } from "../core/ecs/ecs";
|
||||
|
||||
const mainSceneWorker = new MainSceneWorker();
|
||||
connectWorker(mainSceneWorker);
|
||||
attachCanvas(mainSceneWorker, "rendering-canvas");
|
||||
|
||||
(window as any).ecs = new ECS();
|
||||
|
||||
Reference in New Issue
Block a user