Hey Java Programmers,
I have 0 knowledge of networking and i want to learn that. I have a program with 20 by 20 tiles now but i can make it bigger. And there is also a player, u can move it with WASD keys or the arrow keys. Now i want to put a server and database in the program.
What i want to do is:
1. Connect multiple clients to a server and let it be a multiplayer game so u see other people moving around.
2. Let the server handle the moving instead of the client to avoid hacking/making it harder.
3. Save the X and Y coördinates for the player so the next time he/she logs in the player will be on the last X and Y as when he or she logged out.
What is the best and most secure way to do this? Also if i save the X and Y every second in a database it will decrease the performance more than if i do it every 3 seconds, so what is the best way to fix that? Also how can i let the server handle moving because i know a lot of games can be hacked and increase the speed just with a simple program called Cheat Engine and making the program run faster or something like that. That doesnt need any hacking knowledge and a little kid can do it, How can i avoid that?
Thanks in advance,
Resantic