motion/joybox/actions/move.rb in joybox-1.0.0 vs motion/joybox/actions/move.rb in joybox-1.1.0

- old
+ new

@@ -9,23 +9,16 @@ position: [0, 0] } end def self.by(options = {}) - options = options.nil? ? defaults : defaults.merge!(options) - - CCMoveBy.actionWithDuration(options[:duration], - position: options[:position]) + CCMoveBy.actionWithDuration(options[:duration], position: options[:position]) end - def self.to(options = {}) - options = options.nil? ? defaults : defaults.merge!(options) - - CCMoveTo.actionWithDuration(options[:duration], - position: options[:position]) + CCMoveTo.actionWithDuration(options[:duration], position: options[:position]) end end end \ No newline at end of file