Contains current keyboard state, with keys pressed and so on
Contains the current mouse position
Adds an entity to an already instantiated world. Updates system filters.
Gets time elapsed since engine was started
Removes an entity from an already instantiated world.
Starts the game loop. Runs until stopped.
Generated using TypeDoc
A World ties everything together Usage:
const pixi = new PIXI.Application({ width: 600, height: 400}); const entityList = [list(), full(), of(), entities()] const settings = { fps: 60, debug: false } const world = new World(pixi.view, entityList, [myUpdateSystem], [myRenderSystem], settings); world.start()