projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aad2e9
)
map: Added docs for room traversal
author
Lukas Krickl
<lukas@krickl.dev>
Sat, 25 Jan 2025 15:11:44 +0000
(16:11 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Sat, 25 Jan 2025 15:11:44 +0000
(16:11 +0100)
src/map.s
patch
|
blob
|
history
diff --git
a/src/map.s
b/src/map.s
index dbd8d3d03e75963bc3ca99b639a3dcf6e35f8509..7f41102636bebd87a39d25bfa4e97a3066b2fc62 100644
(file)
--- 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]