mapgen: Added notes about seed input
authorLukas Krickl <lukas@krickl.dev>
Mon, 21 Jul 2025 16:42:49 +0000 (18:42 +0200)
committerLukas Krickl <lukas@krickl.dev>
Mon, 21 Jul 2025 16:42:49 +0000 (18:42 +0200)
TODO.md
src/mapgen.s

diff --git a/TODO.md b/TODO.md
index 14e55ae41f8b01bda8e75b0963e57fdb95fb3e7d..4e498e566fdb6770e1f759e3599ac3c4dab375b8 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -95,6 +95,8 @@
 [ ] Each level has its onw post generation step that can be run
 [ ] Each level has a hard-cided post step that places the exit to the next level
 [ ] Each level has a shortcut to town (previous entrance)
+[ ] Save map state (e.g. actor flags, chest flags, door flags, loot flags with seed and map ptr used) in sram
+    Do not save the actual generated map -> instead generate it again on demand
 
 ## Classes
 [ ] Warrior -> can wear heavy armor, long sowrds, axes, hammers, shields, bucklers, short sowrds, learn magic of circle 1
index 8feb43f045f62cac1020bab6d4484d05a20a12b4..1223e52012f9feda19d34b20fbfd171e1058a6f3 100644 (file)
@@ -1,4 +1,5 @@
 
+
   ; places a rectangular room
   ; into the currently loaded map
   ; 1) searches the map for a suitable location
   ; inputs:
   ;   hl: writable decompressed tile array (e.g [map]) 
   ;       of size MAP_H * MAP_W
+  ;   de: the seed used
   ; returns:
   ;   a == 0: room was unable to be placed
   ;   a == 1: room was placed
+  ;       de: seed after generation has finished
+  ; preserves:
+  ;   srand
 mapgen_make_room:
   ; roll a room size