MirceaDumitrescu / javascript-webgame

0 stars 0 forks source link

Zoom system refactor #7

Open MirceaDumitrescu opened 2 years ago

MirceaDumitrescu commented 2 years ago

Currently the way the game is design is not optimized for such changes.

The problem appears when player is far away from spawn point and the map gets zoomed out/in. The players gets teleported since its not synced with the map position.

The entire sistem needs a refactor because i have no idea how to sync it as it is. We must give the players a True Position on the map that gets stored somewhere. So if the user logs out and logs back in, he will always be in that position.