Method: ObjectPool#initialize

Defined in:
lib/entities/object_pool.rb

#initialize(box) ⇒ ObjectPool

Returns a new instance of ObjectPool.



8
9
10
11
12
# File 'lib/entities/object_pool.rb', line 8

def initialize(box)
  @tree = QuadTree.new(box)
  @powerup_respawn_queue = PowerupRespawnQueue.new
  @objects = []
end