diff options
author | xCrystal <rgr.crystal@gmail.com> | 2018-02-17 19:11:28 +0100 |
---|---|---|
committer | xCrystal <rgr.crystal@gmail.com> | 2018-02-17 19:11:28 +0100 |
commit | ccb7c0c359dd1aa4475c9f51b37f7b5faabc1e34 (patch) | |
tree | a3a84c089d9ba93cd7312b460d82005d24596515 /src/constants | |
parent | c58266dc318f79bf5479868d7b2b6c067365fee0 (diff) |
Create sprite_buffer_struct
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 |