Method: Numeric.tick_interval

Defined in:
lib/core_ext/numeric.rb

.tick_intervalObject

Returns the game tick interval. By default the tick interval is 16.66666.

Returns:

  • the game tick interval. By default the tick interval is 16.66666



14
15
16
# File 'lib/core_ext/numeric.rb', line 14

def self.tick_interval
  @tick_interval.to_f == 0 ? 16.666666 : @tick_interval.to_f
end