Game Development Community

Game startup

by Vern Jensen · in Torque Game Builder · 04/11/2008 (1:37 pm) · 3 replies

Currently, when my game starts up, the icon in the dock bounces about 5 times before the window appears (I'm on the Mac). I know there must be a way around this, because the Torque game Phantasia puts up a black window covering the screen the instant it starts up, and this is soon filled with a splash screen.

Does this require source modification to the C++ engine? I have the engine, and have already modified it in various ways, so this is not a problem if that is required. But if not, how do I execute commands (like to go fullscreen, or display a splash screen) before Torque tries to load all the ImageMaps, sounds, etc. for the game?

#1
04/13/2008 (10:27 am)
I think what is causing it to lag is all the image datablocks being loaded. You probably don't have that problem if you don't have many datablocks? You just need to wait in executing the datablocks script.

It's the managed.cs if you are using the Level Builder for datablocks.
#2
04/15/2008 (11:30 am)
Ahhh, thanks for the tip Kevin! Thanks to that, I found that in the "common" folder is a main.cs with an onStart() method. If I put code at the very end of that to go fullscreen, this happens right before any image datablocks are loaded from managed.cs. Just what I was looking for!
#3
04/15/2008 (1:21 pm)
Ahmm, well, while my method works, I still get about 2 dock icon bounces before the game goes fullscreen. Playing other Torque games like Phantasia or Once Upon A Time, they go fullscreen *instantly* (although it's plain black for a few seconds, before any kind of a splash screen comes up). I'm guessing they modified the engine to get it to do this.