Esempio n. 1
0
        public static void DrawGlow(ISpinningBladeMinion self, SpriteBatch spriteBatch)
        {
            Vector2   pos     = self.projectile.Center;
            Texture2D texture = GetTexture(self.Texture + "_Glow");
            Rectangle bounds  = texture.Bounds;
            Vector2   origin  = new Vector2(bounds.Width / 2, bounds.Height / 2);

            spriteBatch.Draw(texture, pos - Main.screenPosition,
                             bounds, Color.White, 0,
                             origin, 1, 0, 0);
        }
Esempio n. 2
0
        public static void DrawBlade(ISpinningBladeMinion self, SpriteBatch spriteBatch, Color lightColor, float rotation)
        {
            Vector2   pos     = self.projectile.Center;
            Texture2D texture = GetTexture(self.Texture);
            Rectangle bounds  = texture.Bounds;
            Vector2   origin  = new Vector2(bounds.Width / 2, bounds.Height / 2);

            spriteBatch.Draw(texture, pos - Main.screenPosition,
                             bounds, lightColor, rotation,
                             origin, 1, 0, 0);
        }