-
Notifications
You must be signed in to change notification settings - Fork 801
Show the tops of leaders heads on the trainer card
i-am-the-pokeman edited this page Mar 1, 2020
·
6 revisions
All the Gym Leaders' names in Japanese were short enough to appear above their heads on the trainer card:
That wouldn't work in English, so the names were erased from the trainer card graphics, but the Gym Leaders' heads were left with their tops missing. Fortunately, this is easy to fix.
Edit gfx/trainer_card/leaders.png:
This just copies the tops of all the Gym Leaders' heads from their complete sprites in gfx/trainers/.
Edit engine/gfx/cgb_layouts.asm:
_CGB_TrainerCard:
...
.got_gender2
call FillBoxCGB
; top-right corner still uses the border's palette
hlcoord 18, 1, wAttrmap
ld [hl], $1
- hlcoord 2, 11, wAttrmap
- lb bc, 2, 4
+ hlcoord 3, 10, wAttrmap
+ lb bc, 3, 3
ld a, $1 ; falkner
call FillBoxCGB
- hlcoord 6, 11, wAttrmap
- lb bc, 2, 4
+ hlcoord 7, 10, wAttrmap
+ lb bc, 3, 3
ld a, $2 ; bugsy
call FillBoxCGB
- hlcoord 10, 11, wAttrmap
- lb bc, 2, 4
+ hlcoord 11, 10, wAttrmap
+ lb bc, 3, 3
ld a, $3 ; whitney
call FillBoxCGB
- hlcoord 14, 11, wAttrmap
- lb bc, 2, 4
+ hlcoord 15, 10, wAttrmap
+ lb bc, 3, 3
ld a, $4 ; morty
call FillBoxCGB
- hlcoord 2, 14, wAttrmap
- lb bc, 2, 4
+ hlcoord 3, 13, wAttrmap
+ lb bc, 3, 3
ld a, $5 ; chuck
call FillBoxCGB
- hlcoord 6, 14, wAttrmap
- lb bc, 2, 4
+ hlcoord 7, 13, wAttrmap
+ lb bc, 3, 3
ld a, $6 ; jasmine
call FillBoxCGB
- hlcoord 10, 14, wAttrmap
- lb bc, 2, 4
+ hlcoord 11, 13, wAttrmap
+ lb bc, 3, 3
ld a, $7 ; pryce
call FillBoxCGB
; clair uses kris's palette
ld a, [wPlayerGender]
and a
push af
jr z, .got_gender3
- hlcoord 14, 14, wAttrmap
- lb bc, 2, 4
+ hlcoord 15, 13, wAttrmap
+ lb bc, 3, 3
ld a, $1
call FillBoxCGB
.got_gender3
...
That's it!