diff options
author | Daniel Harding <33dannye@gmail.com> | 2018-02-27 11:09:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-27 11:09:09 -0600 |
commit | 96b32412d82bdee2756b1a300b05d2647da9ad1f (patch) | |
tree | 677858a17041e829c8a442be2b16b43e20d2a341 /src/constants/gfx_constants.asm | |
parent | 24f40989d472407dc51653f2a671348126c6e816 (diff) | |
parent | 43d4b8644de2ffb3b1fc13638081cd228c4b2c74 (diff) |
Merge pull request #35 from xCrystal/master
Lots of bank0 and some bank1 disasm, labeling and corrections ; Many constants related to duels, cards, and WRAM structs ; Replace hardcoded WRAM addresses with generic labels ; Style clean up ; Format SGB packets ; Reorganize some gfx files
Diffstat (limited to 'src/constants/gfx_constants.asm')
-rw-r--r-- | src/constants/gfx_constants.asm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/constants/gfx_constants.asm b/src/constants/gfx_constants.asm new file mode 100644 index 0000000..2f5ca4a --- /dev/null +++ b/src/constants/gfx_constants.asm @@ -0,0 +1,41 @@ +; 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 + +; wFlushPaletteFlags constants +FLUSH_ONE EQU %10000000 +FLUSH_ALL EQU %11000000 +FLUSH_ALL_F EQU 6 + +; wSpriteAnimBuffer +SPRITE_ANIM_BUFFER_CAPACITY EQU 16 ; sprites + +; sprite_anim_struct constants + const_def + const SPRITE_ANIM_FIELD_00 + const SPRITE_ANIM_FIELD_01 + const SPRITE_ANIM_COORD_X + const SPRITE_ANIM_COORD_Y + const SPRITE_ANIM_TILE_ID + const SPRITE_ANIM_FIELD_05 + const SPRITE_ANIM_FIELD_06 + const SPRITE_ANIM_FIELD_07 + const SPRITE_ANIM_FIELD_08 + const SPRITE_ANIM_FIELD_09 + const SPRITE_ANIM_FIELD_0A + const SPRITE_ANIM_FIELD_0B + const SPRITE_ANIM_FIELD_0C + const SPRITE_ANIM_FIELD_0D + const SPRITE_ANIM_MOVEMENT_COUNTER + const SPRITE_ANIM_FIELD_0F +SPRITE_ANIM_LENGTH EQU const_value
\ No newline at end of file |