Label billboard tile illumination states

This commit is contained in:
Marcus Huderle
2017-07-22 15:39:20 -07:00
parent 91b1835a20
commit 87f5b3d0ac
7 changed files with 19 additions and 10 deletions
+3 -3
View File
@@ -64,7 +64,7 @@ StartCatchEmMode: ; 0x1003f
ld [wd5c2], a
ld a, [hli]
ld [wd5c3], a ;load the 3 bytes into ????
ld hl, wd586
ld hl, wBillboardTilesIlluminationStates
ld a, [wd5b6]
ld c, a
and a
@@ -210,7 +210,7 @@ Func_10184: ; 0x10184
ld a, [hli]
ld [$ff91], a
ld de, wc000
ld hl, wd586
ld hl, wBillboardTilesIlluminationStates
ld c, $0
.asm_101bb
ld a, [hli]
@@ -892,7 +892,7 @@ Func_10648: ; 0x10648
jr nz, .asm_10677
ld a, $14
ld [wd54e], a
ld hl, wd586
ld hl, wBillboardTilesIlluminationStates
ld b, $18
.asm_1065e
ld a, [wd54f]
@@ -237,7 +237,7 @@ Func_204f1: ; 0x204f1
sla a
ld c, a
ld b, $0
ld hl, wd586
ld hl, wBillboardTilesIlluminationStates
add hl, bc
ld d, $4
.asm_20503
@@ -235,7 +235,7 @@ Func_20230: ; 0x20230
sla a
ld c, a
ld b, $0
ld hl, wd586
ld hl, wBillboardTilesIlluminationStates
add hl, bc
ld d, $4
.asm_20242
+1 -1
View File
@@ -377,7 +377,7 @@ SelectPokemonToEvolve: ; 0x10cb7
ret
InitEvolutionModeForMon: ; 0x10d1d
ld hl, wd586
ld hl, wBillboardTilesIlluminationStates
ld b, $18
.asm_10d22
ld a, $1
@@ -299,7 +299,7 @@ Func_1c3c3: ; 0x1c3c3
ret
Func_1c3ca: ; 0x1c3ca
ld hl, wd586
ld hl, wBillboardTilesIlluminationStates
ld b, $18
.asm_1c3cf
ld a, [hli]
@@ -248,7 +248,7 @@ Func_14209: ; 0x14209
ret
Func_14210: ; 0x14210
ld hl, wd586
ld hl, wBillboardTilesIlluminationStates
ld b, $18
.asm_14215
ld a, [hli]
+11 -2
View File
@@ -716,8 +716,17 @@ wTimerDigits:: ; 0xd582
; fourth byte = unused, but still written to
ds $4
wd586:: ; 0xd586
ds $30
wBillboardTilesIlluminationStates:: ; 0xd586
; This array holds the illuminated state for each of the 24 tiles in a pokemon's billboard picture.
; During Catch'Em mode, the billboard picture starts with all tiles being "dark", and they light up
; as the Shellder or Voltorb are hit.
;
; If the tile is lit up, the value is $01, and $00 when dark.
;
; Each entry in this array is 2 bytes.
; Byte 1 = Current illumination state
; Bytes 2 = Previous illumination state. This is used to avoid re-loading the same graphics.
ds $18 * 2
wd5b6:: ; 0xd5b6 a 24 wide block starts here and is filled before catch mode
ds $5