public override void Draw(Game.Graphics.TGPASpriteBatch spriteBatch, Texture2D texture)
            {
                double tmpRotation = this.rotation;

                this.rotation = this.visualRotation;

                base.Draw(spriteBatch, texture);

                this.rotation = tmpRotation;
            }
Esempio n. 2
0
        public override void Draw(Game.Graphics.TGPASpriteBatch spriteBatch, Texture2D texture)
        {
            Color c = Color.White;

            if (IsHit)
            {
                c          = Color.Red;
                this.IsHit = false;
            }

            spriteBatch.Draw(texture, dRect, sRect, c * alphaColor, -(float)rotation, spriteOrigin, this.flips, 1.0f);
        }