Class: OrangeZest::Window
- Inherits:
-
Gosu::Window
- Object
- Gosu::Window
- OrangeZest::Window
- Defined in:
- lib/orange_zest/window.rb
Overview
A subclass of ‘Gosu::Window` which overrides a variety of default methods in order to:
-
Draw and update the main group
-
Update and provide inputs to Input
Class Method Summary collapse
Instance Method Summary collapse
- #button_down(id) ⇒ Object
- #draw ⇒ Object
-
#initialize(*args) ⇒ Window
constructor
A new instance of Window.
- #update ⇒ Object
Constructor Details
#initialize(*args) ⇒ Window
Returns a new instance of Window.
10 11 12 13 14 |
# File 'lib/orange_zest/window.rb', line 10 def initialize(*args) super(*args) raise "OrangeZest only supports one window" if defined? @@current @@current = self end |
Class Method Details
.current ⇒ Object
6 7 8 |
# File 'lib/orange_zest/window.rb', line 6 def self.current @@current end |