|
Answer» I am working with a friend to make a web page based video game where he is going to do the artwork etc and I am going to do the programming and I hit a wall with saved game state information.
To keep the server from getting flooded I am trying to run the majority of the game logic at the users side and have the HTML content at the server side such as artwork etc.
I have a javascript that will take a user INPUT and save it to a cookie and greet the person the next time they GO to the game site, and where I am having difficulties is in scripting up a way so that the last saved game state saved in their local game cookie determines the page to load when they visit the site again.
Any suggestions? I can supply my code if needed. Just MAINLY stumped on having a script that reads in cookie content that then determines the APPROPRIATE page to load ( basically where they LEFT off in the game last.)
|