Permalink
Browse files

added pry button

  • Loading branch information...
1 parent 0dbfbf8 commit 758b59595b8250a94a32f72a48613ab1887be138 @banister committed Sep 8, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/selene.rb
View
3 app/selene.rb
@@ -20,6 +20,7 @@
require 'particle'
require 'playgame'
require 'getready'
+require 'pry'
class W < Gosu::Window
attr_accessor :screen_x, :screen_y
@@ -55,6 +56,8 @@ def update
elsif @state.level_fail? || button_down?(Gosu::KbS)
@playgame = @state
@state = GetReady.new(self, @level, :failure)
+ elsif button_down?(Gosu::KbP)
+ binding.pry
elsif button_down?(Gosu::KbR)
@state = GetReady.new(self, @level, :restart)
elsif button_down?(Gosu::KbEscape)

0 comments on commit 758b595

Please sign in to comment.