examples/mouse_pointer/mouse_pointer.rb in lotu-0.1.4 vs examples/mouse_pointer/mouse_pointer.rb in lotu-0.1.5

- old
+ new

@@ -2,11 +2,11 @@ LIB_PATH = File.join(File.dirname(__FILE__), '..', '..', 'lib', 'lotu.rb') require File.expand_path(LIB_PATH) include Gosu::Button class WarpingRuby < Lotu::Actor - def initialize + def initialize(opts={}) super set_image 'CptnRuby Gem.png' end def warp(x, y) @@ -21,10 +21,10 @@ with_path __FILE__ do load_images '../media' end - @ruby = WarpingRuby.new + @ruby = WarpingRuby.new(:x => width/2, :y => height/2) @cursor1 = Lotu::Cursor.new(:image => 'crosshair.png', :keys => {MsLeft => [:click, false]}, :color => 0xff0099ff) @cursor2 = Lotu::Cursor.new(:image => 'crosshair.png', :use_mouse => false,