Class: Diamante::Game
- Inherits:
-
Object
- Object
- Diamante::Game
- Defined in:
- lib/diamante/game.rb
Instance Method Summary collapse
- #game_loop ⇒ Object
-
#initialize(configfile) ⇒ Game
constructor
A new instance of Game.
Constructor Details
Instance Method Details
#game_loop ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/diamante/game.rb', line 16 def game_loop begin init loop do process render sleep 0.1 end deinit ensure ANSI.set_cooked_mode end end |