diff --git a/lib/nyan/flight.rb b/lib/nyan/flight.rb index d8d07bb..0e35154 100644 --- a/lib/nyan/flight.rb +++ b/lib/nyan/flight.rb @@ -27,14 +27,12 @@ def initialize(options = {}) @stage.add_sprite(@rainbow) @stage.add_sprite(@cat_head) @stage.add_sprite(@pop_tart) - @tick_time = Time.now end def next! maybe_add_a_twinkly_star @stage.play! - while Time.now - @tick_time < @framerate; end - @tick_time = Time.now + sleep(@framerate) end private