aboutsummaryrefslogtreecommitdiffstats
path: root/constants/gfx_constants.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-11-04 20:11:52 -0500
committerGitHub <noreply@github.com>2020-11-04 20:11:52 -0500
commited03fc4f4a3287a01647e528abba27aac1937de0 (patch)
tree32fef70a31af3a0b5ad2b0d34042c312574fb42d /constants/gfx_constants.asm
parentMerge branch 'master' of https://github.com/pret/pokered (diff)
parentStart reorganizing pokeyellow (diff)
downloadpokeyellow-ed03fc4f4a3287a01647e528abba27aac1937de0.tar.gz
pokeyellow-ed03fc4f4a3287a01647e528abba27aac1937de0.tar.xz
pokeyellow-ed03fc4f4a3287a01647e528abba27aac1937de0.zip
Merge pull request #59 from Rangi42/master
Start reorganizing pokeyellow
Diffstat (limited to 'constants/gfx_constants.asm')
-rw-r--r--constants/gfx_constants.asm15
1 files changed, 14 insertions, 1 deletions
diff --git a/constants/gfx_constants.asm b/constants/gfx_constants.asm
index 912e5835..e6eb50db 100644
--- a/constants/gfx_constants.asm
+++ b/constants/gfx_constants.asm
@@ -2,10 +2,18 @@ TILE_WIDTH EQU 8 ; pixels
LEN_1BPP_TILE EQU 1 * TILE_WIDTH ; bytes
LEN_2BPP_TILE EQU 2 * TILE_WIDTH ; bytes
-NUM_PAL_COLORS EQU 4
+ const_def
+ const SHADE_WHITE ; %00
+ const SHADE_LIGHT ; %01
+ const SHADE_DARK ; %10
+ const SHADE_BLACK ; %11
+NUM_PAL_COLORS EQU const_value
+
PAL_COLOR_SIZE EQU 2
PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE
+NUM_ACTIVE_PALS EQU 4
+
SCREEN_WIDTH EQU 20
SCREEN_HEIGHT EQU 18
SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels
@@ -16,6 +24,11 @@ BG_MAP_HEIGHT EQU 32 ; tiles
SPRITEBUFFERSIZE EQU 7 * 7 * LEN_1BPP_TILE
+; DMGPalToGBCPal
+CONVERT_BGP EQU 0
+CONVERT_OBP0 EQU 1
+CONVERT_OBP1 EQU 2
+
; HP bar
HP_BAR_GREEN EQU 0
HP_BAR_YELLOW EQU 1