public override void Draw(SharpDrawBatch batch, GameTime time)
        {
            var screenSize = Resolution.VirtualScreen;

            batch.Draw(this.text, new Rectangle(0, 0, (int)screenSize.X, (int)screenSize.Y), this.color * this.transparency);
            base.Draw(batch, time);
        }
Exemple #2
0
        public override void Draw(SharpDrawBatch batch, GameTime time)
        {
            this.UpdateDirection();

            this.UpdateSpritesheets();

            base.Draw(batch, time);
        }
Exemple #3
0
        public override void Draw(SharpDrawBatch batch, GameTime time)
        {
            base.Draw(batch, time);

            var screen = Resolution.VirtualScreen;
            var perc   = 1f - (this.animHealth / 100f);

            batch.Draw(this.text, new Rectangle(0, 0, (int)screen.X, (int)screen.Y), Color.DarkRed * perc * .7f);
        }