Class: MySplashScreen

Inherits:
GGLib::SplashScreen show all
Defined in:
lib/examples/SplashScreen.rb

Instance Method Summary collapse

Methods inherited from GGLib::SplashScreen

#draw, #update

Constructor Details

#initializeMySplashScreen

Returns a new instance of MySplashScreen.



13
14
15
# File 'lib/examples/SplashScreen.rb', line 13

def initialize
  super(640, 480, "img/splash.png")
end

Instance Method Details

#createWindowObject



22
23
24
25
26
27
# File 'lib/examples/SplashScreen.rb', line 22

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

#loadObject



16
17
18
19
20
21
# File 'lib/examples/SplashScreen.rb', line 16

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