Hello,

I haven't quite been involved in Adonthell development, but here is the main 
algorithm I use in my RPG engine for drawing:

- For each object keep a list of colliding objects that are below or behind 
this object. (Speed this up by only calculating this list when an object moves.)
- All drawable objects have a label "drawn". Start by setting all these labels 
to "false".
- Now, for all entities in the map:
    * If this entity's label "drawn" is true, skip.
    * For all objects in the list, draw.
    * Set "drawn" to true.

That did the trick for me (and seemed to work for large objects, too), hope 
this helps.

PS. This way, tiles are considered entities as well.

Jasper
-- 
jasper van der jeugt <jasper...@gmail.com>


_______________________________________________
Adonthell-devel mailing list
Adonthell-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/adonthell-devel

Reply via email to