otcts icon indicating copy to clipboard operation
otcts copied to clipboard

refactor map renderer logic

Open renatorib opened this issue 5 years ago • 1 comments

Today we just render all map items in top/left to bottom/right order.

We should care about:

  1. Stackpos (grounds should render first than items, for example)
  2. 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)
  3. 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: walking_bug

img2: floor

renatorib avatar Oct 27 '20 22:10 renatorib

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

renatorib avatar Apr 05 '24 17:04 renatorib