Method: Game#initialize

Defined in:
lib/fantasy/loop.rb

#initialize(screen_width, screen_height) ⇒ Game

Returns a new instance of Game.



4
5
6
7
8
9
10
11
# File 'lib/fantasy/loop.rb', line 4

def initialize(screen_width, screen_height)
  Camera.initialize
  Global.initialize(screen_width, screen_height)

  super(Global.screen_width, Global.screen_height)

  Global.presentation_proc.call
end