summaryrefslogtreecommitdiff
path: root/constants/sprite_data_constants.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-09 14:51:48 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-09 14:51:48 -0400
commit3e572b6f48b81e5340980c13b1b37b2907942713 (patch)
treec994a1ca8f587d674e680ec808e7fcbaab4d053d /constants/sprite_data_constants.asm
parent676a35f76f93dfe18678a832fa63d8b684c34c45 (diff)
Use const_skip and const_next macros for brevity
Diffstat (limited to 'constants/sprite_data_constants.asm')
-rw-r--r--constants/sprite_data_constants.asm36
1 files changed, 19 insertions, 17 deletions
diff --git a/constants/sprite_data_constants.asm b/constants/sprite_data_constants.asm
index 48a34446..1639b8fa 100644
--- a/constants/sprite_data_constants.asm
+++ b/constants/sprite_data_constants.asm
@@ -1,22 +1,24 @@
; sprite facing directions
-SPRITE_FACING_DOWN EQU $00
-SPRITE_FACING_UP EQU $04
-SPRITE_FACING_LEFT EQU $08
-SPRITE_FACING_RIGHT EQU $0C
+ const_def 0, $04
+ const SPRITE_FACING_DOWN ; $00
+ const SPRITE_FACING_UP ; $04
+ const SPRITE_FACING_LEFT ; $08
+ const SPRITE_FACING_RIGHT ; $0C
-NPC_MOVEMENT_DOWN EQU $00
-NPC_MOVEMENT_UP EQU $40
-NPC_MOVEMENT_LEFT EQU $80
-NPC_MOVEMENT_RIGHT EQU $C0
+ const_def 0, $40
+ const NPC_MOVEMENT_DOWN ; $00
+ const NPC_MOVEMENT_UP ; $40
+ const NPC_MOVEMENT_LEFT ; $80
+ const NPC_MOVEMENT_RIGHT ; $C0
; player direction constants
+ const_def
+ const PLAYER_DIR_BIT_RIGHT ; 0
+ const PLAYER_DIR_BIT_LEFT ; 1
+ const PLAYER_DIR_BIT_DOWN ; 2
+ const PLAYER_DIR_BIT_UP ; 3
-PLAYER_DIR_BIT_RIGHT EQU 0
-PLAYER_DIR_BIT_LEFT EQU 1
-PLAYER_DIR_BIT_DOWN EQU 2
-PLAYER_DIR_BIT_UP EQU 3
-
-PLAYER_DIR_RIGHT EQU (1 << PLAYER_DIR_BIT_RIGHT)
-PLAYER_DIR_LEFT EQU (1 << PLAYER_DIR_BIT_LEFT)
-PLAYER_DIR_DOWN EQU (1 << PLAYER_DIR_BIT_DOWN)
-PLAYER_DIR_UP EQU (1 << PLAYER_DIR_BIT_UP)
+PLAYER_DIR_RIGHT EQU 1 << PLAYER_DIR_BIT_RIGHT
+PLAYER_DIR_LEFT EQU 1 << PLAYER_DIR_BIT_LEFT
+PLAYER_DIR_DOWN EQU 1 << PLAYER_DIR_BIT_DOWN
+PLAYER_DIR_UP EQU 1 << PLAYER_DIR_BIT_UP