From 23d5badf5176935520d51b32af616093fa1be19b Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 25 Jan 2025 16:11:44 +0100 Subject: [PATCH] map: Added docs for room traversal --- src/map.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/map.s b/src/map.s index dbd8d3d..7f41102 100644 --- a/src/map.s +++ b/src/map.s @@ -605,6 +605,8 @@ map_gen_next: ; returns: ; a: direction ; de/hl are preserved + ; however de may be modified + ; to point to a new 'previous' room map_gen_pick_direction: push hl push de @@ -641,9 +643,6 @@ map_gen_pick_direction: ; add both bytes of ptr ; to check if its NULL - ; TODO: if direction is already taken we should - ; follow it and pick again to get more naturally - ; flowing dungeons ld a, [hl+] ld e, a ld a, [hl] -- 2.30.2