lib/framework/delta_time.rb
# this should be called at the start of Gosu::Window#update
this should be called at the start of Gosu::Window#update
this should be called at the start of Gosu :: Window#update
def delta_time!
    now = Gosu.milliseconds
    @last_update ||= now
    @delta_time = now - @last_update
    @last_update = now
  end
def delta_time! now = Gosu . milliseconds @last_update ||= now @delta_time = now - @last_update @last_update = now end
this should be called at the start of Gosu::Window#update
this should be called at the start of Gosu :: Window#update