So for the past few days I have been trying to let players communicate with each other in my game. and today I finally did it.

So how it works? Well all the clients connect to the server and when client 1 type “Hello ” in the chat box, The client put that data into a packet and send it to the server. Then the server receive that packet from client 1 and will send it to all the connected clients.

Also my client use multithreading. 1 thread for the game loop and another thread for networking.

here is the video:-

enjoy šŸ™‚