2023-10-29 12:03:23 +01:00
|
|
|
; metatile layout constants
|
|
|
|
|
DEF FIRST_SPACE_METATILE EQU $80
|
|
|
|
|
DEF FIRST_GREY_SPACE_METATILE EQU $e0
|
|
|
|
|
DEF UNIQUE_SPACE_METATILES_MASK EQU %11111
|
|
|
|
|
|
2024-01-22 19:32:19 +01:00
|
|
|
; End Space effect constants (denotes which stage of the level is cleared by this space; equivalent to STAGE_*_F constants)
|
2024-01-18 19:22:21 +01:00
|
|
|
const_def
|
|
|
|
|
const ES1 ; 0
|
|
|
|
|
const ES2 ; 1
|
|
|
|
|
const ES3 ; 2
|
|
|
|
|
const ES4 ; 3
|
|
|
|
|
|
2023-12-14 17:03:28 +01:00
|
|
|
; Branch Space special direction values
|
2023-12-20 19:14:28 +01:00
|
|
|
const_def 255, -1
|
2023-12-14 17:03:28 +01:00
|
|
|
const BRANCH_DIRECTION_INVALID ; -1
|
|
|
|
|
const BRANCH_DIRECTION_UNAVAILABLE ; -2
|
2023-11-16 17:20:13 +01:00
|
|
|
|
2023-12-14 17:03:28 +01:00
|
|
|
; 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
|
2023-12-20 19:14:28 +01:00
|
|
|
|
|
|
|
|
DEF MAX_SPACES_PER_MAP EQU const_value + 1
|
|
|
|
|
|
|
|
|
|
DEF NUM_DISABLED_SPACES_BACKUPS EQU 10
|