Beispiel #1
0
 public void Draw(CoolFont spriteBatch)
 {
     if (this.sprites.Any() && this.lives > 0)
     {
         spriteBatch.Draw(this.sprites[this.lives - 1], this.rectangle, Color.White);
     }
 }
Beispiel #2
0
 protected override void LoadContent()
 {
     // FONTS
     this.spriteBatch      = new CoolFont(GraphicsDevice);
     this.fontDistInking   = Content.Load <SpriteFont>(@"Fonts\menuFont");
     this.characterFont    = Content.Load <SpriteFont>(@"Fonts\characterFont");
     this.guessingWordFont = Content.Load <SpriteFont>(@"Fonts\guessingWordFont");
 }
Beispiel #3
0
 public void Draw(CoolFont spriteBatch, SpriteFont spriteFont)
 {
     if (this.enabled)
     {
         spriteBatch.MuchCoolerFont(spriteFont,
                                    this.character.ToString(),
                                    new Vector2(this.rectangle.X + this.rectangle.Width * 0.35f, this.rectangle.Y + this.rectangle.Height * 0.3f),
                                    color, 0.6f);
     }
 }