summaryrefslogtreecommitdiff
path: root/engine/menus/debug.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-03-01 17:00:57 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-03-01 17:00:57 -0500
commitf09b68d9450e0770115b764a49342bc9767d75f4 (patch)
tree007c6b3969626c375f743ca46ef0d8046ae984e4 /engine/menus/debug.asm
parent9bec0e0f7846bffb3e5d625b35cfb55db078d334 (diff)
Change how some PNG graphics are formatted
Diffstat (limited to 'engine/menus/debug.asm')
-rw-r--r--engine/menus/debug.asm69
1 files changed, 36 insertions, 33 deletions
diff --git a/engine/menus/debug.asm b/engine/menus/debug.asm
index 484556b28..d49902254 100644
--- a/engine/menus/debug.asm
+++ b/engine/menus/debug.asm
@@ -1,26 +1,26 @@
const_def $6a
- const DEBUGTEST_UP_ARROW ; $6a
- const DEBUGTEST_TICKS ; $6b
- const DEBUGTEST_WHITE ; $6c
- const DEBUGTEST_LIGHT ; $6d
- const DEBUGTEST_DARK ; $6e
- const DEBUGTEST_BLACK ; $6f
- const DEBUGTEST_0 ; $70
- const DEBUGTEST_1 ; $71
- const DEBUGTEST_2 ; $72
- const DEBUGTEST_3 ; $73
- const DEBUGTEST_4 ; $74
- const DEBUGTEST_5 ; $75
- const DEBUGTEST_6 ; $76
- const DEBUGTEST_7 ; $77
- const DEBUGTEST_8 ; $78
- const DEBUGTEST_9 ; $79
- const DEBUGTEST_A ; $7a
- const DEBUGTEST_B ; $7b
- const DEBUGTEST_C ; $7c
- const DEBUGTEST_D ; $7d
- const DEBUGTEST_E ; $7e
- const DEBUGTEST_F ; $7f
+ const DEBUGTEST_TICKS_1 ; $6a
+ const DEBUGTEST_TICKS_2 ; $6b
+ const DEBUGTEST_WHITE ; $6c
+ const DEBUGTEST_LIGHT ; $6d
+ const DEBUGTEST_DARK ; $6e
+ const DEBUGTEST_BLACK ; $6f
+ const DEBUGTEST_0 ; $70
+ const DEBUGTEST_1 ; $71
+ const DEBUGTEST_2 ; $72
+ const DEBUGTEST_3 ; $73
+ const DEBUGTEST_4 ; $74
+ const DEBUGTEST_5 ; $75
+ const DEBUGTEST_6 ; $76
+ const DEBUGTEST_7 ; $77
+ const DEBUGTEST_8 ; $78
+ const DEBUGTEST_9 ; $79
+ const DEBUGTEST_A ; $7a
+ const DEBUGTEST_B ; $7b
+ const DEBUGTEST_C ; $7c
+ const DEBUGTEST_D ; $7d
+ const DEBUGTEST_E ; $7e
+ const DEBUGTEST_F ; $7f
ColorTest:
; A debug menu to test monster and trainer palettes at runtime.
@@ -147,11 +147,11 @@ Function81948:
ret
Function8197c:
- ld hl, DebugColorTestGFX + 1 tiles
- ld de, vTiles2 tile DEBUGTEST_UP_ARROW
+ ld hl, DebugColorTestGFX
+ ld de, vTiles2 tile DEBUGTEST_TICKS_1
ld bc, 22 tiles
call CopyBytes
- ld hl, DebugColorTestGFX
+ ld hl, DebugUpArrowGFX
ld de, vTiles0
ld bc, 1 tiles
call CopyBytes
@@ -392,10 +392,10 @@ Function81bc0:
Function81bde:
push af
- ld a, DEBUGTEST_UP_ARROW
+ ld a, DEBUGTEST_TICKS_1
ld [hli], a
ld bc, $f
- ld a, DEBUGTEST_TICKS
+ ld a, DEBUGTEST_TICKS_2
call ByteFill
ld l, e
ld h, d
@@ -1031,6 +1031,9 @@ String_81fcd:
next "いいえ<DOT><DOT>", DEBUGTEST_B ; NO..(B)
db "@"
+DebugUpArrowGFX:
+INCBIN "gfx/debug/up_arrow.2bpp"
+
DebugColorTestGFX:
INCBIN "gfx/debug/color_test.2bpp"
@@ -1047,13 +1050,13 @@ TilesetColorTest:
call WaitBGMap2
xor a
ldh [hBGMapMode], a
- ld de, DebugColorTestGFX + 1 tiles
- ld hl, vTiles2 tile DEBUGTEST_UP_ARROW
+ ld de, DebugColorTestGFX
+ ld hl, vTiles2 tile DEBUGTEST_TICKS_1
lb bc, BANK(DebugColorTestGFX), 22
call Request2bpp
- ld de, DebugColorTestGFX
+ ld de, DebugUpArrowGFX
ld hl, vTiles1
- lb bc, BANK(DebugColorTestGFX), 1
+ lb bc, BANK(DebugUpArrowGFX), 1
call Request2bpp
ld a, HIGH(vBGMap1)
ldh [hBGMapAddress + 1], a
@@ -1118,10 +1121,10 @@ Function821f4:
hlcoord 2, 8
Function82203:
- ld a, DEBUGTEST_UP_ARROW
+ ld a, DEBUGTEST_TICKS_1
ld [hli], a
ld bc, $10 - 1
- ld a, DEBUGTEST_TICKS
+ ld a, DEBUGTEST_TICKS_2
call ByteFill
ret