Aggregate component types for the 2D renderer plugin. Included automatically via .withPlugin(createRenderer2DPlugin({ ... })).
.withPlugin(createRenderer2DPlugin({ ... }))
const ecs = ECSpresso.create() .withPlugin(createRenderer2DPlugin({ ... })) .withComponentTypes<{ velocity: { x: number; y: number }; player: true }>() .build(); Copy
const ecs = ECSpresso.create() .withPlugin(createRenderer2DPlugin({ ... })) .withComponentTypes<{ velocity: { x: number; y: number }; player: true }>() .build();
Assigns the entity to a named render layer for z-ordering
Aggregate component types for the 2D renderer plugin. Included automatically via
.withPlugin(createRenderer2DPlugin({ ... })).Example