Difference between revisions of "TileSheet Object"
Jump to navigation
Jump to search
(Added Category) |
m (Rich moved page TileSheet to TileSheet Object: It's an object.) |
(No difference)
| |
Revision as of 10:36, 4 June 2013
| This page describes a BOARD18 JavaScript object. |
| This object is created using the TileSheet constructor function. |
| Go to Object List. - Go to Design Document. |
The TileSheet object describes a tile sheet and its use.
| Element | Type | C | Description |
|---|---|---|---|
| image | url | * | URL of the image file |
| sheetType | string | * | 'tile' |
| trayName | string | * | Name of tray for this sheet |
| xStart | int | * | Start of tile rows |
| xSize | int | * | Width of tiles |
| xStep | int | * | Spacing of tiles in rows |
| yStart | int | * | Start of tile columns |
| ySize | int | * | Hight of tiles |
| yStep | int | * | Spacing of tiles in columns |
| tilesOnSheet | int | * | Count of tile columns on sheet |
| tileDups | array of int | * | Count of available tiles |
| tileRots | array of int | * | Number of rotations for tile |
An * in the "C" column indicates that the element is created by the constructor function.
Methods in Object
place(high) The place function places the tile sheet on the tray (canvas0).