12 lines
1.1 KiB
Plaintext
12 lines
1.1 KiB
Plaintext
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.
|