Class: LunarLander::Game

Inherits:
Chingu::Window
  • Object
show all
Defined in:
lib/lunar_lander/game.rb

Instance Method Summary collapse

Constructor Details

#initializeGame

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.expand_path(File.dirname(__FILE__)), "..", "media")
  Gosu::Sound.autoload_dirs << File.join(File.expand_path(File.dirname(__FILE__)), "..", "media")
  
  self.input = { :escape => :exit }
  push_game_state(LunarLander::Play)
end