Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

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

Engine.init Method

Initialises the game scene.

Parameters

Name Description
info An object containing the following properties:

  • container: the element that will contain the canvases created by Pixel.js.
  • width: the width of the game scene.
  • height: the height of the game scene.
  • maxDeltaTime (Optional): the maximum amount of time in milliseconds that should be applied when calculating the time between iterations of the game loop.

Examples

Supported Platforms

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