文档及教程更新

This commit is contained in:
YHH
2025-06-10 13:12:14 +08:00
parent ef023d27bf
commit 0c8f232282
21 changed files with 5470 additions and 2017 deletions

View File

@@ -181,8 +181,8 @@ class ComponentCache {
* // 获取组件
* const health = entity.getComponent(HealthComponent);
*
* // 设置位置
* entity.position = new Vector2(100, 200);
* // 添加位置组件
* entity.addComponent(new PositionComponent(100, 200));
*
* // 添加子实体
* const weapon = new Entity("Weapon", 2);