feat: complete playtest parity improvements

This commit is contained in:
goose
2026-10-08 19:06:19 -04:00
parent cce25a1908
commit eca098b4b9
139 changed files with 3001 additions and 982 deletions
+14 -5
View File
@@ -13,9 +13,11 @@ import sys
import zlib
from pathlib import Path
WIDTH = 1280
HEIGHT = 720
VIEWPORT = (256, 40, 1024, 678)
WIDTH = 1920
HEIGHT = 1080
# Central dungeon measurement region, proportionally equivalent to the former
# 16:9 reference crop while excluding the anchored HUD panels.
VIEWPORT = (384, 60, 1536, 1017)
UNKNOWN = (1, 2, 5)
# Captured explored tiles are texture modulated, so classify their blue-black
# pixels by palette range rather than expecting one flat overlay color.
@@ -140,8 +142,15 @@ def luminance(rgb: tuple[int, int, int]) -> float:
def is_visible(pixel: tuple[int, int, int]) -> bool:
# The unmodulated grayscale floor texture includes these neutral bright texels.
return max(pixel) - min(pixel) <= 3 and max(pixel) >= 112
# Visible terrain can be either the neutral wall texture or the brown floor
# texture. The authored surface begins in a large open room, so a capture is
# not required to include a wall inside the central measurement crop.
neutral_wall = max(pixel) - min(pixel) <= 3 and max(pixel) >= 112
unmodulated_floor = pixel in {
(23, 4, 0), (23, 7, 0), (10, 10, 0), (30, 13, 0),
(4, 4, 0), (41, 23, 1), (30, 9, 0), (66, 36, 6),
}
return neutral_wall or unmodulated_floor
def is_explored(pixel: tuple[int, int, int]) -> bool: