public void IncrementScore() { ++TargetScore; scoreWooTimer = 0.2f; score.Text = TargetScore.ToString(); }
public override void Initialize(Microsoft.Xna.Framework.Content.ContentManager Content) { base.Initialize(Content); CreateFramesFromXML("misc_frames"); CurrentFrame = "donut"; ResetDimensions(); PosX = 0.368f * BaseGame.Get.BackBufferWidth; PosY = 0.34f * BaseGame.Get.BackBufferHeight; score = new MediaTextDrawer("ui/ui", "ui/ui_frames"); score.Initialize(Content); score.Handle = SpriteHandle.CENTERLEFT; score.Text = TargetScore.ToString(); UniformScale = ScaleFactor * 0.5f; }