Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

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

PixelJS Class

Provides shared / static properties and methods used throughout the entire engine.

Inheritance Hierarchy

  • PixelJS

Properties

Name Description
assetPath The path that contains the asset directories
Buttons A set of properties to identify the mouse buttons that have been pressed or released.
Directions A set of properties to identify the direction an entity is moving in.
Keys A set of properties to identify keys that have been pressed or released.

Methods

Name Description
extend Copies the prototype of one class to another.
proxy Invokes a function within a specified context.

Remarks

PixelJS is not instantiable and should be treated as a namespace.

All the classes within Pixel.js are contained within this namespace.

Supported Platforms

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