Difference between revisions of "TileSheet Object"
Jump to navigation
Jump to search
(Initial version of this page) |
(Added Category) |
||
Line 76: | Line 76: | ||
'''place(high)''' | '''place(high)''' | ||
The place function places the tile sheet on the tray (canvas0). | The place function places the tile sheet on the tray (canvas0). | ||
[[Category:Design]] |
Revision as of 08:25, 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).