State descriptions: WAITBEGIN "Press FIRE to begin level %d" PLAYING Normal playfield screen, ship under player control ENDLEVEL Bonus countdown into score EXPLOSION Drifting ship pieces after death RESUME "Press FIRE to continue" GAMEOVER "GAME OVER" growing or moving up SCOREWAIT Waiting for score file lock "Score file busy, waiting..." SHOWSCORE "Press HYPERSPACE to start a new game" NEWSCORE Waiting for player to enter initials EXITING Screen drifting and shrinking after ESCAPE HELP Displaying help text State entry via: WAITBEGIN newgame() timeout after bonus countdown, ships left +/- level setup item PLAYING WAITBEGIN timeout, level > 1 RESUME timeout WAITBEGIN, FIRE press RESUME, FIRE press ENDLEVEL level end rock clear, no saucer, not dead, no other shots EXPLOSION timeout, rock clear EXPLOSION explode ship RESUME EXPLOSION timeout, ships left GAMEOVER timeout after bonus countdown, no ships left EXPLOSION timeout, no ships left SCOREWAIT GAMEOVER timeout SHOWSCORE after entering initials WAITBEGIN timeout, level == 1 SCOREWAIT, scoring inhibited SCOREWAIT, new score didn't cut it timeout while entering initials HELP timeout HELP, HYPERSPACE press game initialization NEWSCORE SCOREWAIT, new score made it EXITING ESCAPE press anywhere HELP SHOWSCORE, h press WAITBEGIN, h press Main ship display possibilities: WAITBEGIN recenter animation from-stowage animation center of screen PLAYING current ship location ENDLEVEL recenter animation from-stowage animation center of screen none EXPLOSION drifting pieces RESUME from-stowage animation center of screen GAMEOVER none SCOREWAIT none SHOWSCORE none NEWSCORE none EXITING none HELP none WAITBEGIN PLAYING ENDLEVEL EXPLOSION RESUME GAMEOVER SCOREWAIT SHOWSCORE NEWSCORE EXITING HELP