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

Version Path
fidgit-0.2.4 examples/helpers/example_window.rb
fidgit-0.2.3 examples/helpers/example_window.rb
fidgit-0.2.2 examples/helpers/example_window.rb
fidgit-0.2.1 examples/helpers/example_window.rb
fidgit-0.2.0 examples/helpers/example_window.rb
fidgit-0.1.10 examples/helpers/example_window.rb
fidgit-0.1.9 examples/helpers/example_window.rb
fidgit-0.1.8 examples/helpers/example_window.rb
fidgit-0.1.7 examples/helpers/example_window.rb
fidgit-0.1.6 examples/helpers/example_window.rb
fidgit-0.1.5 examples/helpers/example_window.rb
fidgit-0.1.4 examples/helpers/example_window.rb
fidgit-0.1.3 examples/helpers/example_window.rb
fidgit-0.1.2 examples/helpers/example_window.rb
fidgit-0.1.1 examples/helpers/example_window.rb
fidgit-0.1.0 examples/helpers/example_window.rb
fidgit-0.0.6alpha examples/helpers/example_window.rb
fidgit-0.0.5alpha examples/helpers/example_window.rb
fidgit-0.0.4alpha examples/helpers/example_window.rb
fidgit-0.0.3alpha examples/helpers/example_window.rb