(Underdepth) Pass 3

This commit is contained in:
AlexKucera committed 2026-08-13 07:28:55 +02:00
1 parent 832f3a3345
commit c61d73bdfc
30 files changed
+4151

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
Done. Created **only** `engine/fov.py` (Phase 2 FOV task). Self-check prints `fov ok`; additional checks confirm rooms reveal floors + bounding walls and that a wall pillar blocks sight to floors behind it.
`engine/fov.py` — `compute_fov(gmap, ox, oy, radius) -> set[tuple[int,int]]`:
- 8-octant recursive shadowcasting (Björn Bergström) lights reachable tiles; walls block and cast shadows.
- Result = origin ∪ lit floor tiles ∪ walls adjacent to a lit floor (within Chebyshev radius).
- Origin is never placed in the lit set, so a sealed player has no lit floor neighbor → sees only self (passes the gate).
Skipped: mutating `gmap.visible`/`explored` in this function (signature returns a set; caller merges into grids). Add if a later phase wants `compute_fov` to write the grid directly.