lib/lotu/actor.rb in lotu-0.1.4 vs lib/lotu/actor.rb in lotu-0.1.5
- old
+ new
@@ -3,16 +3,14 @@
attr_accessor :parent, :x, :y, :systems
def initialize(opts={})
default_opts = {
:x => 0,
- :y => 0,
- :color => 0xffffffff
+ :y => 0
}
- opts = default_opts.merge!(opts)
- @x = opts[:x]
- @y = opts[:y]
- @color = opts[:color]
+ @opts = default_opts.merge!(opts)
+ @x = @opts[:x]
+ @y = @opts[:y]
@parent = $window
@parent.update_queue << self
# Add extra functionality
self.extend Drawable