isadorasophia / murder

Murder is a pixel art ECS game engine.
https://isadorasophia.com/murder/
MIT License
2.45k stars 61 forks source link

Tilemap overlapping issue for top inside corners #86

Closed jaydavid closed 3 weeks ago

jaydavid commented 3 weeks ago

Hello,

I've found that inside corners of overlapping tilesets are rendered incorrectly, or at least it seems that way. Here's some steps to demonstrate the issue

Create a pair of tilesets. The Wall Tiles and Simple Tiles in the HelloMurder project should work for this, but it's easier to see the issue if you create more strikingly colored ones. Here are the ones I used:

Blue: blue

Green: green

Set the YSort Offset of Green to be 1

Add the tilesets to a tilemap in a world and draw the following pattern

pattern

Then fill the area in with blue in order to see the issue.

image

It should be noted that this issue goes away if you set the YSort Offset to 9 or higher, or if you use the Floor target batch for blue.