Class: GamesParadise::GUI::Foobar
- Inherits:
-
Gosu::Window
- Object
- Gosu::Window
- GamesParadise::GUI::Foobar
- Defined in:
- lib/games_paradise/prototypes/gosu_prototype.rb
Constant Summary collapse
- NAMESPACE =
#
NAMESPACE
#
inspect
- WIDTH =
#
WIDTH
#
1200
- HEIGHT =
#
HEIGHT
#
480
- TITLE =
#
TITLE
#
'GOSU Prototype'
Instance Method Summary collapse
-
#button_down(id) ⇒ Object
# === button_down ========================================================================= #.
-
#initialize(run_already = true) ⇒ Foobar
constructor
# === initialize ========================================================================= #.
-
#reset ⇒ Object
# === reset (reset tag) ========================================================================= #.
-
#run ⇒ Object
# === run ========================================================================= #.
Methods inherited from Gosu::Window
#gosu_button_down?, #image, #image10?, #image1?, #image2?, #image3?, #image4?, #image5?, #image6?, #image7?, #image8?, #image9?, #on_left_arrow_pressed?, #on_right_arrow_pressed?, #q_means_quit, #set_font, #set_title, #sqrt, #tab_key?, #write_this_text
Constructor Details
Instance Method Details
#button_down(id) ⇒ Object
#
button_down
#
65 66 67 68 69 70 71 |
# File 'lib/games_paradise/prototypes/gosu_prototype.rb', line 65 def (id) case id when Gosu::KbEscape, Gosu::KbQ close end end |
#reset ⇒ Object
#
reset (reset tag)
#
50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/games_paradise/prototypes/gosu_prototype.rb', line 50 def reset # ======================================================================= # # === @song # ======================================================================= # @song = Gosu::Song.new('alert2.mp3') @song.play # ======================================================================= # # === @font # ======================================================================= # @font = set_font(:hack_30) end |
#run ⇒ Object
#
run
#
76 77 78 |
# File 'lib/games_paradise/prototypes/gosu_prototype.rb', line 76 def run exit_on_q end |