projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b02454
)
Added basic docs for how to handle collision
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 28 Oct 2024 05:00:18 +0000
(06:00 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 28 Oct 2024 05:00:18 +0000
(06:00 +0100)
src/collision.s
patch
|
blob
|
history
diff --git
a/src/collision.s
b/src/collision.s
index 232f69d9019e9d2455d41add78a0fcaeb9b31d75..350bffdebb0dcebca1ec1674709c2032033e4a1f 100644
(file)
--- a/
src/collision.s
+++ b/
src/collision.s
@@
-7,6
+7,15
@@
; X: x position
; y and x repeat until N is reached
+
+ ; player -> act collision
+ ; each sprite will check statically for collision
+ ; with the player by using pt -> rec collision
+
+ ; act -> act collision
+ ; actors should flag their current location in map flags
+ ; actors should simply avoid moving onto tiles that are already busy
+
; defines a collision header
; inputs:
; $1: N