diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-10-01 04:40:43 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-10-01 04:40:43 +0200 |
| commit | f06d582d63b1f91e48ecb17a11987217144c5c79 (patch) | |
| tree | 4042ecc2f7ba71abcc9852105a58b5fe2bd32a5e /Source/Menu.c | |
| parent | 73bef893dd3b30552ce445ad8439d2f8531d753e (diff) | |
| parent | f6f5a1ab111254522efcec0bb6e485d4f76429d7 (diff) | |
| download | airport-f06d582d63b1f91e48ecb17a11987217144c5c79.tar.gz | |
Merge branch 'master' of https://github.com/XaviDCR92/Airport
Diffstat (limited to 'Source/Menu.c')
| -rw-r--r-- | Source/Menu.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/Menu.c b/Source/Menu.c index 58a6260..bd12ac2 100644 --- a/Source/Menu.c +++ b/Source/Menu.c @@ -207,6 +207,12 @@ void TwoPlayerMenu(void) void MainMenuInit(void) { + enum + { + MENU_STAR_X = 32, + MENU_STAR_Y = Y_SCREEN_RESOLUTION - 32, + }; + LoadMenu( MainMenuFiles, MainMenuDest, sizeof(MainMenuFiles) / sizeof(char*) , @@ -240,6 +246,10 @@ void MainMenuInit(void) MainMenuMinimumBtn = PLAY_BUTTON_INDEX; + MenuStarSpr.x = MENU_STAR_X; + MenuStarSpr.y = MENU_STAR_Y; + MenuStarSpr.rotate = 0; + MenuCheatInit(); LoadMenuEnd(); @@ -324,6 +334,10 @@ void MainMenu(void) GsSortCls(MAIN_MENU_BG_R, MAIN_MENU_BG_G, MAIN_MENU_BG_B); + MenuStarSpr.rotate += ROTATE_ONE; + + GfxSortSprite(&MenuStarSpr); + switch(menuLevel) { case PLAY_OPTIONS_LEVEL: @@ -332,8 +346,6 @@ void MainMenu(void) break; case ONE_TWO_PLAYERS_LEVEL: - - GsSortCls(0,0,40); MainMenuDrawButton(&MainMenuBtn[ONE_PLAYER_BUTTON_INDEX]); MainMenuDrawButton(&MainMenuBtn[TWO_PLAYER_BUTTON_INDEX]); break; |
