Added basic docs for how to handle collision
authorLukas Krickl <lukas@krickl.dev>
Mon, 28 Oct 2024 05:00:18 +0000 (06:00 +0100)
committerLukas Krickl <lukas@krickl.dev>
Mon, 28 Oct 2024 05:00:18 +0000 (06:00 +0100)
src/collision.s

index 232f69d9019e9d2455d41add78a0fcaeb9b31d75..350bffdebb0dcebca1ec1674709c2032033e4a1f 100644 (file)
@@ -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