Sha256: 301f5404beb55e0e42f9f68f60272fe90403cc2384380d8a1962a0da30707711
Contents?: true
Size: 578 Bytes
Versions: 21
Compression:
Stored size: 578 Bytes
Contents
require_relative '../../lib/fidgit' media_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'media')) Gosu::Image.autoload_dirs << File.join(media_dir, 'images') Gosu::Sample.autoload_dirs << File.join(media_dir, 'samples') Gosu::Font.autoload_dirs << File.join(media_dir, 'fonts') class ExampleWindow < Chingu::Window def initialize(options = {}) super(640, 480, false) on_input(:escape) { close } caption = "#{File.basename($0).chomp(".rb").tr('_', ' ')} #{ENV['FIDGIT_EXAMPLES_TEXT']}" push_game_state ExampleState end end
Version data entries
21 entries across 21 versions & 1 rubygems