Method: GameSpace#initialize
- Defined in:
- lib/prkwars/gamespace.rb
#initialize(options = {}) ⇒ GameSpace
Initialization method sets up the spawn points for enemies and sets up the background image.
21 22 23 24 25 26 |
# File 'lib/prkwars/gamespace.rb', line 21 def initialize( = {}) super() @image = Image['media/background.png'] setup_spawn_points end |