unit: Added stub for sub-tile positions
authorLukas Krickl <lukas@krickl.dev>
Sun, 22 Jun 2025 08:27:22 +0000 (10:27 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sun, 22 Jun 2025 08:27:22 +0000 (10:27 +0200)
src/defs.s
src/macros.inc

index d7fcc8c59cbed037188fa61191fb47e2aaa6b798..83dfd0da16c23acf91672173dfd8a8fb0c0299d7 100644 (file)
   ; last collision with actor
   ; set during unit_collision_woth_any_other
 .de act_rt_collided_with, 2
+
+  ; sub-tile position
+  ;   nnnn0000: y subtile
+  ;   0000nnnn: x subtile
+  ; if the subtile position overflows/underflows
+  ; the actor may move on to the next tile
+.de act_rt_subtile_pos, 1
 .de act_size, 0
   
   ; max bge queue size
index 0a9b1efdf72a815dcb0204269a74e722b4e447c9..503f8895c4d6aaa8f86641227d65a4ee2718ed9a 100644 (file)
   ; these can generally not be set at build time
 #macro act_rt_def
   ; act_rt_collided_woth
-  dw 0 
+  dw 0
+  ; subtile_pos
+  .db 0 
 #endmacro
 
   ; defines an actors attributes