CHAPTER 8 ■ NETWORKING IN XNA 3.0
602
protected override void Update(GameTime gameTime)
{
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
this.Exit();
if (this.IsActive)
{
switch (currentGameState)
{
case GameState.SignIn:
{
if (Gamer.SignedInGamers.Count < 1)
{
Guide.ShowSignIn(1, false);
log.Add("Opened User SignIn Interface");
}
else
{
currentGameState = GameState.SignedIn;
log.Add(Gamer.SignedInGamers[0].Gamertag + " logged in - proceed to SignedIn");
}
}
break;
case GameState.SignedIn:
{
}
break;
}
}
base.Update(gameTime);
}
8-2. Create a Network Session
The Problem
You want to create a networking session so other Xbox 360 consoles, Zunes, or PCs can find
and join your session.
The Solution
One machine first needs ...