summaryrefslogtreecommitdiff
path: root/constants/gfx_constants.asm
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2018-01-09 18:08:40 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2018-01-09 18:08:40 -0500
commitfbc353f206ad457f32493b061b83e9067109e504 (patch)
tree03e4997c8d69b15a23ad195948d712d9eaaaef33 /constants/gfx_constants.asm
parentcc0fd6e12c0afe9b70f55114eb3123014318e107 (diff)
Replace some hex constants
Diffstat (limited to 'constants/gfx_constants.asm')
-rw-r--r--constants/gfx_constants.asm13
1 files changed, 6 insertions, 7 deletions
diff --git a/constants/gfx_constants.asm b/constants/gfx_constants.asm
index ca468f477..cba08a219 100644
--- a/constants/gfx_constants.asm
+++ b/constants/gfx_constants.asm
@@ -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