Class TiledMapTileLayer


  • public class TiledMapTileLayer
    extends MapLayer
    • Constructor Detail

      • TiledMapTileLayer

        public TiledMapTileLayer​(int width,
                                 int height,
                                 int tileWidth,
                                 int tileHeight)
        Creates TiledMap layer
        Parameters:
        width - layer width in tiles
        height - layer height in tiles
        tileWidth - tile width in pixels
        tileHeight - tile height in pixels
    • Method Detail

      • getWidth

        public int getWidth()
        Returns:
        layer's width in tiles
      • getHeight

        public int getHeight()
        Returns:
        layer's height in tiles
      • getTileWidth

        public int getTileWidth()
        Returns:
        tiles' width in pixels
      • getTileHeight

        public int getTileHeight()
        Returns:
        tiles' height in pixels