lib/Gosuplus/window.rb in Gosuplus-1.0.17 vs lib/Gosuplus/window.rb in Gosuplus-1.0.18
- old
+ new
@@ -1,11 +1,10 @@
module Gosuplus
class Window < Gosu::Window
- def initialize
- super 640, 480, false
- self.caption = "GosuPlus"
+ def initialize(caption, width, height, fullscreen = false)
+ super width, height, fullscreen
+ self.caption = caption
@state_manager = StateManager.new(self)
- @state_manager.add(ExampleState.new(self, ResourceManager.new(self), StateInputHandler.new))
end
def update
@state_manager.update
end