hello to all that read this Topic.
Just like all the people in this page i’m learning how to create games, and i have one simple question
Why you make the server and the client of this demo code in the same project?.
Based in the idea that is using best practices, is not better having the server with his calculations, communications between clients, and possible persistence in a project, and the client with all his graphical issues in another project.
I know maybe if you make it two different projects you are duplicating the code of the messaging part, and some parts of some objects (NPC, wordmap, player) i know DRY. Don’t Repeat Yourself.
But having in the same project it make that more easy to make a security problem, undetectable to the programmer, like… i don’t know sending all the info of your players (passwords, birthdates, realnames… etc) to all trying to send only the positions of the online players.