Sha256: b54be23a1e1fac1bb5a7881708fc25cdcb710d647439d2862c56444a4db5ee2a

Contents?: true

Size: 725 Bytes

Versions: 2

Compression:

Stored size: 725 Bytes

Contents

begin
  # In case you use Gosu via RubyGems.
  require 'rubygems'
rescue LoadError
  # In case you don't.
end

require "gosu"
require "../gglib"
require "../ext/splash"

class MySplashScreen < GGLib::SplashScreen
  def initialize
    super(640, 480, "img/splash.png")
  end
  def load
    #Put initialization code here.
    #This example doesn't actually have to initialize anything,
    #so we will just use Thread#sleep to kill some time.
    sleep(1) 
  end
  def createWindow
    #Once the load method is finished, create window is called.
    #This is where we should initialize and lauch our window.
    #We'll just resuse the routines from BasicExample.rb.
    require "BasicExample"
  end
end

MySplashScreen.new.show

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gglib-1.2.1 examples/SplashScreen.rb
gglib-1.3.0 examples/SplashScreen.rb