Advertisement
Guest User

Score.cs

a guest
Feb 19th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. using Microsoft.Xna.Framework;
  2. using Microsoft.Xna.Framework.Graphics;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7.  
  8. namespace PingPong
  9. {
  10. public class Score
  11. {
  12. public int Score1;
  13. public int Score2;
  14.  
  15. private SpriteFont _font;
  16.  
  17. public Score(SpriteFont font)
  18. {
  19. _font = font;
  20. }
  21.  
  22. public void Draw(SpriteBatch spriteBatch)
  23. {
  24. spriteBatch.DrawString(_font, Score1.ToString(), new Vector2(320, 70), Color.White);
  25. spriteBatch.DrawString(_font, Score2.ToString(), new Vector2(430, 70), Color.White);
  26.  
  27. }
  28.  
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement