I have a game developed in C++ (it's an Arkanoid clone), and I have to add multiplayer to the game.
It's a simple multiplayer feature, 2 players only, local network only, you ask for the host IP and start the game.
It must be done in plain C++ using sockets, may use a lib, like RakNet or WinSock.
It's nothing big and should be easy for anyone with Sockets knowledge in C++.
- When start the game, ask if single player or multiplayer, if singleplayer is selected, play as it is now;
- If multiplayer is selected, ask if you want to join or host a game;
- If join is selected, ask for the host IP then connect, if host is selected, show your local IP, and wait for the connection.
- Then play the game as it is now, but with 2 "bases"