Hyluss icon

[Monogame PingPong] Score

Hyluss | PRO | 10/30/18 01:28:19 PM UTC | 0 ⭐ | 567 👁️ | Never ⏰ | []
C# |

580 B

|

None

|

0 👍

/

0 👎

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
 
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);
        }
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎