public override void Draw(GameTime gameTime) { Global.SpriteBatch.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, RasterizerState.CullCounterClockwise, null, Matrix.CreateScale(Global.BoardScaleH, Global.BoardScaleV, 1f)); spriteBoard.Draw(gameTime); for (int i = 0; i < 9; ++i) { if (TripleTriadGame.Elements[i] != TripleTriadCardLib.Element.None) { Global.SpriteBatch.Draw(TripleTriadCardLib.Elements, new Vector2(118 + 64 * (i % 3), 39.5f + 64 * (i / 3)), TripleTriadCardLib.ElementRect[(int)TripleTriadGame.Elements[i] - 1], new Color(160, 160, 160, 160), 0, Vector2.Zero, 1f, SpriteEffects.None, 0.001f); } } foreach (VisibleEntity entity in _SceneEntities) { entity.Draw(gameTime); } Global.SpriteBatch.Draw(TripleTriadCardLib.Scores, _ScorePos[0], TripleTriadCardLib.ScoreRect[TripleTriadGame.P1Score - 1], Color.White, 0, Vector2.Zero, 1f, SpriteEffects.None, 0.99f); Global.SpriteBatch.Draw(TripleTriadCardLib.Scores, _ScorePos[1], TripleTriadCardLib.ScoreRect[10 - TripleTriadGame.P1Score - 1], Color.White, 0, Vector2.Zero, 1f, SpriteEffects.None, 0.99f); Global.SpriteBatch.End(); Global.SpriteBatch.Begin(); foreach (Sprite text in _ScreenText) { text.Draw(gameTime); } _HelpWindow.Draw(gameTime); Global.SpriteBatch.End(); Global.MouseManager.DrawMouseCursor(gameTime); }
public override void Draw(GameTime gameTime) { Global.SpriteBatch.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, RasterizerState.CullCounterClockwise, null, Matrix.CreateScale(Global.BoardScaleH, Global.BoardScaleV, 1f)); background.Draw(gameTime); Global.SpriteBatch.End(); Global.SpriteBatch.Begin(); _RuleWindow.Draw(gameTime); _HelpWindow.Draw(gameTime); Global.SpriteBatch.End(); }