Jerenaux / phaserquest

Reproduction of Mozilla's BrowserQuest using Phaser, socket.io and Node.js
http://www.dynetisgames.com/2017/03/18/phaser-quest/
MIT License
371 stars 127 forks source link

Deleting grass layer cause character to display above "v" tiles instead of behind #17

Open lulalala opened 4 years ago

lulalala commented 4 years ago

It seems when grass layer is deleted, character would be displayed on above tiles which it shouldn't (e.g. house roofs, top of trees).

(However I can only reproduce it from my own tmx file)

Update

I think this has something to do withnbGroundLayers being 4. I changed it to 1 (to suit my need) and things works now. Not sure how to properly fix this though. I don't see a similar 4 in browserQuest source code. Why is it necessary here?