Class SceneAbstract

Base class for all game scenes

class MainScene extends Scene {
loadAssets() {
this.assetManager.loadImage("image.png");
}

loadSystems() {
this.systems.push(
SomeSystem,
AnotherSystem
);
}

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

Constructors

Properties

assetManager: AssetManager
entityManager: EntityManager
systems: SystemType[] = []

Methods