Class: Graphics::GameOver::Title
- Inherits:
-
Sprite
- Object
- Sprite
- Graphics::GameOver::Title
- Defined in:
- lib/games_paradise/flappy_bird/ruby2d/graphics/game_over/title.rb
Instance Method Summary collapse
-
#hide! ⇒ Object
# === hide! ========================================================================= #.
-
#initialize ⇒ Title
constructor
# === initialize ========================================================================= #.
-
#show! ⇒ Object
# === show! ========================================================================= #.
Constructor Details
#initialize ⇒ Title
#
initialize
#
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/games_paradise/flappy_bird/ruby2d/graphics/game_over/title.rb', line 18 def initialize super( GamesParadise::FlappyBird::FILE_IMAGE_GAME_SPRITE, width: 202, height: 52, y: 111, x: 48, z: -9999, clip_width: 202, clip_height: 52, clip_x: 786, clip_y: 118 ) end |
Instance Method Details
#hide! ⇒ Object
#
hide!
#
36 37 38 |
# File 'lib/games_paradise/flappy_bird/ruby2d/graphics/game_over/title.rb', line 36 def hide! self.z = -9999 end |
#show! ⇒ Object
#
show!
#
43 44 45 |
# File 'lib/games_paradise/flappy_bird/ruby2d/graphics/game_over/title.rb', line 43 def show! self.z = 3 end |