Sha256: b8d81898e9064a414b9ffdf617a8f4589f7557b1a0f4a11951f1969bd8b55097
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | app/osx/app_delegate.rb |
joybox-1.1.0 | app/osx/app_delegate.rb |