Skip to content

Commit

Permalink
QoL #3: store footprints normally
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaaaa123456789 authored and vulcandth committed Jun 14, 2022
1 parent 00b57a3 commit 5f91240
Show file tree
Hide file tree
Showing 2 changed files with 259 additions and 608 deletions.
20 changes: 3 additions & 17 deletions engine/pokedex/pokedex.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2392,32 +2392,18 @@ Pokedex_LoadAnyFootprint:
dec a
and %111
swap a ; * $10
add a, a
ld l, a
ld h, 0
add hl, de
ld de, Footprints
add hl, de

push hl
ld e, l
ld d, h
ld hl, vTiles2 tile $62
lb bc, BANK(Footprints), 2
call Request1bpp
pop hl

; Whoever was editing footprints forgot to fix their
; tile editor. Now each bottom half is 8 tiles off.
ld de, 8 tiles
add hl, de

ld e, l
ld d, h
ld hl, vTiles2 tile $64
lb bc, BANK(Footprints), 2
call Request1bpp

ret
lb bc, BANK(Footprints), 4
jp Request1bpp

Pokedex_LoadGFX:
call DisableLCD
Expand Down

0 comments on commit 5f91240

Please sign in to comment.