Sha256: 730a0e3c293e3b6ad27965070648fa68e6cc82f626056e315e739fdf865686de
Contents?: true
Size: 574 Bytes
Versions: 3
Compression:
Stored size: 574 Bytes
Contents
module Joybox module Actions class Move def self.defaults { duration: 0.3, position: [0, 0] } end def self.by(options = {}) options = options.nil? ? defaults : defaults.merge!(options) 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]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
joybox-0.0.5 | lib/joybox/cocos2d/actions/move.rb |
joybox-0.0.4 | lib/joybox/cocos2d/actions/move.rb |
joybox-0.0.3 | lib/joybox/cocos2d/actions/move.rb |