From: Lukas Krickl Date: Sun, 22 Jun 2025 08:27:22 +0000 (+0200) Subject: unit: Added stub for sub-tile positions X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=a6a0b56b6cca251f5e22ccf2ea160f6c7890d57e;p=gbrg%2F.git unit: Added stub for sub-tile positions --- diff --git a/src/defs.s b/src/defs.s index d7fcc8c..83dfd0d 100644 --- a/src/defs.s +++ b/src/defs.s @@ -197,6 +197,13 @@ ; 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 diff --git a/src/macros.inc b/src/macros.inc index 0a9b1ef..503f889 100644 --- a/src/macros.inc +++ b/src/macros.inc @@ -232,7 +232,9 @@ ; 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