Page 177 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 177

else

                                 {
                                       PORTF  =  ((game_time_count-1)/10)<<4|(game_time_count-1)%10;

                                       game_state=START;
                                 }

                                 break;
                            }

                            case  CHECK  :
                            {

                                 GAMEOVER_SIG_OFF;
                                 FND_OFF;

                                 if(check_count==CHECK_TIME) game_state=FINISH;
                                 else  if(IR1)  game_state=WAIT;

                                 else  game_state=CHECK;
                                 break;

                            }
                            case  WAIT  :

                            {
                                 lcd_gotoxy(0,0);

                                 lcd_puts("  Congratulation!  ");
                                 lcd_gotoxy(0,1);

                                 lcd_puts("  Bring  the  Gift   ");
                                 GAMEOVER_SIG_OFF;

                                 if(wait_count==WAIT_TIME||!IR1)  game_state=FINISH;
                                 else  game_state=WAIT;

                                 break;
                            }

                            case  FINISH  :
                            {

                                 while(1)
                                 {

                                       if(LEFT_LIMIT) break;
                                       else M_LEFT;




                                                         -  170  -
   172   173   174   175   176   177   178   179   180   181   182