Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

View Project on GitHub Download Pixel.js (v0.9b)

Engine.loadAndRun Method

Loads all registered components that have been prepared and then runs the game loop.

Parameters

Name Description
gameLoop The game loop to start after loading the prepared components.

Remarks

All registered layers (and the entities registered to them), as well as registered sounds will all be asynchronously loaded. After each component has been successfully loaded the gameLoop function will be executed as if passed directly to the run method.

Examples

Supported Platforms

Google Chrome, Mozilla FireFox, Internet Explorer 9+, Opera, Safari.