This project is a demo about how to integrate a bitECS world with a React Three Fiber rendering to display your simulations (or games) inside a web browser. This can be used as a starter project as well. Be sure to read both documentations!
It is powered by Vite, so the usual Vite commands apply:
npm run dev
to serve a development version atlocalhost:5173
npm run build
to produce a build output into thedist
foldernpm run preview
to preview the production build atlocalhost:4173
Since there's collision in the naming of "components" from both the React library and the ECS pattern, the project files have been split in two:
- the
views
folder containing the React / React Three Fiber related components - the
logic
folder containing the compnents, queries and systems from