Skip to content

fix: wall cap tiles show floor art instead of wall art at some positions #207

@nickmeinhold

Description

@nickmeinhold

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

  1. Tile art fix: Adjust the background image so y-1 tiles above walls always show wall art
  2. 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)
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions