Root container for game objects. Extends PIXI.Container. Automatically calls init/update on child entities created with asEntity().
const scene = new Scene(renderer);scene.addChild(asEntity(sprite));scene.init(); // Calls init() on all entity logic Copy
const scene = new Scene(renderer);scene.addChild(asEntity(sprite));scene.init(); // Calls init() on all entity logic
Render the scene. Called automatically by Engine each frame.
Initialize all entity logic. Call once after adding entities.
Update all entity logic. Called automatically by Engine each frame.
Root container for game objects. Extends PIXI.Container. Automatically calls init/update on child entities created with asEntity().
Example