I’ve been thinking about a bunch of different things over the past few days and I ended up with two questions to ask about how to code multiplayer (online) games:
1.) When coding a multiplayer game should you create a server.jar that would have all of the important classes that do the damage calculations, movement of players, collision detection etc… and then just have a client.jar that would send information to the server and then get back the damage, where the player can move, etc… or is there a better way to do it? (I’m just thinking about how this would work, I’m not actually making anything like this atm.)
2.) Say, for example, you had a game with multiple different players with different characters that have different stats and say each player is looking at a menu that displays all of their stats. Would having the client (player) sending a request to the server for the stat information to display be an acceptable way to get the information or would it be better for the stat information to be located in an encrypted file on the client’s computer where it would be updated by the server if the stats change or is there a better way to do this?
Thank’s in advance for any replies.