Method: PlayState#initialize

Defined in:
lib/game_states/play_state.rb

#initializePlayState

Returns a new instance of PlayState.



4
5
6
7
8
9
10
11
12
13
# File 'lib/game_states/play_state.rb', line 4

def initialize
  # http://www.paulandstorm.com/wha/clown-names/
  @names = Names.new(
    Utils.media_path('names.txt'))
  @object_pool = ObjectPool.new(Map.bounding_box)
  @map = Map.new(@object_pool)
  @camera = Camera.new
  @object_pool.camera = @camera
  create_tanks(7)
end