diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-09-26 21:52:39 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-09-26 21:52:39 +0200 |
| commit | f6f5a1ab111254522efcec0bb6e485d4f76429d7 (patch) | |
| tree | fb61b2c2cb1be5a2d90cebd3a42d9d6aae50904d /Source/Menu.c | |
| parent | e6d41c59ffa15dee7f8bc9d7ea0e12ac682da595 (diff) | |
| download | airport-f6f5a1ab111254522efcec0bb6e485d4f76429d7.tar.gz | |
* Removed now unneeded dprintf calls on Game.c.
* Imported MenuStar sprite into Menu.c.
* Minor changes on Makefile (clean_music target removed).
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; |
