How do I determine the draw order in an isometric view flash game?

Posted by Gajet on Game Development See other posts from Game Development or by Gajet
Published on 2012-03-21T22:18:50Z Indexed on 2012/03/21 23:41 UTC
Read the original article Hit count: 304

Filed under:
|
|
|

This is for a flash game, with isometric view. I need to know how to sort object so that there is no need for z-buffer checking when drawing. This might seem easy but there is another restriction, a scene can have 10,000+ objects so the algorithm needs to be run in less than O(n^2). All objects are rectangular boxes, and there are 3-4 objects moving in the scene. What's the best way to do this?

UPDATE

in each tile there is only object (I mean objects can stack on top of each other). and we access to both map of Objects and Objects have their own position.

© Game Development or respective owner

Related posts about algorithm

Related posts about flash