entities-and-factories
CommunityMaster FRB2 entity lifecycles with factories.
Authorvchelaru
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Entities and Factories in FlatRedBall2 help developers manage game object lifecycles by using Factory<T> to create, track, and destroy Entity instances, ensuring engine injection and proper lifecycle sequencing.
Core Features & Use Cases
- Spawn through Factory<T> to ensure Engine is set and Factory references are wired.
- Override CustomInitialize and CustomActivity for per-entity setup and per-frame logic.
- Manage relationships between entities and shapes; leverage Add, shape children, and Engine.GetFactory<T>() for orchestration.
- Avoid creating entities for static walls or floors; use TileShapes for level composition and grid layouts.
Quick Start
Spawn a new entity through a factory and wire up its initial shape in CustomInitialize.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: entities-and-factories Download link: https://github.com/vchelaru/FlatRedBall2/archive/main.zip#entities-and-factories Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.