2020-07-03 16:44:47 +00:00
|
|
|
; sprite facing directions
|
2020-07-09 18:51:48 +00:00
|
|
|
const_def 0, $04
|
|
|
|
const SPRITE_FACING_DOWN ; $00
|
|
|
|
const SPRITE_FACING_UP ; $04
|
|
|
|
const SPRITE_FACING_LEFT ; $08
|
|
|
|
const SPRITE_FACING_RIGHT ; $0C
|
2020-07-03 16:44:47 +00:00
|
|
|
|
2020-07-09 18:51:48 +00:00
|
|
|
const_def 0, $40
|
|
|
|
const NPC_MOVEMENT_DOWN ; $00
|
|
|
|
const NPC_MOVEMENT_UP ; $40
|
|
|
|
const NPC_MOVEMENT_LEFT ; $80
|
|
|
|
const NPC_MOVEMENT_RIGHT ; $C0
|
2020-07-03 16:44:47 +00:00
|
|
|
|
|
|
|
; player direction constants
|
2020-07-09 18:51:48 +00:00
|
|
|
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
|
2020-07-03 16:44:47 +00:00
|
|
|
|
2020-07-09 18:51:48 +00:00
|
|
|
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
|