FreakSoftware
2002.08.06, 03:40 PM
I'm writing a game engine that takes over the whole screen so no standard UI elements are seen. As in any game, I want to show some company logo movies, a game intro movie, and then the main menu for the game. The question is, when do you call RunApplicationEventLoop? Or should I not in a game?
I was thinking that in a setup routine you'd load up the first movie, set a callback for when the movie is done and the call RunAppEventLoop. When the callback is fired you call the next movie with another callback etc... until you're done with the movies. When the last movie's 'finished' callbac is done, you load the main menu with custom controls (which I need to ask about) and install event handlers to handle the interactions.
Is this an okay way to do it?
I was thinking that in a setup routine you'd load up the first movie, set a callback for when the movie is done and the call RunAppEventLoop. When the callback is fired you call the next movie with another callback etc... until you're done with the movies. When the last movie's 'finished' callbac is done, you load the main menu with custom controls (which I need to ask about) and install event handlers to handle the interactions.
Is this an okay way to do it?