Sha256: 0f37fbb00636ba0438bd79f0df1b048e9ad09a114786af9c6e5e600e8aa51e9b

Contents?: true

Size: 402 Bytes

Versions: 8

Compression:

Stored size: 402 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, :config_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

8 entries across 8 versions & 1 rubygems

Version Path
gamebox-0.5.5 lib/gamebox/core/game.rb
gamebox-0.5.4 lib/gamebox/core/game.rb
gamebox-0.5.2 lib/gamebox/core/game.rb
gamebox-0.5.1 lib/gamebox/core/game.rb
gamebox-0.5.0 lib/gamebox/core/game.rb
gamebox-0.4.1 lib/gamebox/core/game.rb
gamebox-0.4.0 lib/gamebox/core/game.rb
gamebox-0.4.0.rc11 lib/gamebox/core/game.rb