Map System Engine
Posted: Sat Dec 28, 2013 9:46 pm
Hello guys!
I'm trying to create a global map like in travian or other browser rts games.
The problem is that I can't load the map fully like in one ajax call, cause it will take way too long.
Proly the best way(which I also saw some of the games do it) is to load a part of the map were the player's viewpoint is.
Once the player drags the map positions, an ajax call will take place with the current player's viewpoint coordinates and the call will return the next part of the map the player went to.
The big problem I have is that I don't have a solid idea on how to actually get the player's coordinates based on his viewpoint on the map.
Any ideas will be appreciated.
Thanks .
I'm trying to create a global map like in travian or other browser rts games.
The problem is that I can't load the map fully like in one ajax call, cause it will take way too long.
Proly the best way(which I also saw some of the games do it) is to load a part of the map were the player's viewpoint is.
Once the player drags the map positions, an ajax call will take place with the current player's viewpoint coordinates and the call will return the next part of the map the player went to.
The big problem I have is that I don't have a solid idea on how to actually get the player's coordinates based on his viewpoint on the map.
Any ideas will be appreciated.
Thanks .