summaryrefslogtreecommitdiff
path: root/src/constants/gfx_constants.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants/gfx_constants.asm')
-rw-r--r--src/constants/gfx_constants.asm17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/constants/gfx_constants.asm b/src/constants/gfx_constants.asm
new file mode 100644
index 0000000..fbcbdda
--- /dev/null
+++ b/src/constants/gfx_constants.asm
@@ -0,0 +1,17 @@
+; screen size
+SCREEN_WIDTH EQU 20 ; tiles
+SCREEN_HEIGHT EQU 18 ; tiles
+
+; background map size
+BG_MAP_WIDTH EQU 32 ; tiles
+BG_MAP_HEIGHT EQU 32 ; tiles
+
+; cgb palette size
+CGB_PAL_SIZE EQU 8 ; bytes
+
+; tile size
+TILE_SIZE EQU 16 ; bytes
+
+; wram sprite buffer
+SPRITE_BUFFER_CAPACITY EQU 16 ; sprites
+SPRITE_DATA_LENGTH EQU 16 ; bytes of data per sprite