summaryrefslogtreecommitdiff
path: root/src/title_screen.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-03-05 15:13:08 -0500
committerGriffinR <griffin.g.richards@gmail.com>2021-03-28 23:13:56 -0400
commitc86cc8b371efa875446796fb44c7e285c4b26f70 (patch)
tree9d7c880455da92b9d3e6c3e04d87f5e1c6fa36ec /src/title_screen.c
parent94a883d6006aa4dfe3e9a2990949f24c87f038ee (diff)
Document intro, start intro_credits/credits
Diffstat (limited to 'src/title_screen.c')
-rw-r--r--src/title_screen.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/title_screen.c b/src/title_screen.c
index f86a0b0b3..f2c609fec 100644
--- a/src/title_screen.c
+++ b/src/title_screen.c
@@ -64,7 +64,9 @@ static const u32 sTitleScreenCloudsGfx[] = INCBIN_U32("graphics/title_screen/clo
-const u16 gIntroWaterDropAlphaBlend[] =
+// Used to blend "Emerald Version" as it passes over over the Pokémon banner.
+// Also used by the intro to blend the Game Freak name/logo in and out as they appear and disappear
+const u16 gTitleScreenAlphaBlend[64] =
{
BLDALPHA_BLEND(16, 0),
BLDALPHA_BLEND(16, 1),
@@ -364,7 +366,7 @@ static void SpriteCB_VersionBannerLeft(struct Sprite *sprite)
sprite->pos1.y++;
if (sprite->data[0] != 0)
sprite->data[0]--;
- SetGpuReg(REG_OFFSET_BLDALPHA, gIntroWaterDropAlphaBlend[sprite->data[0]]);
+ SetGpuReg(REG_OFFSET_BLDALPHA, gTitleScreenAlphaBlend[sprite->data[0]]);
}
}
@@ -388,7 +390,7 @@ static void SpriteCB_PressStartCopyrightBanner(struct Sprite *sprite)
{
sprite->data[1]++;
// Alternate between hidden and shown every 16th frame
- if (sprite->data[1] & 0x10)
+ if (sprite->data[1] & 16)
sprite->invisible = FALSE;
else
sprite->invisible = TRUE;