Sha256: 07ee6e71c10be6d0dc138c02f49d7d4fb912f06b65da366c9d72a6c5f0456d7e
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
module Joybox module Actions class Turn def self.defaults { duration: 0.3 } end def self.off(options = {}) # Todo print error message on the console return unless options.has_key? :grid_size options = options.nil? ? defaults : defaults.merge!(options) seed = options.delete(:seed) || Joybox.generate_seed CCTurnOffTiles.actionWithSeed(seed, grid: options[:grid_size], duration: options[:duration]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | motion/joybox/actions/turn.rb |
joybox-1.1.0 | motion/joybox/actions/turn.rb |