diff options
Diffstat (limited to 'src/constants')
-rw-r--r-- | src/constants/gfx_constants.asm | 17 | ||||
-rw-r--r-- | src/constants/misc_constants.asm | 14 |
2 files changed, 17 insertions, 14 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 diff --git a/src/constants/misc_constants.asm b/src/constants/misc_constants.asm index 50bb03c..11693b4 100644 --- a/src/constants/misc_constants.asm +++ b/src/constants/misc_constants.asm @@ -1,17 +1,3 @@ -; 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 - ; console types (for wConsole) CONSOLE_DMG EQU $00 CONSOLE_SGB EQU $01 |