Class SceneAbstract

Base class for all game scenes

class GameScene extends Scene {
systems = [
SomeSystem,
AnotherSystem
];

loadAssets() {
this.assetManager.loadImage("image.png");
}

setup() {
this.entityManager.createEntity([
SomeComponent,
AnotherComponent
]);
}
}

Constructors

Properties

assetManager: AssetManager
entityManager: EntityManager
systems: SystemType[]

Methods