Add CRY_AT_START so Rayquaza's voice plays when the player gets past the title screen

From Platinum onwards (until the Switch era), pressing start would play the legendary cry. This adds that basically.
This commit is contained in:
Rose 2024-10-12 00:41:14 -04:00
parent eedeaf1ead
commit 19a6562ab7
2 changed files with 3 additions and 0 deletions

View file

@ -73,6 +73,7 @@
#define HQ_RANDOM TRUE // If TRUE, replaces the default RNG with an implementation of SFC32 RNG. May break code that relies on RNG.
#define COMPETITIVE_PARTY_SYNTAX TRUE // If TRUE, parties are defined in "competitive syntax".
#define AUTO_SCROLL_TEXT FALSE // If TRUE, text will automatically scroll to the next line after NUM_FRAMES_AUTO_SCROLL_DELAY. Players can still press A_BUTTON or B_BUTTON to scroll on their own.
#define CRY_AT_START TRUE // If TRUE, Rayquaza's cry plays when A or Start is pressed at the title screen.
#define NUM_FRAMES_AUTO_SCROLL_DELAY 49

View file

@ -782,6 +782,8 @@ static void Task_TitleScreenPhase3(u8 taskId)
if (JOY_NEW(A_BUTTON) || JOY_NEW(START_BUTTON))
{
FadeOutBGM(4);
if (CRY_AT_START)
PlayCry_Normal(SPECIES_RAYQUAZA, 0);
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_WHITEALPHA);
SetMainCallback2(CB2_GoToMainMenu);
}