class DXRuby::Tiled::EllipseObject

Public Class Methods

create_from_hash(hash) click to toggle source
# File lib/dxruby_tiled/object.rb, line 82
def self.create_from_hash(hash)
  self.new(hash[:x], hash[:y], hash[:width], hash[:height], hash)
end
new(x, y, width, height, options = {}) click to toggle source
Calls superclass method DXRuby::Tiled::TMEObject::new
# File lib/dxruby_tiled/object.rb, line 86
def initialize(x, y, width, height, options = {})
  options[:width]  = width
  options[:height] = height
  super x, y, options
  self.collision = [@width / 2.0, @width / 2.0, @width / 2.0]
  self.scale_y = 1.0 * @height / @width
end

Public Instance Methods

draw() click to toggle source
# File lib/dxruby_tiled/object.rb, line 94
def draw; end