Creates a new engine instance.
Configuration, available systems, components, and asset kinds.
Options for Engine.
The asset classes the game can use. The configuration picks from them by
assetName.
The component classes the game can use. The configuration picks from them by
componentName.
The game configuration: scenes, templates, systems, assets and global options.
The system classes the game can use. The configuration picks from them by
systemName. List a system as MySystem.with(dependencies) to give it
dependencies from the game code, see SystemBinding. Such an entry
replaces a plain entry of the same system.
Pauses the engine by stopping the game loop.
The world and scene state remain in memory so it can be resumed with play.
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.
A promise that resolves once the engine is fully started.
Stops the engine completely by stopping the game loop and destroying the world.
Main game engine responsible for bootstrapping scenes and systems, managing the game loop, and controlling lifecycle actions (play, pause, stop).