class AppDelegate def applicationDidFinishLaunching(notification) buildMenu buildWindow end def buildWindow @director = Joybox::Configuration.setup do director display_stats: true debug repl:true, physics: [:shapes, :aabb, :center_of_mass] end @main_window = NSWindow.alloc.initWithContentRect([[240, 180], [480, 320]], styleMask: NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask, backing: NSBackingStoreBuffered, defer: false) @main_window.title = NSBundle.mainBundle.infoDictionary['CFBundleName'] @main_window.contentView.addSubview(@director.view) @main_window.orderFrontRegardless @director.run_with_scene(GameLayer.scene) end end