Skip to content

Show the tops of leaders heads on the trainer card

Rangi edited this page Jul 14, 2018 · 6 revisions

All the Gym Leaders' names in Japanese were short enough to apear above their heads on the trainer card:

Screenshot

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.

Contents

  1. Edit the trainer card graphics
  2. Apply the colors to the entire head

1. Edit the trainer card graphics

Edit gfx/trainer_card/leaders.png:

gfx/trainer_card/leaders.png

This just copies the tops of all the Gym Leaders' heads from their complete sprites in gfx/trainers/.

2. Apply the colors to the entire head

Edit engine/gfx/cgb_layouts.asm:

 _CGB_TrainerCard:
 	...
-	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!

Screenshot

Clone this wiki locally