UDP data going back and forth

This commit is contained in:
2023-07-06 00:22:59 +01:00
parent 72009e5c4b
commit a08dc7f2a6
4 changed files with 51 additions and 62 deletions

View File

@ -11,6 +11,7 @@ struct clientMovement
struct clientInput
{
int clientNumber;
bool left, right, up, down;
};
@ -26,7 +27,7 @@ struct networkThreadArguments
struct gameState * state;
};
void updateInput(struct gameState * state, struct clientInput * message, struct sockaddr_in * address, int * clientSockets);
void updateInput(struct gameState * state, struct clientInput * message);
void doGameTick(struct gameState * state);