I'm working on a 2-player SNAP Mobile game for the first time here and I have a question regarding sending game messages:
Upon initialising gameplay, I have to initialise some random map/terrain coordinates of my game. Because of the random values, I have to ensure that both clients have the same values.
If that's the case, I'm thinking of having the leader of the game room doing this initialisation and having the opponent to standardise. How then can I pass these values to my opponent?
1. sendBuddyMessage - sending these values directly to him? like when issuing a game challenge? is this possible?
2. sendGamePacket - sending a game packet to server? this requires me to pass in a byte array. what if i have a large array of integer values? is this method feasible for me?
appreciate any kind of help or comments here, thanks!