Platform SDK: DirectX |
This topic pertains only to application development in C++. See DirectPlay Visual Basic Samples.
The StagedConnect sample is a more advanced version of the ChatConnect and SimpleConnect samples. Here the session begins in a staging area where the host can limit the number of players, reject players, and start the game. The staging area also allows players to chat or drop out before the game begins.
Source: (SDK root)\Samples\Multimedia\DPlay\Src\StagedConnect
Executable: (SDK root)\Samples\Multimedia\DPlay\Bin\StagedConnect.exe
Enter the player's name, and select a connection type or "Wait for Lobby Connection" from the list. In the Multiplayer Games dialog, start a new session by clicking Create, or else click Start Search to find active sessions, then join one by highlighting it and clicking Join.
In the staging area, select the checkbox next to your name if you are ready to join the session. Send a chat message to other players in the staging area by typing a message in the lower text box and pressing Enter.
The host can close slots or reject a player in a slot by clicking on the button for that slot, and can start play by clicking Start Game. The game can only be started when all players are ready.
The sample illustrates how a staging area can be set up within an application session rather than a lobby session.