public override void Draw(GameTime gameTime, object param)
 {
     background.Draw(gameTime, param as SpriteBatch);
     foreach (Button button in buttons)
     {
         button.Draw(gameTime, param as SpriteBatch);
     }
 }
Esempio n. 2
0
        public override void Draw(GameTime gameTime, object param)
        {
            base.Draw(gameTime, param);
            map.Draw(gameTime, param);
            pause.Draw(gameTime, param);
            characters.Draw(gameTime, param);

            SpriteBatch spriteBatch = param as SpriteBatch;

            catHead.Draw(gameTime, spriteBatch);
            dogHead.Draw(gameTime, spriteBatch);
            spriteBatch.DrawString(Global.gDefaultMediumFont, score, new Vector2(positionScore, 0), Color.FromNonPremultiplied(206, 235, 12, 255), 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.1f);
        }
Esempio n. 3
0
 public override void Draw(Microsoft.Xna.Framework.GameTime gameTime, object param)
 {
     base.Draw(gameTime, param);
     logo.Draw(gameTime, param as SpriteBatch);
 }