Method: WrappedScreen#initialize
- Defined in:
- lib/gamebox/core/wrapped_screen.rb
#initialize ⇒ WrappedScreen
Returns a new instance of WrappedScreen.
4 5 6 7 8 9 10 11 12 |
# File 'lib/gamebox/core/wrapped_screen.rb', line 4 def initialize width, height = *config_manager[:screen_resolution] fullscreen = config_manager[:fullscreen] @screen = HookedGosuWindow.new width, height, fullscreen @screen.tap do |screen| screen.caption = Gamebox.configuration.game_name screen.needs_cursor = Gamebox.configuration.needs_cursor? end end |