The objective of this section is to implement what we have learned in the previous sections. We simply want to implement a spectator player, a player who simply launches our game can only view it. This simple implementation is a good start for the complete multiplayer game implementation.
Let's first understand the data that we need to communicate to our spectator client. In our game, currently we have nearly all static assets, except camera, bullets, and grenade. Also, the location/direction of bullet and grenade are derived from the camera location. So, all we need to communicate to the other client is: