ecspresso
    Preparing search index...

    Aggregate component types for the 2D renderer plugin. Included automatically via .withPlugin(createRenderer2DPlugin({ ... })).

    const ecs = ECSpresso.create()
    .withPlugin(createRenderer2DPlugin({ ... }))
    .withComponentTypes<{ velocity: { x: number; y: number }; player: true }>()
    .build();
    interface Renderer2DComponentTypes {
        container: Container;
        graphics: Graphics;
        localTransform: LocalTransform;
        renderLayer: string;
        sprite: Sprite;
        visible: Visible;
        worldTransform: WorldTransform;
    }

    Hierarchy (View Summary)

    Index

    Properties

    container: Container
    graphics: Graphics
    localTransform: LocalTransform
    renderLayer: string

    Assigns the entity to a named render layer for z-ordering

    sprite: Sprite
    visible: Visible
    worldTransform: WorldTransform