import { IUpdatable } from './IUpdatable'; import { IRunnable } from './IRunnable'; import { Map } from './Map'; import { GameObject } from './GameObject'; /** * A scene contains all the game objects in a specific "screen" of your game.
* For example, you may have a "MainScreen" scene that will contain everything * that is in the main screen of your game.
* You could then have a "Level1" scene that will contain the level 1 of you game. etc. */ export declare class Scene extends Map implements IUpdatable, IRunnable { constructor(); /** * Called when the scene is created.
* You can set your game objects (UI, characters, music, etc) from here. */ create(): void; /** * Run every frame to update the scene.
* This is useful when you want an update to run as long as your scene is * being rendered, independently from the game objects it contains. */ update(): void; /** * Used internally to update the scene and its game objects. */ _runUpdate(): void; /** * Used internally by the renderer to render the scene. * @param context The renderer's context, automatically passed in. */ _runRender(context: CanvasRenderingContext2D): void; }