Sha256: 2fd270c8e0c9a60cab38acc28d9ee5f4c1222c241801c295b96302b31503491a

Contents?: true

Size: 373 Bytes

Versions: 6

Compression:

Stored size: 373 Bytes

Contents

class WrappedScreen
  constructor :config_manager
  attr_accessor :screen
  def setup
    w,h = @config_manager[:screen_resolution]
    flags = []
    flags << HWSURFACE
    flags << DOUBLEBUF
    flags << FULLSCREEN if @config_manager[:fullscreen]
    @screen = Screen.set_mode [w,h], 0, flags
  end
  def method_missing(name,*args)
    @screen.send name, *args
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gamebox-0.0.1 lib/gamebox/wrapped_screen.rb
gamebox-0.0.2 lib/gamebox/wrapped_screen.rb
gamebox-0.0.3 lib/gamebox/wrapped_screen.rb
gamebox-0.0.4 lib/gamebox/wrapped_screen.rb
gamebox-0.0.5 lib/gamebox/wrapped_screen.rb
gamebox-0.0.6 lib/gamebox/wrapped_screen.rb