Exemple #1
0
        /// <summary>
        /// Draws the brain boss on-screen
        /// </summary>
        /// <param name="elapsedTime">The elapsed time between the previous and current frame</param>
        /// <param name="spriteBatch">An already-initialized SpriteBatch, ready for Draw() commands</param>
        public override void Draw(float elapsedTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(brainSpritesheet, position, brainSpriteBounds, tintColor);
            spriteBatch.Draw(psiOrbSpritesheet, position + psiOrbOffset, psiOrbBounds, tintColor, (float)(rand.NextDouble() * Math.PI * 2), psiOrbOrigin, 1, SpriteEffects.None, 1);

            psiEmitter.Draw2(elapsedTime, spriteBatch);
        }