Hello, i have a few questions.
I have created a TCP server with socket selector and it supports multiple clients.
The game would be multiplayer only, 10 clients max.
-The question is should i make that the server runs the simulation and checks collision and then it
sends positions/moving direction to clients, and the clients sends moving directions and when they preform some action like shoot jump?
-One more thing, what part should be in another thread on server and on a client?
I tought about creating one thread for sending and one for receiving, both for server and client.
-PS. is there any difference between sending packets and char array?
Currently i am sending a char[] and it works ok, but i think packets would be a lot simpler.