Sha256: be8ab980c9ee6a5a44378346d31d5d2adcf67c3f67224364ade9bb39449efc96
Contents?: true
Size: 754 Bytes
Versions: 1
Compression:
Stored size: 754 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gglib-1.1.0 | lib/examples/SplashScreen.rb |