Skip to content

feat: autotiling — auto-place transition tiles when painting #13

@andy5995

Description

@andy5995

Problem

When painting terrain with a single tile, edges come out as hard staircase steps. The original maps use special transition tiles (diagonals, curves) to blend between terrain types. Without autotiling support, users have to manually find and place those tiles one at a time, which is tedious and error-prone.

Proposed behaviour

When painting a tile, the editor should inspect adjacent tiles and automatically replace edge tiles with the appropriate transition variant, producing smooth terrain boundaries the same way the original maps were built.

Implementation notes

  • The .tls format has no built-in metadata for terrain groups or transition rules, so this information would need to come from an external sidecar (e.g. a per-tileset JSON/INI file alongside the .tls).
  • Each terrain group would need a mapping from the 8-neighbour bitmask to the correct transition tile ID (standard "Wang tile" / "blob tileset" approach).
  • Painting and undo should both update transition tiles correctly.

Workaround (current)

Use Rect Select → Capture Selection to stamp an existing smooth transition area from the original map and repaint with that stamp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions