Sha256: 0d72abf669266d9a0dfbab1f2549cae82027c469d358ff815ae170712c116391

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 Bytes

Contents

class Game

  # BTW: we have extra deps to make sure they are all built at game construction time
  construct_with :wrapped_screen, :input_manager, :sound_manager,
    :stage_manager

  def configure
    stage_manager.change_stage_to stage_manager.default_stage
  end

  def update(time)
    stage_manager.update time
  end

  def draw
    stage_manager.draw wrapped_screen
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gamebox-0.4.0.rc5 lib/gamebox/core/game.rb
gamebox-0.4.0.rc4 lib/gamebox/core/game.rb
gamebox-0.4.0.rc3 lib/gamebox/core/game.rb
gamebox-0.4.0.rc2 lib/gamebox/core/game.rb
gamebox-0.4.0.rc1 lib/gamebox/core/game.rb