aboutsummaryrefslogtreecommitdiffstats
path: root/engine/movie/oak_speech
diff options
context:
space:
mode:
authorNarishma-gb <194818981+Narishma-gb@users.noreply.github.com>2025-11-18 21:17:31 +0100
committerGitHub <noreply@github.com>2025-11-18 15:17:31 -0500
commitf3326786259f4e53c06b7565369add7605bea8ba (patch)
tree1e09025ed19a6403fa74c408aa195662178cc0ca /engine/movie/oak_speech
parentAdd `_vc` patch targets to `.PHONY` (diff)
downloadpokeyellow-f3326786259f4e53c06b7565369add7605bea8ba.tar.gz
pokeyellow-f3326786259f4e53c06b7565369add7605bea8ba.tar.xz
pokeyellow-f3326786259f4e53c06b7565369add7605bea8ba.zip
Use more hardware and graphics constants (#532)
- Use `OBJ_SIZE` and `TILE_SIZE` from hardware.inc. - `SPRITESTATEDATA1_LENGTH`, `NUM_SPRITESTATEDATA_STRUCTS` and `TILE_1BPP_SIZE` are used in some places. - Highlight an oversight in `OakSpeech` where several direct MBC bank switches are requested. - Remove redundant comments in home/overworld.asm. - Add unreferenced `FillBgMap` function to avoid a byte of dead code. - Some constants added in wram.asm. - Correctly separate the commented code in `SaveMainData`.
Diffstat (limited to 'engine/movie/oak_speech')
-rw-r--r--engine/movie/oak_speech/oak_speech.asm11
1 files changed, 10 insertions, 1 deletions
diff --git a/engine/movie/oak_speech/oak_speech.asm b/engine/movie/oak_speech/oak_speech.asm
index 02826b98..a5f13def 100644
--- a/engine/movie/oak_speech/oak_speech.asm
+++ b/engine/movie/oak_speech/oak_speech.asm
@@ -117,6 +117,9 @@ OakSpeech:
ld a, SFX_SHRINK
call PlaySound
pop af
+; bug: switching ROM Bank should not happen outside of Home Bank
+; This code does nothing, as PlaySound does all necessary Bank switch
+; It looks like a leftover from an early development stage
ldh [hLoadedROMBank], a
ld [rROMB], a
ld c, 4
@@ -145,6 +148,7 @@ OakSpeech:
ld [wNewSoundID], a
call PlaySound
pop af
+; bug: switching ROM Bank should not happen outside of Home Bank
ldh [hLoadedROMBank], a
ld [rROMB], a
ld c, 20
@@ -160,21 +164,26 @@ OakSpeech:
call DelayFrames
call GBFadeOutToWhite
jp ClearScreen
+
OakSpeechText1:
text_far _OakSpeechText1
text_end
+
OakSpeechText2:
text_far _OakSpeechText2A
; BUG: The cry played does not match the sprite displayed.
sound_cry_nidorina
text_far _OakSpeechText2B
text_end
+
IntroducePlayerText:
text_far _IntroducePlayerText
text_end
+
IntroduceRivalText:
text_far _IntroduceRivalText
text_end
+
OakSpeechText3:
text_far _OakSpeechText3
text_end
@@ -226,7 +235,7 @@ IntroDisplayPicCenteredOrUpperRight:
call UncompressSpriteFromDE
ld hl, sSpriteBuffer1
ld de, sSpriteBuffer0
- ld bc, $310
+ ld bc, 2 * SPRITEBUFFERSIZE
call CopyData
ld de, vFrontPic
call InterlaceMergeSpriteBuffers