Permalink
Browse files

Minor clock style cleanup in chimp.rb.

  • Loading branch information...
1 parent 898a91b commit 78d9faea2318b98468818998a03e0ce820ab8156 @jacius jacius committed Apr 27, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 samples/chimp.rb
View
@@ -229,8 +229,9 @@ def main
# This also differs from pygame. Rather than pass the desired framerate
# when you call clock.tick, you set the framerate for the clock, either
- # when you create it, or afterwards with the desired_fps accessors.
- clock = Clock.new { |clock| clock.target_framerate = 30 }
+ # when you create it, or afterwards with the target_framerate accessor.
+ clock = Clock.new
+ clock.target_framerate = 30
# Autoload the sound effects
whiff_sound = Sound['whiff.wav']

0 comments on commit 78d9fae

Please sign in to comment.