A simple and flexible HTML5 and JavaScript powered game engine.
View Project on GitHub Download Pixel.js (v0.9b)
Represents a repeatable tile that can be used to cover the area of an Entity.
| Name | Description |
|---|---|
| loaded | A boolean value indicating whether or not the asset has been loaded. (Inherited from Asset.) |
| size | An object containing two properties, width and height, which represent the size of the area that the tile should cover. |
| Name | Description |
|---|---|
| draw | Draws the asset to the Layer that the owning Entity exists on. (Overrides Asset.draw.) |
| load | Loads the asset. (Overrides Asset.load.) |
| onLoad | The function to be called when the asset has finished loading. (Inherited from Asset.) |
| prepare | Prepare the information required to load the asset. (Inherited from Asset.) |
Google Chrome, Mozilla FireFox, Internet Explorer 9+, Opera, Safari.