From: Lukas Krickl Date: Fri, 4 Jul 2025 16:58:42 +0000 (+0200) Subject: map exits: Added required input field to exit struct X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=4ebbdbd8c00378a75ac48e3e680097e1e71d147f;p=gbrg%2F.git map exits: Added required input field to exit struct --- diff --git a/src/defs.s b/src/defs.s index bbd1747..6744428 100644 --- a/src/defs.s +++ b/src/defs.s @@ -301,6 +301,10 @@ ; 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 diff --git a/src/macros.inc b/src/macros.inc index bc37519..7a714d2 100644 --- a/src/macros.inc +++ b/src/macros.inc @@ -278,14 +278,16 @@ ; 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