Class: MySplashScreen
- Inherits:
-
GGLib::SplashScreen
- Object
- Gosu::Window
- GGLib::SplashScreen
- MySplashScreen
- Defined in:
- lib/examples/SplashScreen.rb
Instance Method Summary collapse
- #createWindow ⇒ Object
-
#initialize ⇒ MySplashScreen
constructor
A new instance of MySplashScreen.
- #load ⇒ Object
Methods inherited from GGLib::SplashScreen
Constructor Details
#initialize ⇒ MySplashScreen
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
#createWindow ⇒ Object
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 |
#load ⇒ Object
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 |