Sha256: 0748e2f6cb53867cc056a3635d900c9ce20ae46de15210d371381f15f9b2eda7
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.0.0 | motion/joybox/actions/move.rb |
joybox-0.0.6 | motion/joybox/actions/move.rb |