pintee Posted May 5, 2013 Share Posted May 5, 2013 Hello everyone, I am making a text based browser rpg and I've stumbled into a bit of a problem and am not sure how to proceed. How do you keep consistency across multiple instances of the game running at the same time?? For example.... Say a user is playing the game in one window. He/She is presented with the hyperlink "Open Blue Door" which will load a new screen of the game. Say the user opens that link in a new window. There will now be two instances of the game running, and it would be possible to play the game along one storyline in one window and play the game along another completely seperate storyline in the other window. In other words, there would be two instances of the game running at the same time and they would be inconsistent. Or another example is if a user is in the middle of a game, opens a new window, goes to the website and hits play, it should go directly to where the user is in the other window and not start a new game. I apologise if this is a noob question and thank you for your time in advance. Quote Link to comment Share on other sites More sharing options...
ignace Posted May 5, 2013 Share Posted May 5, 2013 (edited) Store the player's progress in a session that way when he would take separate routes (between tabs/windows) you can detect he did and act upon it. The same goes for when he would open a new window. You can also store his progress in the database. Edited May 5, 2013 by ignace Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.