Module: DXRuby::Tiled::ObjectInIsometricMap

Defined in:
lib/dxruby_tiled/object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#width_heightObject

Returns the value of attribute width_height.



253
254
255
# File 'lib/dxruby_tiled/object.rb', line 253

def width_height
  @width_height
end

Instance Method Details

#drawObject



254
255
256
257
258
259
260
# File 'lib/dxruby_tiled/object.rb', line 254

def draw
  tmp_x, tmp_y = self.x, self.y
  self.x = tmp_x - tmp_y
  self.y = (tmp_x + tmp_y) * @width_height
  super
  self.x, self.y = tmp_x, tmp_y
end