Class: Graphics::Landscape

Inherits:
Sprite
  • Object
show all
Defined in:
lib/games_and_rpg_paradise/games/flappy_bird/ruby2d/graphics/landscape.rb

Instance Method Summary collapse

Constructor Details

#initialize(window:) ⇒ Landscape

#

initialize

#


16
17
18
19
20
21
22
23
# File 'lib/games_and_rpg_paradise/games/flappy_bird/ruby2d/graphics/landscape.rb', line 16

def initialize(window:)
  super(
    GamesParadise::FlappyBird::FILE_IMAGE_GAME_SPRITE,
    z: 0,
    clip_width: window.get(:width),
    clip_height: window.get(:height)
  )
end