Yeah, i know, it's me again. 😛
I found few bugs, so i though i will open a thread where i will be posting all the issues i find, instead of opening new thread for each one - unless you prefer other way.
In docs you wrote it doesn't require 2nd parameter, but it actually does. Leaving null or false doesn't work.
Higher - Just a typo 😉
Lag on large maps
I'm not sure, but to me it looks like it's issue with the client. Probably whole map is being rendered even if only part is visible. I know browser is not perfect for huuuuge maps, but it would be awesome if it would deal with at least 6 layers of 100x100 tiles 😉
Chat sending messages twice
It's due to player.on('chat-message') listener in onJoinMap() hook - sometimes it occurs when character is teleported to the same map. In my case the reason was Title-screen, which causes character to connect and join the map before even signing in - i had to teleport character on each login to coordinates from database. Of course it's enough to put simple if, or move it to onConnect, but i bet sooner or later someone will have this issue again.
Not working on chrome
As soon as i'll replace default map with a custom made map, chrome stops rendering the game - GUI does work, console doesn't display any error. Maybe it's something wrong with my tilesets? Tried few, every time same story:
It's even weirder considering that both chrome and opera are chromium based o.0
There will be more, so please have a look from time to time. 🙂
I hope you're not getting nuts from my constant posts 😃 😃