ldtk
ldtk copied to clipboard
YSort the Entity array, before rendering
Before:
After:
Before the drawing order was decided by the order in which the entities were placed in the world, now it uses a y-sort.
This is very handy when using entities instead of tilelayers to draw objects.