Sha256: eb1b82d56001df7bba16c459451ca4ec7ad5109c68f8eac7c44039cab3daa303
Contents?: true
Size: 557 Bytes
Versions: 3
Compression:
Stored size: 557 Bytes
Contents
module Joybox module Actions class Scale def self.defaults { duration: 0.3, scale: 0 } end def self.by(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCScaleBy.actionWithDuration(options[:duration], scale: options[:scale]) end def self.to(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCScaleTo.actionWithDuration(options[:duration], scale: options[:scale]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
joybox-0.0.5 | lib/joybox/cocos2d/actions/scale.rb |
joybox-0.0.4 | lib/joybox/cocos2d/actions/scale.rb |
joybox-0.0.3 | lib/joybox/cocos2d/actions/scale.rb |