class SK::TMX::Map
Attributes
height[RW]
layers[RW]
tile_height[RW]
tile_width[RW]
width[RW]
Public Class Methods
new(json)
click to toggle source
# File lib/shirokuro/standard_components/tmx/tmx_map.rb, line 7 def initialize json @width = json["width"] @height = json["height"] @tile_width = json["tilewidth"] @tile_height = json["tileheight"] @layers = [] json["layers"].each{ |layer| @layers << MapLayer.new(layer) } end