Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pret
GitHub Repository: pret/pokered
Path: blob/master/constants/sprite_data_constants.asm
1270 views
1
; sprite facing directions
2
const_def 0, $04
3
const SPRITE_FACING_DOWN ; $00
4
const SPRITE_FACING_UP ; $04
5
const SPRITE_FACING_LEFT ; $08
6
const SPRITE_FACING_RIGHT ; $0C
7
8
const_def 0, $40
9
const NPC_MOVEMENT_DOWN ; $00
10
const NPC_MOVEMENT_UP ; $40
11
const NPC_MOVEMENT_LEFT ; $80
12
const NPC_MOVEMENT_RIGHT ; $C0
13
14
DEF NPC_CHANGE_FACING EQU $E0
15
16
; player direction constants
17
const_def
18
const PLAYER_DIR_BIT_RIGHT ; 0
19
const PLAYER_DIR_BIT_LEFT ; 1
20
const PLAYER_DIR_BIT_DOWN ; 2
21
const PLAYER_DIR_BIT_UP ; 3
22
23
DEF PLAYER_DIR_RIGHT EQU 1 << PLAYER_DIR_BIT_RIGHT
24
DEF PLAYER_DIR_LEFT EQU 1 << PLAYER_DIR_BIT_LEFT
25
DEF PLAYER_DIR_DOWN EQU 1 << PLAYER_DIR_BIT_DOWN
26
DEF PLAYER_DIR_UP EQU 1 << PLAYER_DIR_BIT_UP
27
28