Class: Beginning
- Inherits:
-
Chingu::GameState
- Object
- Chingu::GameState
- Beginning
- Defined in:
- lib/games_and_rpg_paradise/gui/gosu/chinguroids/beginning.rb
Overview
#
BEGINNING GAMESTATE
This gamestate essentially just plays the opening music and pushes the OpeningCredits gamestate.
#
Instance Method Summary collapse
-
#setup ⇒ Object
setup.
Instance Method Details
#setup ⇒ Object
setup
13 14 15 16 17 18 19 20 21 |
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/beginning.rb', line 13 def setup self.input = { esc: :exit } #, [:enter, :return] => OpeningCredits, :p => Pause, :r => lambda{current_game_state.setup} } $music = Song['media/audio/music/intro_song.ogg'] $music.volume = 0.9 $music.play(true) after(5) { push_game_state(Chingu::GameStates::FadeTo.new(OpeningCredits.new, speed: 8)) } end |