This is the function. The variables are delcared in a different header file.
/***************************************************************
*
* Whiplash Game Engine
* (c)2005 Xiemsoft. All Rights Reserved.
* Sections.h
* 8/15/05
*
****************************************************************/
/////////////////////////////////////////////////////////////////
// Loading Screens
///////////////////////
// This function will handle the loading screens for the game.
/////////////////////////////////////////////////////////////////
void LoadingScreens(void){
dbOpenToRead (1,"intro.xmf");
while(dbFileEnd(1) != 1){
strCurrentLine = dbReadString(1);
if(strCurrentLine == "nls"){
strLoadingImageName = dbReadString(1);
strCurrentLine = dbReadString(1);
intLoadingImageNumber = dbVal(strCurrentLine);
strCurrentLine = dbReadString(1);
intLoadingWaitTime = dbVal(strCurrentLine);
dbLoadImage(strLoadingImageName,intLoadingImageNumber,1);
dbSprite(intLoadingImageNumber,0,0,intLoadingImageNumber);
dbWait(intLoadingWaitTime);
dbSync();
dbSync();
}
}
}