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

FND_OFF;

                                 GAMEOVER_SIG_OFF;
                                 M_STOP;

                                 lcd_gotoxy(0,0);
                                 lcd_puts("      Welcome       ");

                                 lcd_gotoxy(0,1);
                                 lcd_puts("  give the  money  ");

                                 if(NFC_SIG) game_state=READY;
                                 else  game_state=INIT;

                                 break;
                            }

                            case  READY  :
                            {

                                 FND_OFF;
                                 GAMEOVER_SIG_OFF;

                                 M_STOP;
                                 lcd_gotoxy(0,0);

                                 lcd_puts("      Welcome       ");
                                 lcd_gotoxy(0,1);

                                 lcd_puts("  push start sw    ");
                                 if(START_SW)  game_state  = START;

                                 else  game_state =  READY;
                                 break;

                            }
                            case  START  :

                            {
                                 GAMEOVER_SIG_OFF;

                                 lcd_gotoxy(0,0);
                                 lcd_puts("  Play  the game  ");

                                 lcd_gotoxy(0,1);
                                 lcd_puts("  Using  joystick ");

                                 Motor_control();
                                 if(game_time_count==0)  game_state=CHECK;




                                                         -  169  -
   171   172   173   174   175   176   177   178   179   180   181