@combos-fun/engine 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-skill.md +5 -2
- package/dist/engine.cjs.js +1 -1
- package/dist/engine.cjs.js.map +1 -1
- package/dist/engine.cjs.prod.js +1 -1
- package/dist/engine.d.ts +1 -1
- package/dist/engine.esm.js +1 -1
- package/dist/engine.esm.js.map +1 -1
- package/package.json +2 -2
package/agent-skill.md
CHANGED
|
@@ -120,7 +120,11 @@ A Component holds data + self-contained behaviour for one concern on one entity.
|
|
|
120
120
|
|
|
121
121
|
2D display objects must come through `plugin-renderer-`* systems or a custom `Renderer` subclass registered via `rendererManager.register(this)`. 3D objects must come through `plugin-renderer-3d-`* systems or a custom `Renderer3D` subclass. No raw `new PIXI.Sprite(...)` / `new THREE.Mesh(...)` in bootstrap or plain Components.
|
|
122
122
|
|
|
123
|
-
### Rule 6:
|
|
123
|
+
### Rule 6: One render Component per GameObject
|
|
124
|
+
|
|
125
|
+
A GameObject may carry at most one visible render Component. Do not attach multiple render Components such as `Img` + `Text`, `Graphics` + `Sprite`, or multiple sprite renderers to the same GameObject. Create child or sibling GameObjects for additional visible elements and use the Transform hierarchy to compose them. This keeps renderer ownership, bounds, picking, ordering, and destruction deterministic.
|
|
126
|
+
|
|
127
|
+
### Rule 7: Component configuration via params, not imperative calls
|
|
124
128
|
|
|
125
129
|
Configure Components through constructor params (e.g. `autoPlay: true`). If behaviour must be triggered at runtime, do it from another Component's lifecycle hook, not from bootstrap code.
|
|
126
130
|
|
|
@@ -300,4 +304,3 @@ After modifying engine code:
|
|
|
300
304
|
## See also
|
|
301
305
|
|
|
302
306
|
- `@combos-fun/engine/plugin-authoring` — full spec for writing a new `@combos-fun/plugin-*` package, including Component / System / Renderer / Renderer3D subclassing, manifest format, and publish requirements.
|
|
303
|
-
|
package/dist/engine.cjs.js
CHANGED