Class: LunarLander::Game
- Inherits:
-
Chingu::Window
- Object
- Chingu::Window
- LunarLander::Game
- Defined in:
- lib/lunar_lander/game.rb
Instance Method Summary collapse
-
#initialize ⇒ Game
constructor
A new instance of Game.
Constructor Details
#initialize ⇒ Game
Returns a new instance of Game.
3 4 5 6 7 8 9 10 |
# File 'lib/lunar_lander/game.rb', line 3 def initialize super(800,600) Gosu::Image.autoload_dirs << File.join(File.(File.dirname(__FILE__)), "..", "media") Gosu::Sound.autoload_dirs << File.join(File.(File.dirname(__FILE__)), "..", "media") self.input = { :escape => :exit } push_game_state(LunarLander::Play) end |