r/Battle_Stations • u/AppDevResearch • Apr 19 '13
Multiplayer Development
I'm currently working on local (wi-fi and bluetooth) multi-device multiplayer.
So far everything seems to be fairly straight forward. Fingers crossed. :)
Currently have it rolling a random number on start, to determine the player. Then the first player generates the level, caches positions, velocities, etc, and sends it over. Next step is to assemble the level with the new data once received!
1
1
u/Battle_Stations Apr 21 '13
Player Objects now correctly update/create/delete as needed, after receiving a game update packet. Should be simple to reuse for all other game objects.
I also have events for aiming and moving, which now stream nicely from one device to another.
So at this point, the game (at it's most basic level) now has functional local multiplayer. :D
1
u/Battle_Stations Apr 20 '13
The data now sends / receives properly. Players are now reproduced in their proper locations. Next I'm going to add network call spam to in-game touch and see what kind of latency I'm really getting.