/so_game

Primary LanguageCMIT LicenseMIT

VideoGame (2 1 people)

Implement a distributed videogame

 Server side does the following
   TCP Part
   - registerning a new client when it comes online
   - deregistering a client when it goes offline
   - sending the map, when the client requests it
 - UDP part
   - the server receives preiodic upates from the client
     in the form of <timestamp, translational acceleration, rotational acceleration>
 Each "epoch" it integrates the messages from the clients,
 and sends back a state update
   - the server sends to each connected client
     the position of the agents around him

 Client side does the following
 - connects to the server (TCP)
 - requests the map, and gets an ID from the server (TCP)
 - receives udates on the state from the server

 - periodically
   - updates the viewer (provided)
   - reads either keyboard or joystick
   - sends the <UDP> packet of the control to the server