I was wondering if there was a way I could have a sort of world map and then close and reload it. I have already implemented a player,maps, collisions, and some other things. Should I just use clearSceneGraph? I would ideally have it so when a player collides with for example a gate a new map loads. Also, would anyone have an idea on how i could create some sort of multiplayer. I was thinking it would be fun to do a little old style mmo. Could I use gamequery for the client then something else for the server? Or could I use both? Think about Chrono Trigger/FF4 as a mmo. Thoughts and/or help?
The player leave the world map do go into an inside view, like the inside of a house
The player teleport into a new world
For the first one I would keep the wold map but hide it with .hide() then create the new inside view based on some alrea loaded animations.
For the second one I would do as you suggest and pause the game, display a loading screen, clear the scenegraph, load the new animations if needed, create the new tile-map and finally resume the game.
As for the multiplayer part I think the most obvious and backward compatible way is simply to use some sever-side array with all the players position. You would for example have a page that took the id and position of a player in the url arguments and return the list of all other players in json. For example: update.php?id=1232141&x=12.4&y=340.8 would return something like
The server side could be in any language you want but you won't be able to use gameQuery for it. Alternatively you could use WebSockets but older browser don't support it and that wouldn't make much sens for more than a few players.