Please refer to attachments for the download links. Edit: Can only attach 3 files per post, FML. I'll have to use freewebs links for the rest.
This is a series covering how to make a multiplayer TicTacToe game using a modified version of Bshivam's uploaded Chili DirectX Advanced Framework and a server solution starting from the attached solution for Tutorial 1.
Tutorial 1:
https://www.youtube.com/watch?v=PTd44IJ ... e=youtu.be
Tutorial 2:=Contents=
Loading up necessary sprite for buttons used in game.
Creating Main Screen
Creating Login Screen
Connecting to Server
https://www.youtube.com/watch?v=zECDpwX ... e=youtu.be
Server End Tutorial Link
http://www.freewebs.com/smurf-job/TicTa ... 0Final.rar
Client End Tutorial Link
http://www.freewebs.com/smurf-job/TicTa ... 0Final.rar
Tutorial 3:=Contents=
What the ClientThread/ServerThread are for and how they work
How tasks in each thread are updated
How to send a data struct that contains no strings
How to send a data struct that contains strings
How to receive a data struct that contains no strings
How to receive a data struct that contains strings
How the connection objects are handled
Add game lobby screen
Add create game screen
Add creating a game request
Fix PindroughtNetwork::DisconnectUser function
https://www.youtube.com/watch?v=QjnW2oR ... e=youtu.be
Server End Tutorial Link
http://www.freewebs.com/smurf-job/TicTa ... 0Final.rar
Client End Tutorial Link
http://www.freewebs.com/smurf-job/TicTa ... 0Final.rar
Note: I forgot to mention to add the following code in the Client Thread where a game lobby is being updated. It has been added in the uploaded source.
Code: Select all
if (MyGamePtr->SelectedServer == GameLobbyToUpdate.LobbyID) //If game being removed is selected server
{
MyGamePtr->SelectedServer = -1; //Set selected server back to -1
}
Tutorial 4:=Contents=
Create game lobby struct server side
Add accepting & processing Create game Request from server
Add DeclineCreateGame // AcceptedCreatedGame packets to be accepted in the client thread
Add In game screen to client
Add Game list being sent from server to client
Add game browser being populated in client
Add joining games on both server/client
Add leaving games/disconnecting from game
Add cleanup of game lobby code
Part [1/2]
https://www.youtube.com/watch?v=5h8lrm7kY70
Part [2/]2
[Video In Progress]
Server End Project Download Link
http://www.freewebs.com/smurf-job/TicTa ... ut4End.rar
Client End Project Download Link
http://www.freewebs.com/smurf-job/TicTa ... ut4End.rar
Tutorial 5:=Contents=
[1/2]
Add chat
Add message when player joins/leaves your game
[2/2]
Add sending X/O packets from client to server and server to client
Add checking if someone won and send message if a player won
Add start new game if a game has ended
[In Progress]
=Contents=
Overview of how this is all working
Review of SendData functions
Review of ReceiveData functions
Review of GetIntPacket function
Creating more complicated packets to send between the server and client
Manually sending a receiving a string - How it works
Review of the ReceiveDataWithStrings func
Review of the SendDataWithStrings func