Card Flip digits are shifted 1px up, not 2px left

This commit is contained in:
Rangi 2019-02-18 11:35:28 -05:00
parent d342bf9b45
commit e671636bba

View File

@ -41,7 +41,7 @@ _CardFlip:
ld bc, 1 tiles ld bc, 1 tiles
call CopyBytes call CopyBytes
call CardFlip_ShiftDigitsLeftTwoPixels call CardFlip_ShiftDigitsUpOnePixel
call CardFlip_InitTilemap call CardFlip_InitTilemap
call CardFlip_InitAttrPals call CardFlip_InitAttrPals
call EnableLCD call EnableLCD
@ -594,7 +594,9 @@ CardFlip_CopyOAM:
jr nz, .loop jr nz, .loop
ret ret
CardFlip_ShiftDigitsLeftTwoPixels: CardFlip_ShiftDigitsUpOnePixel:
; The top rows of digits 1-9 become the bottom rows of 0-8,
; so this routine relies on the top rows being blank.
ld de, vTiles0 tile "0" ld de, vTiles0 tile "0"
ld hl, vTiles0 tile "0" + 2 ld hl, vTiles0 tile "0" + 2
ld bc, 10 tiles - 2 ld bc, 10 tiles - 2