Appearance
Class: GameEngineService
Entry point for the game engines available to apps. Today it exposes the Phaser engine through the `phaser` property.
Remarks
Accessible everywhere via k.gameEngines. You never have to instantiate this service yourself — it is created by the SDK when the app/widget starts.
Example
ts
// Load Phaser, then the avatar engine into a scene
await k.gameEngines.phaser.load();
await k.gameEngines.phaser.loadAvatarModule(scene);See
PhaserEngineService for methods that load Phaser and its plugins.
Implements
Properties
phaser
ts
phaser: PhaserEngineService;Phaser game engine and its plugins (avatars, effects).