Say I'm sending data about a spaceship in an asteroids-like game. I want to send from the host to the client the X, Y, Speed, and Direction of the ship. This seems like only a little bit of data for a UDP packet. So, how would I go about sending it all packed together neatly?
I'm having a suspicion that I might need to put all the data into a string, and then have the client convert it back into its proper form. Is there a better method then this?
I'm having a suspicion that I might need to put all the data into a string, and then have the client convert it back into its proper form. Is there a better method then this?