platformer - v1.0.0
    Preparing search index...

    Variable defaultConst

    default: FC<WorldProps> = ...

    Root game world component.

    World is responsible for:

    • Creating and providing the ECS instance
    • Running the main game loop
    • Executing all game systems in order
    • Managing canvas rendering
    • Handling camera bounds and zoom constraints
    • Syncing the canvas size with the window

    It should wrap all game-related entities and systems.

    <World
    mapSize={{ width: 3000, height: 2000 }}
    >
    <Player position={{ x: 100, y: 500 }} />
    <Camera target={Symbol.for('player')} />
    </World>