Skip to content

Tile border enhancements#6144

Open
sowelipililimute wants to merge 4 commits into
space-wizards:masterfrom
sowelipililimute:work/jblackquill/tilesmoothing
Open

Tile border enhancements#6144
sowelipililimute wants to merge 4 commits into
space-wizards:masterfrom
sowelipililimute:work/jblackquill/tilesmoothing

Conversation

@sowelipililimute

@sowelipililimute sowelipililimute commented Aug 16, 2025

Copy link
Copy Markdown
Member

implementation

  • ITileDefinitions now have a BordersMode field that affects rendering
    • Exterior8Patch: old behaviour, up to 8 sprites on the neighbouring tiles
    • Interior8Patch: up to 8 sprites on the current tile based on neighbours
    • Interior4Of16: up to 4 sprites on the current tile out of 16 variants based on neighbours
  • Interior4Of16EdgeSprites that holds the sprites for the 4-of-16 mode

content build failure

  • this needs new storage for the 4-of-16 sprites and i'm not about to hijack the Direction enum for that

what it looks like

grafik

left: interior 8-patch
right: interior 4-of-16
each colour is its own image

@AftrLite

Copy link
Copy Markdown
Contributor

🤤 yummy.. yummers.. spriters eating good today... (i'm spriters)

@Princess-Cheeseballs Princess-Cheeseballs self-assigned this Jul 11, 2026

@Princess-Cheeseballs Princess-Cheeseballs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good,
The massive if statement is horrific and frightening, but it's readable and optimizing it would reduce its readability for like only nanoseconds of gain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants