Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

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

Layer.addComponent Method

Add a component that extends or shares the same interface as an Entity.

Parameters

Name Description
component The Entity to add to the layer.

Examples

Supported Platforms

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