From: Lukas Krickl Date: Sat, 25 Jan 2025 15:11:44 +0000 (+0100) Subject: map: Added docs for room traversal X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=23d5badf5176935520d51b32af616093fa1be19b;p=gbrg%2F.git map: Added docs for room traversal --- 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]