here is the code that have error.
Code:
// Display the intro screen
int introScreen(),STARTGAME;
{
DXUPlaySFX(RAVE);
while(DXUProcessMessages()) // Process system Messages
{ // read key board
DXUReadKeyboard();
// if escape is pressed then game over
if (dxuKeyState[DIK_Q])
DXUDestroyWindow() ;
// if space is pressed return start game
if (dxuKeyState[DIK_0])
return STARTGAME;
// Other wise draw the background
DXURenderPrepare();
DXUDrawSpriteFast(&sprIntro);
strcpy(str,"");
DXUDrawText(&impactFont,str);
DXURenderFinish();
}
return GAMEOVER;
}
void Introduction();
int INTRODUCTION;
{
while (DXUPrecessMessages())
{
DXUReadKeyboard();
if(dxuKeyState[DIK_Q])
DXUDestroyWindow();
if (dxuKeyState[DIK_1])
return INTRODUCTION;
DXURenderPrepare();
DXUDrawSpriteFast(&sprIntro);
strcpy(str,"");
DXUDrawText(&impactFont,str);
DXURenderFinish();
}
return GAMEOVER;
}
// Display the intro screen and the last score
int interLevelScreen(int level);
int strcpy;
{
while (DXUProcessMessages()) // Process system Messages
{ // read key board
DXURenderPrepare();
DXUDrawSpriteFast(&sprLevel);
strcpy(str,"");
rcImpact.top=220;
DXUSetFontAttributes(&impactFont,&rcImpact,DT_LEFT|DT_WORDBREAK,DXURGB(0,0,255));
wsprintf(str,"LEVEL %-4d Enemies:%-3d\n",level,currentTotalEnemies);
DXUDrawText(&impactFont,str);
DXURenderFinish();
Sleep(1000);
return 0;
}
return GAMEOVER;
}