Class: Graphics::GameOver
- Inherits:
-
Object
- Object
- Graphics::GameOver
- Defined in:
- lib/games_paradise/flappy_bird/ruby2d/graphics/game_over.rb,
lib/games_paradise/flappy_bird/ruby2d/graphics/game_over/title.rb
Defined Under Namespace
Classes: Title
Instance Method Summary collapse
-
#initialize ⇒ GameOver
constructor
# === initialize ========================================================================= #.
-
#update!(game) ⇒ Object
# === update! ========================================================================= #.
Constructor Details
Instance Method Details
#update!(game) ⇒ Object
#
update!
#
23 24 25 26 27 28 29 |
# File 'lib/games_paradise/flappy_bird/ruby2d/graphics/game_over.rb', line 23 def update!(game) if game.over? @title.show! else @title.hide! end end |