/////////////////////////////////////////////////////////////// // Draw Level /////////////////////////////////////////////////////////////// void DrawDemoLevel(void) { DrawCurrentLevel(); DrawConv(); DrawKeys(); DrawSwitches(); DrawExit(); DrawTPlate(); DrawAirBG(); DoHRobo(); DoVRobo(); DoSpecialRobo(); DrawExit(); DrawAir(); FontPrint(0,18," "); FontPrint(0,19," "); FontPrint(0,20," "); FontPrint(0,21," "); FontPrint(0,22," "); FontPrint(0,23," "); PrintScore(); PrintHighScore(); DrawLives(); }
/////////////////////////////////////////////////////////////// // Do Demo /////////////////////////////////////////////////////////////// void RunDemo(void) { int speed,i; cWILLYx=0; cWILLYy=128; SwapPage2(); NEXTBIT=FrCt+SPEED; RemoveSPG(); RemoveSky(); RemoveKong(); RemoveVRobo(); RemoveHRobo(); RemoveEugene(); DrawKeys(); DrawConv(); DrawSwitches(); DoHRobo(); DoVRobo(); DoSpecialRobo(); DrawExit(); DrawAir(); DrawLives(); DEMOp++; if(DEMOp>60) { DEMOm=2; LevelDoneExtra(); SwapPage(); LevelDoneExtra(); for(i=0;i<8;i++) { PaletteSet(PALwhite); WaitVR(); PaletteSet(PALmain); WaitVR(); } } if(AnyKeyx()==1) { MODE=0; TITLEm=0; MIDASstopModule(modon); modon=0; } }
//================================================ //メインループ //================================================ void Luna::Main(long ArgNum, char *pArgStr[]) { //---------------------------------------- //全システムの開始 //---------------------------------------- if(Luna::Start() ) { //-------------------------------- //初期化処理 //-------------------------------- InitProcess(); //LunaInput::GetMouseData(&camera.Mouse); //LunaInput::GetMouseData(&camera.MouseOld); //-------------------------------- //ゲーム用ループ //-------------------------------- while(Luna::WaitForMsgLoop() ) { /*画面クリア*/ Luna3D::Clear(D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, COLOR_BLACK, 1.0f); //Luna3D::Clear(D3DCLEAR_TARGET, COLOR_WHITE); /*デバッグ画面クリア*/ // LunaDebug::Clear(); switch(g_GameMode) { case SCENE_INITIALIZE: { Initialize(); break; } case SCENE_LOGO: { //DrawLogo(); break; } case SCENE_TITLE: { DrawTitle(); break; } case SCENE_CHARSEL: { DrawCharaSelect(); break; } case SCENE_MAIN: { DrawMain(); break; } case SCENE_OPTION: { DrawOption(); break; } case SCENE_TUTOLIAL: { DrawTutorial(); break; } case SCENE_PAUSE: { DrawPause(); break; } case SCENE_PAUSEEXIT: { DrawPauseExit(); break; } case SCENE_ERROR: { DrawError(); break; } case SCENE_EXIT: { DrawExit(); break; } case SCENE_FADEIN: { Fadein(); break; } case SCENE_FADEOUT: { Fadeout(); break; } case SCENE_CONV: { Conversation(); break; } case SCENE_GAMECLEAR: { DrawGameClear(); break; } case SCENE_GAMEOVER: { DrawGameOver(); break; } case SCENE_CONTINUE: { DrawContinue(); break; } case SCENE_FINALIZE: { Finalize(); break; } } /*画面更新*/ Luna3D::Refresh(); /*デバッグ処理*/ // Debug(); } /*終了処理*/ Finalize(); } }