Hello my name is Luccas and i'm new here, Well I make a pong game and i'm planning to put the game online to me and my friend play. and in the future and with a little time of job create a more complex thing like rooms and something like that.
Anyone can help me this is my code i'm using:
Code:
Movimentation:
If isup in Form1.DXInput1.States then
Form1.ClientSocket1.Socket.SendText('up');
Server
If ServerSocket1.Socket.ReceiveText = 'up' then
ServerSocket1.Socket.Connections[0].SendText('upok');
Client
If ClientSocket1.Socket.ReceiveText = 'upok' then
Sprt.Y:= Sprt.Y+10;
I'm Having problem in this code i dont Know what is going wrong someone could help me