Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Graphics;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace PingPong
- {
- public class Score
- {
- public int Score1;
- public int Score2;
- private SpriteFont _font;
- public Score(SpriteFont font)
- {
- _font = font;
- }
- public void Draw(SpriteBatch spriteBatch)
- {
- spriteBatch.DrawString(_font, Score1.ToString(), new Vector2(320, 70), Color.White);
- spriteBatch.DrawString(_font, Score2.ToString(), new Vector2(430, 70), Color.White);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement