Sha256: 03724e6dbf3685cf70767780936c649bba6a4f1d159168e8cb4ca4cced066dad

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

module Joybox
  module Actions

    class Repeat

      def self.defaults
        {
          action: nil
        }
      end

      #TODO: Revisar esto, no estoy completamente seguro que deba de cambiar la implementacion
      #      original (nombre del metodo)
      def self.forever(options = {})

        options = options.nil? ? defaults : defaults.merge!(options)

        CCRepeatForever.actionWithAction(options[:action])
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
joybox-0.0.5 lib/joybox/cocos2d/actions/repeat.rb
joybox-0.0.4 lib/joybox/cocos2d/actions/repeat.rb
joybox-0.0.3 lib/joybox/cocos2d/actions/repeat.rb