Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent server #10

Open
sashman opened this issue Oct 29, 2013 · 0 comments
Open

Persistent server #10

sashman opened this issue Oct 29, 2013 · 0 comments

Comments

@sashman
Copy link
Owner

sashman commented Oct 29, 2013

Background

The game only stores the session on the client side. There needs to be a persistent state of the world.

What needs to be done

Store client data (per IP address) on the server. When a client reconnects, read the data in and load it.

How to do it

When a client first joins, create a new file for storing position. Write to the file periodically, and when the player disconnects. If a player joins and a corresponding IP data file is present, use the data (position) for initialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant