lib/cyberarm_engine/engine.rb in cyberarm_engine-0.2.0 vs lib/cyberarm_engine/engine.rb in cyberarm_engine-0.3.0
- old
+ new
@@ -13,13 +13,13 @@
def self.dt
$window.last_frame_time/1000.0
end
- def initialize(width = 800, height = 600, fullscreen = false, update_interval = 1000.0/60)
+ def initialize(width: 800, height: 600, fullscreen: false, update_interval: 1000.0/60, resizable: false)
@show_cursor = false
- super(width, height, fullscreen, update_interval)
+ super(width, height, fullscreen: fullscreen, update_interval: update_interval, resizable: resizable)
$window = self
@last_frame_time = Gosu.milliseconds-1
@current_frame_time = Gosu.milliseconds
self.caption = "CyberarmEngine #{CyberarmEngine::VERSION} #{Gosu.language}"
\ No newline at end of file