Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

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

Engine.scene Property

An object that encapsulates information relating to the game scene.

Remarks

The scene property encapsulates three properties:

  • container: the element that contains the canvases created by Pixel.js.
  • width: the width of the game scene.
  • height: the height of the game scene.

Examples

Supported Platforms

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