I have an app the is a tile game. Tiles are placed in layers (1 to 5) as well as rows and columns… giving it a 3D effect. The problem is tiles can be placed on 50% boundarys… like this
Before the board is displayed the tiles are sorted (note the number on each one).
They are sorted first by their column (left to right), then by row (top to bottom)
The idea being that when they are drawn in the proper order, the edges are obscured by the tile to the right and/or below (like the 2nd set in the example)
Obviously there needs to be another/better way to order the tiles before drawing them
I think the first set really should be ordered 0,3,6,2,5,4
but the fact that those rows start offset is the problem
note : this example is ONE layer only… but each layer would have the same sort rules “within” the layer