aboutsummaryrefslogtreecommitdiffstats
path: root/engine/movie
diff options
context:
space:
mode:
authorNarishma-gb <194818981+Narishma-gb@users.noreply.github.com>2025-12-15 21:14:17 +0100
committerGitHub <noreply@github.com>2025-12-15 15:14:17 -0500
commite9d3324bc06faa7de3b7a35d1f9429e610e8a761 (patch)
tree63efb83577bf37c03aea14c8f29ca473676eb0d6 /engine/movie
parentClarify how the order of map constants matters for the Town Map (#553) (diff)
downloadpokeyellow-e9d3324bc06faa7de3b7a35d1f9429e610e8a761.tar.gz
pokeyellow-e9d3324bc06faa7de3b7a35d1f9429e610e8a761.tar.xz
pokeyellow-e9d3324bc06faa7de3b7a35d1f9429e610e8a761.zip
Comment more unreferenced local labels (#550)
Diffstat (limited to 'engine/movie')
-rw-r--r--engine/movie/credits.asm21
1 files changed, 12 insertions, 9 deletions
diff --git a/engine/movie/credits.asm b/engine/movie/credits.asm
index b1ca7c91..77484a80 100644
--- a/engine/movie/credits.asm
+++ b/engine/movie/credits.asm
@@ -6,10 +6,10 @@ HallOfFamePC:
call DisableLCD
ld hl, vFont
ld bc, ($80 tiles) / 2
- call ZeroMemory
+ call ShiftFontColorIndex
ld hl, vChars2 tile $60
ld bc, ($20 tiles) / 2
- call ZeroMemory
+ call ShiftFontColorIndex
ld hl, vChars2 tile $7e
ld bc, TILE_SIZE
ld a, $ff ; solid black
@@ -33,7 +33,7 @@ HallOfFamePC:
ld [wNumCreditsMonsDisplayed], a
jp Credits
-FadeInCreditsText:
+FadeInCredits:
ld hl, HoFGBPalettes
ld b, 4
.loop
@@ -145,15 +145,18 @@ CreditsCopyTileMapToVRAM:
ldh [hAutoBGTransferEnabled], a
jp Delay3
-ZeroMemory:
-; zero bc bytes at hl
+ShiftFontColorIndex:
+; Zero every second byte at hl, writing a total of bc bytes.
+; When used on VRAM font characters that contain only black and white shades,
+; it shifts the color index: black -> light gray, allowing palette-controlled
+; text fade-in during the Credits roll, while the black bars remain solid.
ld [hl], 0
inc hl
inc hl
dec bc
ld a, b
or c
- jr nz, ZeroMemory
+ jr nz, ShiftFontColorIndex
ret
FillFourRowsWithBlack:
@@ -215,7 +218,7 @@ Credits:
pop de
jr .nextCreditsCommand
.fadeInTextAndShowMon
- call FadeInCreditsText
+ call FadeInCredits
ld c, 90
jr .next1
.showTextAndShowMon
@@ -225,7 +228,7 @@ Credits:
call DisplayCreditsMon
jr .nextCreditsScreen
.fadeInText
- call FadeInCreditsText
+ call FadeInCredits
ld c, 120
jr .next2
.showText
@@ -254,7 +257,7 @@ Credits:
hlcoord 4, 9
inc de
call PlaceString
- jp FadeInCreditsText
+ jp FadeInCredits
TheEndTextString:
; "T H E E N D"