Le mode multijoueur
CHAPITRE 11
245
public Chapitre11_3()
{
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
}
protected override void Initialize()
{
viewA.Width = 100;
viewA.Height = 100;
viewA.X = 50;
viewB.Width = 300;
viewB.Height = 100;
viewB.X = 250;
viewB.Y = 100;
base.Initialize();
}
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
GraphicsDevice.Viewport = viewA;
GraphicsDevice.Clear(Color.Yellow);
GraphicsDevice.Viewport = viewB;
GraphicsDevice.Clear(Color.Green);
base.Draw(gameTime);
}
}
Figure 11-5
Les vues se placent où vous le voulez
=Labat FM.book Page 245 Vendredi, 19. juin 2009 4:01 16
CHAPITRE 11
245
public Chapitre11_3()
{
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
}
protected override void Initialize()
{
viewA.Width = 100;
viewA.Height = 100;
viewA.X = 50;
viewB.Width = 300;
viewB.Height = 100;
viewB.X = 250;
viewB.Y = 100;
base.Initialize();
}
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
GraphicsDevice.Viewport = viewA;
GraphicsDevice.Clear(Color.Yellow);
GraphicsDevice.Viewport = viewB;
GraphicsDevice.Clear(Color.Green);
base.Draw(gameTime);
}
}
Figure 11-5
Les vues se placent où vous le voulez
=Labat FM.book Page 245 Vendredi, 19. juin 2009 4:01 16
