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