lib/minigl/map.rb
def get_absolute_size
      return Vector.new(@tile_size.x * @size.x, @tile_size.y * @size.y) unless @isometric
      avg = (@size.x + @size.y) * 0.5
      Vector.new (avg * @tile_size.x).to_i, (avg * @tile_size.y).to_i
    end
def get_absolute_size
      return Vector.new(@tile_size.x * @size.x, @tile_size.y * @size.y) unless @isometric
      avg = (@size.x + @size.y) * 0.5
      Vector.new (avg * @tile_size.x).to_i, (avg * @tile_size.y).to_i
    end
Creates a new map.

 Parameters:
 [t_w] The width of the tiles.
 [t_h] The height of the tiles.
 [t_x_count] The horizontal count of tiles in the map.
 [t_y_count] The vertical count of tiles in the map.
 [scr_w] Width of the viewport for the map.
 [scr_h] Height of the viewport for the map.
 [isometric] Whether to use a isometric map. By default, an ortogonal map
             is used.
 [limit_cam] Whether the camera should respect the bounds of the map
             (i.e., when given coordinates that would imply regions
             outside the map to appear in the screen, the camera would
             move to the nearest position where only the map shows up
             in the screen).
 Returns a Vector with the total size of the map, in pixels (x for the
 width and y for the height).