1 / 10

Ultimate Tanks

Ultimate Tanks. Paul Solt and Ines Pavon Data Communication and networks I Professor Kaminsky Monday, February 18 th , 2008. Game Description. Simplified tank game: move and shoot Top down view Open ended game Multi-player Multi-session. Application Protocol.

mahola
Download Presentation

Ultimate Tanks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ultimate Tanks Paul Solt and Ines Pavon Data Communication and networks I Professor Kaminsky Monday, February 18th, 2008

  2. Game Description • Simplified tank game: move and shoot • Top down view • Open ended game • Multi-player • Multi-session

  3. Application Protocol • Client asks to join session using tank name • Server acknowledges request • Client then asks to move, shoot , or quit • Server confirms each of those requests and analyzes consequences • If a tank gets shot it disappears from the screen before respawning • If a tank tries to move off the board • If a tank destroys other tank, update score

  4. Message Encoding • TCP for transport layer • Binary encoding • [opcode (1 byte)] [variable length message] • Opcodes 1-13 • Error message if opcode not recognized

  5. Client Program Design • Client interface to define behavior • Client main program • Implements client interface • Link to UI • Application logic on client side • Client proxy factory • Provides connection between server session and client proxy • Client proxy • Implements client interface • Communicates with server proxy

  6. Server Program Design • Server interface to define behavior • Server adapter • Acts as initial link between client proxy and server session • Server session map • Keeps track of server sessions that are available • Server session • Game logic on server side • Server proxy • Communicates with client proxy

  7. Ultimate Tanks Design

  8. Client Requests to Join

  9. User Hits “Move” Key

  10. Live Demo • Part I: • One server session • Two or more tanks playing game • Part II: • Two or more server sessions • Two ore more tanks playing in each session

More Related