Problem
Wall caps at y-1 copy the floor tile at that position into the object layer with elevated priority. At most positions this shows the wall's crown/cornice art — correct occlusion. But at some positions (particularly near doorways), the floor tile shows orange/brown ground instead of wall art. This makes the player appear to be covered by floor rather than hidden behind a wall.
Root cause
The buildObjectLayerFromBarriers function copies floor tiles at wall cap positions. The floor tile content depends on the background image — it's correct where the image shows wall top, but wrong where it shows ground or transition tiles.
Possible approaches
- Tile art fix: Adjust the background image so y-1 tiles above walls always show wall art
- Selective wall caps: Skip wall cap creation at positions where the tile art doesn't match wall content (would need a heuristic or manual exclusion list)
- Accept as visual limitation: The occlusion is algorithmically correct; only the visual content is wrong
Context
Identified during wall occlusion work in PR #202. This is a tile content issue, not an algorithm issue.
Problem
Wall caps at y-1 copy the floor tile at that position into the object layer with elevated priority. At most positions this shows the wall's crown/cornice art — correct occlusion. But at some positions (particularly near doorways), the floor tile shows orange/brown ground instead of wall art. This makes the player appear to be covered by floor rather than hidden behind a wall.
Root cause
The
buildObjectLayerFromBarriersfunction copies floor tiles at wall cap positions. The floor tile content depends on the background image — it's correct where the image shows wall top, but wrong where it shows ground or transition tiles.Possible approaches
Context
Identified during wall occlusion work in PR #202. This is a tile content issue, not an algorithm issue.