Sha256: b3a6e7f9305fa040642022e5e494d567b3002ec353f95995df50349c5b80e947
Contents?: true
Size: 481 Bytes
Versions: 20
Compression:
Stored size: 481 Bytes
Contents
require 'gosu' require 'singleton' module Gosu class ZenWindow < Window include Singleton def initialize super 800, 600, false end end end def set what, value Gosu::ZenWindow.instance.send "#{what}=", value end def update(&proc) Gosu::ZenWindow.send :define_method, :update, proc end # WIP - needs all other callbacks, even with arguments # WIP - needs to be compatible with gosu/preview.rb later at_exit do Gosu::ZenWindow.instance.show end
Version data entries
20 entries across 20 versions & 1 rubygems