Difference between revisions of "TileMap"
From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> The `TileMap` class is used to work with tile maps easily and...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' <br/> | + | '''Supported platforms:''' android, ios, mac, pc<br/> |
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
Line 7: | Line 7: | ||
<br /> | <br /> | ||
Check `Desert` and `Sewers` examples provided with Gideros for usage of TileMap with export from editor | Check `Desert` and `Sewers` examples provided with Gideros for usage of TileMap with export from editor | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
{|- | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[TileMap.new]] - creates a new TileMap instance<br/> | ||
+ | [[TileMap:clearTile]] - set an empty tile at given indices<br/> | ||
+ | [[TileMap:getTile]] - returns the index of the tile<br/> | ||
+ | [[TileMap:setRepeat]] - Indicate if the tilemap should repeat itself<br/> | ||
+ | [[TileMap:setTexture]] - Change the tile texture/atlas used by the tilemap<br/> | ||
+ | [[TileMap:setTile]] - sets the index of the tile<br/> | ||
+ | [[TileMap:shift]] - shifts the tile map<br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
+ | [[TileMap.FLIP_DIAGONAL]] | ||
+ | [[TileMap.FLIP_HORIZONTAL]] | ||
+ | [[TileMap.FLIP_VERTICAL]] | ||
|} | |} |
Revision as of 08:57, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
The `TileMap` class is used to work with tile maps easily and efficiently.
Check `Desert` and `Sewers` examples provided with Gideros for usage of TileMap with export from editor
MethodsTileMap.new - creates a new TileMap instance |
EventsConstantsTileMap.FLIP_DIAGONAL TileMap.FLIP_HORIZONTAL TileMap.FLIP_VERTICAL |