otcts
otcts copied to clipboard
refactor map renderer logic
Today we just render all map items in top/left to bottom/right order.
We should care about:
- Stackpos (grounds should render first than items, for example)
- Understand how to handle sprites when creature move from bottom to top; Sprites from bottom should not overlap creature sprites while walking as its happening today (see img1 below)
- Remove top floor visibility when things block your vision (see img2 below)
PS: Stackpos isn't a bug now because map editor already cares about it when save the otbm. So we read all in order and it's ok. But we should care about it too.
img1:

img2:

https://www.youtube.com/watch?v=2deCwZ5-3wM