Appearance
hm5-types (source format) / SpriteSheet
Interface: SpriteSheet
a bitmap asset cut into equal cells (AssetMeta.sheet)
Properties
| Property | Type | Description |
|---|---|---|
cellHeight | number | - |
cells? | SheetCell[] | IRREGULAR cells (TexturePacker JSON): cell i = cells[i], in order; the grid fields (cellWidth / cellHeight = the first cell's size, margin, spacing) are then only informative |
cellWidth | number | - |
count? | number | cells actually used (the last row may be partly empty); absent = every whole cell of the grid |
margin? | number | px kept free round the whole grid (left / top / right / bottom) |
spacing? | number | px between neighbouring cells (both directions) |