inline void init() { intro.load(); start.load(); game.load(); over.load(); launch.load(); mxhwnd.HideCursor(); #ifndef WIN2K mxhwnd.InitTimer(1,1); #else mxhwnd.InitTimer(1,50); #endif mxhwnd.SetScreen(ID_INTRO); mxhwnd.media.openmp3("theme.mp3"); mxhwnd.media.play(); // 303439 }
// on load, initilization function void onload() { // load up the font table mfonts[0] = MakeFont("Verdana",14); mfonts[1] = MakeFont("Verdana",20); //mxhwnd.HideCursor(); intro.load(); start.load(); game.load(); shandle.load(); // possibly read in timer speed, to set the timer on #ifndef WIN2K mxhwnd.InitTimer(1,2); #else mxhwnd.InitTimer(1,50); #endif mxhwnd.SetScreen(ID_INTRO); }