projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba3b7d0
)
unit: Added stub for sub-tile positions
author
Lukas Krickl
<lukas@krickl.dev>
Sun, 22 Jun 2025 08:27:22 +0000
(10:27 +0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Sun, 22 Jun 2025 08:27:22 +0000
(10:27 +0200)
src/defs.s
patch
|
blob
|
history
src/macros.inc
patch
|
blob
|
history
diff --git
a/src/defs.s
b/src/defs.s
index d7fcc8c59cbed037188fa61191fb47e2aaa6b798..83dfd0da16c23acf91672173dfd8a8fb0c0299d7 100644
(file)
--- 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 0a9b1efdf72a815dcb0204269a74e722b4e447c9..503f8895c4d6aaa8f86641227d65a4ee2718ed9a 100644
(file)
--- 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