aboutsummaryrefslogtreecommitdiffstats
path: root/constants/gfx_constants.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2025-01-30 21:40:19 -0600
committerdannye <33dannye@gmail.com>2025-01-30 21:40:19 -0600
commit6cb885a9f68b9f445d7fa45279731336fe0247d4 (patch)
tree39736ab1dd8ebcc57f8e981db6103285743d5530 /constants/gfx_constants.asm
parentIdentify unnamed functions in map_sprites.asm (#126) (diff)
parentFix some label typos, and add some constants instead of raw numbers (#492) (diff)
downloadpokeyellow-6cb885a9f68b9f445d7fa45279731336fe0247d4.tar.gz
pokeyellow-6cb885a9f68b9f445d7fa45279731336fe0247d4.tar.xz
pokeyellow-6cb885a9f68b9f445d7fa45279731336fe0247d4.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'constants/gfx_constants.asm')
-rw-r--r--constants/gfx_constants.asm9
1 files changed, 8 insertions, 1 deletions
diff --git a/constants/gfx_constants.asm b/constants/gfx_constants.asm
index ff470ff4..0f2fabd2 100644
--- a/constants/gfx_constants.asm
+++ b/constants/gfx_constants.asm
@@ -10,9 +10,16 @@ DEF SCREEN_HEIGHT_PX EQU SCREEN_HEIGHT * TILE_WIDTH ; pixels
DEF BG_MAP_WIDTH EQU 32 ; tiles
DEF BG_MAP_HEIGHT EQU 32 ; tiles
+DEF BLOCK_WIDTH EQU 4 ; tiles
+DEF BLOCK_HEIGHT EQU BLOCK_WIDTH ; tiles
+DEF SCREEN_BLOCK_WIDTH EQU 6 ; blocks
+DEF SCREEN_BLOCK_HEIGHT EQU 5 ; blocks
+DEF SURROUNDING_WIDTH EQU SCREEN_BLOCK_WIDTH * BLOCK_WIDTH ; tiles
+DEF SURROUNDING_HEIGHT EQU SCREEN_BLOCK_HEIGHT * BLOCK_HEIGHT ; tiles
+
DEF SPRITEBUFFERSIZE EQU 7 * 7 * LEN_1BPP_TILE
-; DMGPalToGBCPal
+; DMGPalToCGBPal
DEF CONVERT_BGP EQU 0
DEF CONVERT_OBP0 EQU 1
DEF CONVERT_OBP1 EQU 2