I recently started coding a game with one of my friends and he is taking care of the front end and I am doing the back end.
I read many blogs/articles/tutorials on how the back end communicates with the client side and they all show different ways of doing this.
In our game the player can move his character by right clicking where they want to go. Does this mean the movement happens on the client side or should the client send a coordinate to the server and the server checks if its valid and responds with 'move_verified' which then allows the client side to carry out the action?
If this is the case how does collision take place because it will have many calculations and can cause major stress on the server. but doing it client side will make it vulnerable to malicious scripts.
The game needs to be in real time and 10 people will be playing simultaneously in a single match.I know the coords of all players have to be constantly sent to the client from the server so each player can see all players.
We are using Unity and socket.io. We successfully got communication with one another. But I just want to make sure I am on the right track before I start going deeper into the code.
I can show my code if its needed but its bare bones connections.
Thanks in advance!