コード例 #1
0
 public override void Draw(GameTime gameTime)
 {
     GestionSprite.Begin();
     AfficherRessourceBois("Bois: " + NbBois.ToString());
     AfficherRessourceOr("Or: " + NbOr.ToString());
     AfficherRessourcePoints("Points: " + NbPts.ToString());
     GestionSprite.End();
     Game.GraphicsDevice.BlendState        = BlendState.Opaque;
     Game.GraphicsDevice.DepthStencilState = DepthStencilState.Default;
     Game.GraphicsDevice.SamplerStates[0]  = SamplerState.LinearWrap;
 }
コード例 #2
0
 public void LosePoint()
 {
     NbPts--;
     UIPlayerManager.AnimPts(NbPts.ToString(), true);
 }
コード例 #3
0
 public void AddPoint()
 {
     NbPts++;
     UIPlayerManager.AnimPts(NbPts.ToString(), false);
 }