mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Use constants for quantities when copying SGB border tiles and palettes
This commit is contained in:
parent
2cf6dc1e0c
commit
4211886921
@ -1075,21 +1075,21 @@ SGBBorder_MorePalPushing:
|
|||||||
ld a, $e4
|
ld a, $e4
|
||||||
ldh [rBGP], a
|
ldh [rBGP], a
|
||||||
ld de, vTiles1
|
ld de, vTiles1
|
||||||
ld bc, 20 tiles
|
ld bc, (6 + SCREEN_WIDTH + 6) * 5 * 2
|
||||||
call CopyData
|
call CopyData
|
||||||
ld b, 18
|
ld b, SCREEN_HEIGHT
|
||||||
.loop
|
.loop
|
||||||
push bc
|
push bc
|
||||||
ld bc, $c
|
ld bc, 6 * 2
|
||||||
call CopyData
|
call CopyData
|
||||||
ld bc, $28
|
ld bc, SCREEN_WIDTH * 2
|
||||||
call ClearBytes
|
call ClearBytes
|
||||||
ld bc, $c
|
ld bc, 6 * 2
|
||||||
call CopyData
|
call CopyData
|
||||||
pop bc
|
pop bc
|
||||||
dec b
|
dec b
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
ld bc, $140
|
ld bc, (6 + SCREEN_WIDTH + 6) * 5 * 2
|
||||||
call CopyData
|
call CopyData
|
||||||
ld bc, $100
|
ld bc, $100
|
||||||
call ClearBytes
|
call ClearBytes
|
||||||
@ -1195,6 +1195,7 @@ SGBBorderMap:
|
|||||||
INCBIN "gfx/sgb/sgb_border.bin"
|
INCBIN "gfx/sgb/sgb_border.bin"
|
||||||
|
|
||||||
SGBBorderPalettes:
|
SGBBorderPalettes:
|
||||||
|
; assumed to come after SGBBorderMap
|
||||||
INCLUDE "gfx/sgb/sgb_border.pal"
|
INCLUDE "gfx/sgb/sgb_border.pal"
|
||||||
|
|
||||||
SGBBorder:
|
SGBBorder:
|
||||||
|
Loading…
Reference in New Issue
Block a user