Sim-ecs:为仿真优化的高效 TypeScript ECS

sim-ecs 是一个基于类型的组件优先 ECS,专为仿真需求而优化,可以在 NodeJS 和浏览器中运行。该库借鉴了 Rust ECS 库 SPECS 和 Legion 的优点,并针对 JS 进行了优化。它的设计侧重于易用性和高迭代速度。尽管插入和删除速度较慢,但可以通过优化和建议的最佳实践来提高速度。建议在定义的点(如加载屏幕)进行批处理插入和删除操作。对于即时更改,可以使用在系统执行之间完成工作的回调,以确保所有系统在每次迭代时都使用相同的数据集。

folder
sim-ecs:受不同Rust ECS库启发的TypeScript ECS 预估大小:101个文件
file
.gitignore 62B
file
tsconfig.json 457B
file
README.md 10KB
file
.gitignore 62B
file
tsconfig.json 457B
file
README.md 234B
file
package.json 390B
file
tsconfig.json 425B
file
README.md 186B
file
package.json 999B
file
make.js 5KB
file
index.pug 113B
file
main.scss 99B
file
LICENSE 16KB
file
package.json 809B
file
world.ts 22KB
file
runners.test.ts 8KB
file
save-format.ts 6KB
file
world.spec.ts 6KB
file
.npmignore 105B
zip 文件大小:74.27KB