void moveTitleMenu() { int pad = getPadState(); int btn = getButtonState(); int p = -1; int sm; if ( pad & PAD_DOWN ) { p = 2; } else if ( pad & PAD_UP ) { p = 0; } else if ( pad & PAD_RIGHT ) { p = 1; } else if ( pad & PAD_LEFT ) { p = 3; } else if ( btn == 0 ) { mnp = 1; } if ( mnp && p >= 0 ) { mnp = 0; sm = stgMv[slcStg][p]; slcStg += sm; if ( sm != 0 ) { initTitleStage(slcStg); } titleCnt = 16; } if ( mnp && (btn & PAD_BUTTON1) ) { if ( slcStg == STAGE_NUM+ENDLESS_STAGE_NUM ) { quitLast(); return; } hiScore.stage = slcStg; initGame(slcStg); } titleCnt++; }
void moveTitleMenu() { int pad = getPadState(); int btn = getButtonState(); int bs = slcStg; if ( pad & PAD_DOWN ) { if ( mnp ) { if ( slcStg < STAGE_NUM-SAME_RANK_STAGE_NUM ) slcStg += SAME_RANK_STAGE_NUM; else if ( slcStg == QUIT_STAGE_NUM ) slcStg = -MODE_NUM; else slcStg = QUIT_STAGE_NUM; } } else if ( pad & PAD_UP ) { if ( mnp ) { if ( slcStg >= 0 ) slcStg -= SAME_RANK_STAGE_NUM; else slcStg = QUIT_STAGE_NUM ; } } else if ( pad & PAD_RIGHT ) { if ( mnp ) { if ( slcStg >= 0 ) { if ( (slcStg%SAME_RANK_STAGE_NUM) < SAME_RANK_STAGE_NUM-1 && slcStg != QUIT_STAGE_NUM ) { slcStg++; } } else if ( slcStg < -1 ) { slcStg++; } } } else if ( pad & PAD_LEFT ) { if ( mnp ) { if ( slcStg >= 0 ) { if ( (slcStg%SAME_RANK_STAGE_NUM) > 0 && slcStg != QUIT_STAGE_NUM ) { slcStg--; } } else if ( slcStg > -4 ) { slcStg--; } } } else if ( btn == 0 ) { mnp = 1; } if ( slcStg != bs ) { mnp = 0; initTitleStage(slcStg); titleCnt = 0; } if ( mnp && (btn & PAD_BUTTON1) ) { if ( slcStg == QUIT_STAGE_NUM ) { quitLast(); } else if ( slcStg < 0 ) { mnp = 0; setMode(MODE_NUM+slcStg); } else { hiScore.stage = slcStg; initGame(slcStg); } } if ( mnp && (btn & PAD_BUTTON2) ) { mnp = 0; setMode((mode+1)%MODE_NUM); initTitleStage(slcStg); titleCnt = 0; } titleCnt++; }