; map exit table entry struct
.se 0
.de map_exit_flags, 1
+ ; if this is != 0
+ ; the exit will only trigger
+ ; if the input specified is pressed
+.de map_exit_required_input, 1
.de map_exit_goto_y, 1
.de map_exit_goto_x, 1
; pointer to new map struct
; defines an exit table entry
; inputs:
; $1: flags
- ; $2: goto y
- ; $3: goto x
- ; $4: map header pointer
+ ; $2: required input/0
+ ; $3: goto y
+ ; $4: goto x
+ ; $5: map header pointer
#macro map_exit_table_entry
.db $1
.db $2
.db $3
- dw $4
+ .db $4
+ dw $5
#endmacro
; loads NULL into a 16 bit register