Mithrandel
02-13-2002, 08:30 PM
Alright. I've begun programming this very basic, tile-based, 2D multiplayer RPG, in which up to 100 people can connect to a central server, and thus, play with each other.
But while the server/client structure has already been programmed... I'm not sure where to go from here. Rather, I'm not sure what sort of variables the server and client should be exchanging, and how often.
Right now, I have it set up so that whenever a player types a message, the server recieves it and sends it out to all the intended recipients. But what should I do if a player moves? Should I send a string to the server telling it "Player.11 moves 1 square north"? And how often should the server send data to the player clients? Every time someone moves? Or once every second? Or something else...
Gah... so... confused. Some help would be appreciated. :)
But while the server/client structure has already been programmed... I'm not sure where to go from here. Rather, I'm not sure what sort of variables the server and client should be exchanging, and how often.
Right now, I have it set up so that whenever a player types a message, the server recieves it and sends it out to all the intended recipients. But what should I do if a player moves? Should I send a string to the server telling it "Player.11 moves 1 square north"? And how often should the server send data to the player clients? Every time someone moves? Or once every second? Or something else...
Gah... so... confused. Some help would be appreciated. :)