Component types provided by the bounds plugin. Included automatically via .withPlugin(createBoundsPlugin()).
.withPlugin(createBoundsPlugin())
const ecs = ECSpresso.create() .withPlugin(createTransformPlugin()) .withPlugin(createBoundsPlugin({ width: 800, height: 600 })) .withComponentTypes<{ sprite: Sprite }>() .build(); Copy
const ecs = ECSpresso.create() .withPlugin(createTransformPlugin()) .withPlugin(createBoundsPlugin({ width: 800, height: 600 })) .withComponentTypes<{ sprite: Sprite }>() .build();
Component types provided by the bounds plugin. Included automatically via
.withPlugin(createBoundsPlugin()).Example