summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Byers <b11484@gmail.com>2019-11-18 16:32:28 -0800
committerBrendan Byers <b11484@gmail.com>2019-11-18 16:32:28 -0800
commit9b80d483f365f6fe48e61be085eb0ac7eb45ce3b (patch)
treea39e4b4879c9f7ff9395b722ee7490bbc180c581
parent90ce725639dfabff89ef94153a426909bf457ba2 (diff)
Added more surrounding asm
-rw-r--r--Colored-trainer-card-badges.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/Colored-trainer-card-badges.md b/Colored-trainer-card-badges.md
index 496c7f9..2e37758 100644
--- a/Colored-trainer-card-badges.md
+++ b/Colored-trainer-card-badges.md
@@ -32,6 +32,9 @@ Edit [engine/gfx/cgb_layouts.asm](../blob/master/engine/gfx/cgb_layouts.asm):
```diff
_CGB_TrainerCard:
...
+ ld a, PRYCE
+ call GetTrainerPalettePointer
+ call LoadPalette_White_Col1_Col2_Black
- ld a, PREDEFPAL_CGB_BADGE
- call GetPredefPal
- call LoadHLPaletteIntoDE
@@ -40,6 +43,9 @@ Edit [engine/gfx/cgb_layouts.asm](../blob/master/engine/gfx/cgb_layouts.asm):
+ ld a, BANK(wOBPals1)
+ call FarCopyWRAM
+ ; fill screen with opposite-gender palette for the card border
+ hlcoord 0, 0, wAttrMap
+ ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
...
ret
+