Class: Game
- Inherits:
-
Chingu::Window
- Object
- Chingu::Window
- Game
- Defined in:
- lib/prkwars/game.rb
Overview
Game class which is reponsible for the whole game logic - generation of the game space, generation of enemies and checking collisions between them, destroying objects or reducing their HP if necessary.
Instance Attribute Summary collapse
-
#gamespace ⇒ Object
readonly
Returns the value of attribute gamespace.
-
#player ⇒ Object
readonly
Returns the value of attribute player.
Instance Method Summary collapse
-
#initialize ⇒ Game
constructor
A new instance of Game.
Constructor Details
Instance Attribute Details
#gamespace ⇒ Object (readonly)
Returns the value of attribute gamespace.
9 10 11 |
# File 'lib/prkwars/game.rb', line 9 def gamespace @gamespace end |
#player ⇒ Object (readonly)
Returns the value of attribute player.
9 10 11 |
# File 'lib/prkwars/game.rb', line 9 def player @player end |