-
Notifications
You must be signed in to change notification settings - Fork 114
Archetype
Adrian Papari edited this page Feb 21, 2017
·
7 revisions
Archetypes provide a reusable blueprint for new entities. Archetypes have a performance benefit.
Archetype chickenArchetype =
new ArchetypeBuilder()
.add(Pos.class)
.add(Anim.class)
.add(Bounds.class)
.build(world);
int chicken = world.create(chickenArchetype);
Archetype flamingChickenArchetype =
new ArchetypeBuilder(chickenArchetype)
.add(Flaming.class)
.build(world);
- Overview
- Concepts
- Getting Started
- Using
- More guides
- Plugins
- Game Gallery
- Tools and Frameworks
- API reference