App Hub

코드 샘플 세부 정보

Network Architecture: Peer-to-Peer

제출됨
2007-12-17
코드 샘플

Description:

This sample implements a simple multiplayer network session by using a peer-to-peer network topology in which each computer is responsible for updating the state of its locally controlled players.


Sample Overview

This sample shows how to create and join network sessions, and how to exchange data using a peer-to-peer network topology. Each player controls a tank, which they can drive around the screen while rotating the turret. The game simulation is distributed over all the computers in the session, with each computer being responsible for updating the tanks belonging to its local players.

For an alternative way to handle networked game simulation, see the Client/Server sample, which implements the same tank movement by using a client/server network topology.



All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).

다운로드

프레임워크

GS 4.0

프레임워크

GS 3.1

교육 콘텐츠 찾기
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG