Class: Itchy
- Inherits:
-
Gosu::Window
- Object
- Gosu::Window
- Itchy
- Defined in:
- lib/scrit.rb
Instance Method Summary collapse
- #button_down(id) ⇒ Object
- #draw ⇒ Object
- #green_flag ⇒ Object
-
#initialize ⇒ Itchy
constructor
A new instance of Itchy.
- #stage ⇒ Object
- #update ⇒ Object
Constructor Details
Instance Method Details
#button_down(id) ⇒ Object
29 30 31 32 33 |
# File 'lib/scrit.rb', line 29 def (id) if id == Gosu::KbEscape close end end |
#draw ⇒ Object
24 25 26 27 |
# File 'lib/scrit.rb', line 24 def draw @stage.draw @sprites.each { |s| s.draw } end |
#green_flag ⇒ Object
16 17 18 |
# File 'lib/scrit.rb', line 16 def green_flag show end |
#stage ⇒ Object
35 36 37 |
# File 'lib/scrit.rb', line 35 def stage @stage end |
#update ⇒ Object
20 21 22 |
# File 'lib/scrit.rb', line 20 def update @sprites.each { |s| s.scripts } end |