Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update(delta_in_milliseconds)
- @time_since_last_update += delta_in_milliseconds
- if @time_since_last_update > @update_delay
- @time_since_last_update -= @update_delay
- notify :update
- end
- end
Add Comment
Please, Sign In to add comment