void OpenInGameMenu() { currentLoopFunction = InGameMenuLoop; JOY_setEventHandler(joyEventCallback); menuItem = 0; MyVDP_waitVSync(); VDP_setEnable(0); VDP_setReg(0x0b, 0x00); // set scroll mode to plane/plane VDP_resetSprites(); VDP_setVerticalScroll(PLAN_A, 0); VDP_setVerticalScroll(PLAN_B, 0); VDP_setHorizontalScroll(PLAN_A, 0); VDP_setHorizontalScroll(PLAN_B, 0); VDP_updateSprites(); VDP_fillTileMapRect(APLAN, 0, 0, 0, 64, 64); VDP_fillTileMapRect(BPLAN, 0, 0, 0, 64, 64); VDP_setTextPalette(0); DrawText(); VDP_setEnable(1); }
void _show_scr( const Image *img, u32 ms ) { SYS_disableInts(); VDP_setEnable(FALSE); VDP_drawImageEx( BPLAN, img, TILE_ATTR_FULL( PAL0, FALSE, FALSE, FALSE, TILE_USERINDEX ), 0, 0, TRUE, FALSE ); VDP_setEnable(TRUE); SYS_enableInts(); waitMs(ms); }
void CloseInGameMenu() { MyVDP_waitVSync(); VDP_setEnable(0); VDP_resetSprites(); VDP_updateSprites(); currentLoopFunction = GameLoop; LevelManager_SetupBackgroundPlanes(); LevelManager_SetScrollMode(); LevelManager_DrawTilePlanes(); LevelManager_UpdateTilePlanes(); VDP_setEnable(1); }