Method: GameWindow#initialize

Defined in:
lib/empi.rb

#initialize(width = (MAPX + 1) * TILESIZE, height = (MAPY + 2) * TILESIZE, fullscreen = false) ⇒ GameWindow

Returns a new instance of GameWindow.



18
19
20
21
22
23
24
25
26
27
# File 'lib/empi.rb', line 18

def initialize(width = (MAPX + 1) * TILESIZE, \
               height = (MAPY + 2) * TILESIZE, \
               fullscreen = false)
  super
  self.caption = 'Empi: Ruby Edition 0.22 dev'

  # Activate first state
  $window = self
  GameState.switch!(PlayState.instance)
end