dacha
    Preparing search index...

    Class Engine

    Main game engine responsible for bootstrapping scenes and systems, managing the game loop, and controlling lifecycle actions (play, pause, stop).

    Index
    • Pauses the engine by stopping the game loop. The world and scene state remain in memory so it can be resumed with play.

      Returns void

    • Starts the engine. If the engine was already initialized, this resumes the game loop and re-attaches window listeners. Otherwise, it bootstraps the world, loads the start scene, creates the game loop, and begins execution.

      Returns Promise<void>

      A promise that resolves once the engine is fully started.

      Error If startSceneId is not provided in the config.

      Error If any component is missing componentName.

      Error If any system is missing systemName.

      Error If any asset class is missing assetName.

    • Stops the engine completely by stopping the game loop and destroying the world.

      Returns void