defs: Re-defined map exit goto x and y
authorLukas Krickl <lukas@krickl.dev>
Sat, 5 Jul 2025 04:34:18 +0000 (06:34 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sat, 5 Jul 2025 04:34:18 +0000 (06:34 +0200)
src/defs.s

index 28ed01af8fd5204f2fbf1fcf6da2d55a2ea34048..dd648a25b9d3e1c2633231bebabaea56cb328b62 100644 (file)
 
   ; map exit flags
 .se 1
-  ; if set players Y/X position
-  ; to the opposite side of the 
-  ; map upon entering
-.de MAP_EXITF_FLIPY, 1
-.de MAP_EXITF_FLIPX, 2
-  ; goto will set the actual position
-  ; based on the exit table entry
-.de MAP_EXITF_GOTOY, 4
-.de MAP_EXITF_GOTOX, 8
+  ; if these flags are set goto_y and
+  ; goto_x are treated as relative offsets
+  ; instead of absolute tile positions
+.de MAP_EXITF_GOTOY_REL, 1
+.de MAP_EXITF_GOTOX_REL, 2
 
   ; map exit table entry struct
 .se 0