mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Replace some hex constants
This commit is contained in:
parent
cc0fd6e12c
commit
fbc353f206
@ -1,13 +1,12 @@
|
||||
LEN_1BPP_TILE EQU 8 ; bytes
|
||||
LEN_2BPP_TILE EQU 16 ; bytes
|
||||
|
||||
TILE_WIDTH EQU 8 ; pixels
|
||||
LEN_1BPP_TILE EQU TILE_WIDTH ; bytes
|
||||
LEN_2BPP_TILE EQU TILE_WIDTH * 2 ; bytes
|
||||
|
||||
NUM_PAL_COLORS EQU 4
|
||||
|
||||
SCREEN_WIDTH EQU 20 ; tiles
|
||||
SCREEN_WIDTH EQU 20 ; tiles
|
||||
SCREEN_HEIGHT EQU 18 ; tiles
|
||||
SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels
|
||||
SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels
|
||||
SCREEN_HEIGHT_PX EQU SCREEN_HEIGHT * TILE_WIDTH ; pixels
|
||||
|
||||
BG_MAP_WIDTH EQU 32 ; tiles
|
||||
@ -15,9 +14,9 @@ BG_MAP_HEIGHT EQU 32 ; tiles
|
||||
WMISC_WIDTH EQU 6 * 4
|
||||
WMISC_HEIGHT EQU 5 * 4
|
||||
|
||||
HP_BAR_LENGTH EQU 6 ; tiles
|
||||
HP_BAR_LENGTH_PX EQU HP_BAR_LENGTH * TILE_WIDTH ; pixels
|
||||
HP_BAR_LENGTH EQU 6 ; tiles
|
||||
EXP_BAR_LENGTH EQU 8 ; tiles
|
||||
HP_BAR_LENGTH_PX EQU HP_BAR_LENGTH * TILE_WIDTH ; pixels
|
||||
EXP_BAR_LENGTH_PX EQU EXP_BAR_LENGTH * TILE_WIDTH ; pixels
|
||||
|
||||
PALPACKET_LENGTH EQU $10
|
||||
|
@ -188,7 +188,7 @@ LoadFrontpicTiles: ; 5114f
|
||||
pop bc
|
||||
.loop
|
||||
push bc
|
||||
ld c, $0
|
||||
ld c, 0
|
||||
call LoadFrontpic
|
||||
pop bc
|
||||
dec b
|
||||
|
@ -4,7 +4,7 @@ LoadOverworldFont:: ; 106594
|
||||
lb bc, BANK(.font), $80
|
||||
call Get2bpp
|
||||
ld de, .space
|
||||
ld hl, vTiles2 tile $7f
|
||||
ld hl, vTiles2 tile " "
|
||||
lb bc, BANK(.space), 1
|
||||
call Get2bpp
|
||||
ret
|
||||
|
@ -367,9 +367,9 @@ ScrollTileUp: ; fc34f
|
||||
ld d, [hl]
|
||||
inc hl
|
||||
ld e, [hl]
|
||||
ld bc, $e
|
||||
ld bc, TILE_WIDTH * 2 - 2
|
||||
add hl, bc
|
||||
ld a, 4
|
||||
ld a, TILE_WIDTH / 2
|
||||
.loop
|
||||
ld c, [hl]
|
||||
ld [hl], e
|
||||
@ -391,14 +391,14 @@ ScrollTileUp: ; fc34f
|
||||
ScrollTileDown: ; fc36a
|
||||
ld h, d
|
||||
ld l, e
|
||||
ld de, $e
|
||||
ld de, TILE_WIDTH * 2 - 2
|
||||
push hl
|
||||
add hl, de
|
||||
ld d, [hl]
|
||||
inc hl
|
||||
ld e, [hl]
|
||||
pop hl
|
||||
ld a, 4
|
||||
ld a, TILE_WIDTH / 2
|
||||
.loop
|
||||
ld b, [hl]
|
||||
ld [hl], d
|
||||
|
Loading…
Reference in New Issue
Block a user