DEAD_PAUSE,
GAME_OVER,
HIGH_SCORE_ENTRY,
- HIGH_SCORE_DISPLAY,
- DEMO
+ HIGH_SCORE_DISPLAY
};
enum states state = TITLE_PAGE;
float state_timeout = 600.0;
// Don't create fresh engine dots when
// the game is not being played and a demo is not beng shown
- if(state != GAMEPLAY && state != DEMO) return;
+ if(state != GAMEPLAY) return;
for(i = 0; i<newdots; i++) {
if(dotptr->active == 0) {
drawdots(surf_screen);
// Draw ship
- if(!gameover && (state == GAMEPLAY || state == DEMO) ) {
+ if(!gameover && state == GAMEPLAY ) {
src.w = surf_ship->w;
src.h = surf_ship->h;
dest.w = src.w;
case HIGH_SCORE_DISPLAY:
// Display de list o high scores mon.
display_scores(surf_screen, 150,50);
-
+ case GAMEPLAY:
+ case DEAD_PAUSE:
+ ; // no action necessary
}
if(!gameover && state == GAMEPLAY) {
case TITLE_PAGE:
state = HIGH_SCORE_DISPLAY;
state_timeout = 200.0;
- break;
+ break;
+ case GAMEPLAY:
+ ; // no action necessary
}
} else {
if(state == DEAD_PAUSE) {
return 0;
}
- if(keystate[SDLK_SPACE] && (state == HIGH_SCORE_DISPLAY || state == TITLE_PAGE || state == DEMO)) {
+ if(keystate[SDLK_SPACE] && (state == HIGH_SCORE_DISPLAY || state == TITLE_PAGE)) {
for(i = 0; i<MAXROCKS; i++ ) {
rock[i].active = 0;