Class: Game

Inherits:
Chingu::Window
  • Object
show all
Defined in:
lib/prkwars/game.rb

Overview

Game class is simply an encapsulation of the chingu window - essentially, the entry point of the game.

Instance Method Summary collapse

Constructor Details

#initializeGame

Initialization of Game only creates a window of a specified size and pushes the beginning game state - Splash, into the game state stack.



13
14
15
16
# File 'lib/prkwars/game.rb', line 13

def initialize
  super(1280, 720)
  push_game_state(Splash)
end