Game Development Community

Opening black screen

by Kevin James · in Torque Game Builder · 06/03/2010 (5:56 am) · 0 replies

Is there a way to fill the blackness with something? Some people have complained that they stare at 15 seconds of the blank box before the GG splash screen appears. Ideally the GG splash screen would sit there instead of the existential void. Hopefully I'm doing something wrong:

Main.cs:

function initializeProject()
{
   // Load up the in game gui.
   exec("~/gui/mainScreen.gui");
   exec("~/gui/splashScreen.gui");
 
   // Exec game scripts.
   exec("./gameScripts/game.cs");

   startGame( expandFilename($Game::DefaultScene) );
   loadStartup();
}

splashScreen.gui:
function loadStartup()  
 {
    StartupGui.done = 0;  
    Canvas.setContent(StartupGui);  
    schedule(100, 0, checkStartupGui);  
 }

About the author

Computer security, digital forensics, and platform jumper enthusiast. shells.myw3b.net/~syreal/