12
13
14
15
16
17
18
19
20
21
|
# File 'lib/cyberarm_engine/timer.rb', line 12
def update
return if !@looping && @triggered
if Gosu.milliseconds >= @last_interval + @interval
@last_interval = Gosu.milliseconds
@triggered = true
@block.call if @block
end
end
|