From cdf4e5cd1b56890374d4ff29ff3e983fa500607b Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 28 Oct 2024 06:00:18 +0100 Subject: [PATCH] Added basic docs for how to handle collision --- src/collision.s | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/collision.s b/src/collision.s index 232f69d..350bffd 100644 --- 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 -- 2.30.2