SimpleRuleTileset
ldtk.rules.SimpleRuleTileset (Class)
Tileset geometry computed from plain numbers, as found in the project JSON.
opaqueTiles is the cachedPixelData.opaqueTiles string: one char per tile id, "1" = fully opaque.
Static Members
computeCWid(pxWid: Int, tileGridSize: Int, padding: Int, spacing: Int): Int
| Name |
Type |
pxWid |
Int |
tileGridSize |
Int |
padding |
Int |
spacing |
Int |
Instance Members
| Name |
Type |
Default |
opaqueTiles |
String |
(optional) |
getTileSourceX(tileId: Int): Int
getTileSourceY(tileId: Int): Int
| Name |
Type |
Default |
cWid |
Int |
|
cHei |
Int |
|
tileGridSize |
Int |
|
padding |
Int |
|
spacing |
Int |
|
opaqueTiles |
String |
(optional) |
Private Members