From: Lukas Krickl Date: Mon, 28 Oct 2024 05:00:18 +0000 (+0100) Subject: Added basic docs for how to handle collision X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=cdf4e5cd1b56890374d4ff29ff3e983fa500607b;p=gbrg%2F.git Added basic docs for how to handle collision --- 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