I have a tiled world, which is really neat. I have an object for the objects in my tiled world, that doesn’t move and I’m z-ordering them by
casting them in an arraylist by biggest Y-coord, so I can draw the objects accordingly to that and the z-ordering would be correct.
However, I need a player aswell which i’m quite unsure about how to render with correct z-ordering. Do I need to make the player have the same superclass as the other objects, throw them in the same list, and then update that list everytime update() is called? That seems like a bad solution to me… Please give me your input on this, and please ask if I haven’t explained something good enough
Thanks guys