Anonymous

Not logged in

  • British English
  • Log in
GiderosMobile

TileMap

From GiderosMobile

Namespaces

  • Page
  • Discussion

More

  • More

Page actions

  • Read
  • View source
  • History
Revision as of 13:19, 23 August 2018 by Hgy29 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Methods

TileMap.new Template:Creates a new TileMap instance
TileMap:clearTile Template:Set an empty tile at given indices
TileMap:getTile Template:Returns the index of the tile
TileMap:setRepeat Template:Indicate if the tilemap should repeat itself
TileMap:setTexture Template:Change the tile texture/atlas used by the tilemap
TileMap:setTile Template:Sets the index of the tile
TileMap:shift Template:Shifts the tile map

Events

Constants

TileMap.FLIP_DIAGONAL
TileMap.FLIP_HORIZONTAL
TileMap.FLIP_VERTICAL

Retrieved from "https://wiki.gideros.rocks/index.php?title=TileMap&oldid=5289"

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help

Categories

    Lua API
    Main API
    Plugins

    Wiki tools

    Wiki tools

    • Special pages

    Page tools

    Page tools

      User page tools

        More

        • What links here
        • Related changes
        • Printable version
        • Permanent link
        • Page information
        • Page logs
        • Powered by MediaWiki
        • This page was last modified on 23 August 2018, at 13:19.
        • Privacy policy
        • About GiderosMobile
        • Disclaimers