mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Don't overlap GO_* and BRANCH_DIRECTION_* constants [bug fix] (#28)
This commit is contained in:
parent
5a7a380e37
commit
429aad6798
21
constants/space_constants.asm
Executable file → Normal file
21
constants/space_constants.asm
Executable file → Normal file
@ -3,14 +3,15 @@ DEF FIRST_SPACE_METATILE EQU $80
|
||||
DEF FIRST_GREY_SPACE_METATILE EQU $e0
|
||||
DEF UNIQUE_SPACE_METATILES_MASK EQU %11111
|
||||
|
||||
; reserved next space values that signal movement towards anchor point rather than towards space
|
||||
const_def -1, -1
|
||||
const GO_DOWN ; 255
|
||||
const GO_UP ; 254
|
||||
const GO_LEFT ; 253
|
||||
const GO_RIGHT ; 252
|
||||
DEF NEXT_SPACE_IS_ANCHOR_POINT EQU const_value + 1
|
||||
|
||||
; Branch Space special direction values
|
||||
DEF BRANCH_DIRECTION_INVALID EQU -1
|
||||
DEF BRANCH_DIRECTION_UNAVAILABLE EQU -2
|
||||
const_def -1, -1
|
||||
const BRANCH_DIRECTION_INVALID ; -1
|
||||
const BRANCH_DIRECTION_UNAVAILABLE ; -2
|
||||
|
||||
; reserved next space values that signal movement towards anchor point rather than towards space.
|
||||
; must not overlap with BRANCH_DIRECTION_* constants in order to support GO_* values as next spaces of a branch direction.
|
||||
const GO_DOWN ; 253
|
||||
const GO_UP ; 252
|
||||
const GO_LEFT ; 251
|
||||
const GO_RIGHT ; 250
|
||||
DEF NEXT_SPACE_IS_ANCHOR_POINT EQU const_value + 1
|
||||
|
Loading…
Reference in New Issue
Block a user