Wednesday, November 13, 2019

How do I determine the draw order of isometric 2D objects occupying multiple tiles?



http://puu.sh/iMXFc/64095967d6.png


My current sorting method works only for objects that occupy 1 tile and fails for multi-tile objects. For examle, the bed in the above picture occupies 1×2 tiles, and the sorting fails.


Also that bed picture is 1 whole image that covers 2 tiles.


How can I change my sort method to accomodate this?




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...