platformer - v1.0.0
    Preparing search index...

    Type Alias WorldProps

    Props for the World component.

    type WorldProps = {
        children?: ReactNode;
        mapSize: Size;
    }
    Index

    Properties

    Properties

    children?: ReactNode

    React children rendered inside the ECS context.

    Typically game entities such as Player, Camera, Platforms, etc.

    mapSize: Size

    Total size of the game world in world units.

    Usually calculated as: mapWidth * tileSize and mapHeight * tileSize.

    This value is used for:

    • Camera bounds calculations
    • Minimum zoom constraints
    • World clamping logic