Пример #1
0
        public override void Draw(GameTime gameTime)
        {
            spriteBatch.Begin();
            background.Draw(gameTime);

            Vector2 size = GameManager.Instance.font.MeasureString(ImagesToFind.ToString());
            Vector2 pos  = new Vector2(backgroundArea.Center.X - size.X / 2, backgroundArea.Center.Y - size.Y / 2);

            spriteBatch.DrawString(GameManager.Instance.font, ImagesToFind.ToString(), pos, Color.White);
            //spriteBatch.Draw();
            spriteBatch.End();
            base.Draw(gameTime);
        }
Пример #2
0
        public override void Draw(GameTime gameTime)
        {
            //spriteBatch.Begin();
            topAreaOverlay.Draw(gameTime);
            bottomAreaOverlay.Draw(gameTime);

            //Vector2 size = GameManager.Instance.font.MeasureString("SCORE: "+Scoring.Score+"                  COMBO:"+Scoring.Combo+"x");
            //Vector2 pos = new Vector2(backgroundArea.Center.X - size.X / 2, backgroundArea.Center.Y - size.Y / 2);
            //spriteBatch.DrawString(GameManager.Instance.font, "SCORE: " + Scoring.Score + "                  COMBO:" + Scoring.Combo + "x", pos, Color.White);
            //spriteBatch.Draw();
            //spriteBatch.End();

            base.Draw(gameTime);
        }