mapgen: updated mapgen docs
authorLukas Krickl <lukas@krickl.dev>
Fri, 25 Jul 2025 07:40:52 +0000 (09:40 +0200)
committerLukas Krickl <lukas@krickl.dev>
Fri, 25 Jul 2025 07:40:52 +0000 (09:40 +0200)
src/mapgen.s

index bac5fc1d9032e89c26ba95dbdef2604142c52969..16cd4c770f524b9fc69c0e7b1569955a2cd04792 100644 (file)
@@ -2,13 +2,13 @@
 
   ; places a rectangular room
   ; into the currently loaded map
-  ; 1) searches the map for a suitable location
-  ; 2) draws the room 
-  ; 3) places doors
-  ; 4) places between 1-3 actors from a valid actor list
-  ;    actor placement may fail if the actor table is full
-  ; If the tile id is not 0 this rotuine will consider the tile invalid
-  ; and will never write to it
+  ; 1) places room patterns in top left, top right, bottom left, bottom right
+  ;    patterns are chosen from a list of valid patterns which is determined by
+  ;    the current floor
+  ; 6) place larger room patterns that may overwrite existing patterns
+  ; 5) run floor-based post processing (look up routine from table)
+  ; 7) palce actors on floor tiles based on a table of actors 
+  ;    chosen based on the floor
   ; inputs:
   ;   hl: writable decompressed tile array (e.g [map]) 
   ;       of size MAP_H * MAP_W