Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Gluszak
- require 'gosu'
- include Gosu
- class Window < Gosu::Window
- def initialize(width=640, height=480, fullscreen=false, update_interval = 16.666666)
- super(width, height, fullscreen, update_interval)
- $window = self
- end
- end
- class Image < Gosu::Image
- def initialize(filename_or_rmagick_image, tileable=false, *args)
- super($window, filename_or_rmagick_image, tileable, *args)
- end
- def self.from_text(text, font_name, font_height, *args)
- super($window, text, font_name, font_height, *args)
- end
- def self.load_tiles(filename_or_rmagick_image, tile_width=-1, tile_height=-1, tileable=false)
- super($window, filename_or_rmagick_image, tile_width, tile_height, tileable)
- end
- end
- class Sample < Gosu::Sample
- def initialize(name)
- super($window, name)
- end
- end
- class Song < Gosu::Song
- def initialize(name)
- super($window, name)
- end
- end
- class Font < Gosu::Font
- def initialize(name="Arial", size=12)
- super($window, name, size)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment