deepnight / ldtk

Modern, lightweight and efficient 2D level editor
https://ldtk.io
MIT License
3.37k stars 186 forks source link

Issues with non-power-of-two tilesets #669

Open aleokdev opened 2 years ago

aleokdev commented 2 years ago

First of all, thanks for the work you're putting into this; LDTK looks incredible. That said, there are a few issues bugging me right now that make a switch hard to accomplish. There are some issues with non-power-of-two tilesets. I have a 18px tileset which the editor grid doesn't seem to like very much; Rooms cut off before they're supposed to and tiles on the edges can't be seen very well: Screenshot_20220412_230116

aleokdev commented 2 years ago

It seems I just forgot to change the level size in pixels before actually doing work on it, but imo this should be done automatically, or the editor could give you a hint when resizing a layer's tile size.

deepnight commented 2 years ago

Well it's actually possible to have a level size which isn't a multiple of your grid size, for example if you mix layers with different grids. In many situations, having some automated process here would be an issue 🤔