Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

The Answer

Sign in to follow this  


Upon further investigation, The Answer is an XMLHTTPRequest object.

What that means, however, is that there needs to be a back end.

Which is not really a problem. A single page that does the server side saving and loading stuff is not a problem.

I still plan on serializing to JSON strings, so that's what'll be posted to the backend.

Now the only snag is some sort of user identification system, and I want this to be as transparent as possible for the casual user(meaning I don't want the user to have to sign up for an account, supply a password, and blah blah blah) because a big "sign up for an account, verify your email, double enter password" should not interfere with a player's experience. He should just be able to call up the page on his computer, and continue where he left off.

But by the same token, I want the user to be able to continue his game on any computer, so the user should be able to modify his/her account and log in/off the system, but joe user should just have a no-frills game account created automagically just by visiting the page.

So, the plan:

I. The user navigates to the page.
II. The script checks for cookies that contain user id and password.
III. If id/pwd found:
A. use xmlhttprequest to validate user.
B. if validated:
1. load game
2. play
C. if not validated:
1. indicate error to user
2. create new game
3. play
IV. If id/pwd not found
A. xmlhttprequest to create new id/random pwd
B. save id/pwd as cookie
C. create new game
D. play

If the player wishes to log in as a different user, there will be a menu item that will take him to a form in which he may do so.

Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!