Beispiel #1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     if (Active)
     {
         PlayerAnimation.Draw(spriteBatch);
     }
 }
Beispiel #2
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            // TODO: Add your drawing code here
            // Start drawing
            spriteBatch.Begin();

            spriteBatch.Draw(mainBackground, Vector2.Zero, Color.White);

            // Draw the moving background
            bgLayer1.Draw(spriteBatch);
            bgLayer2.Draw(spriteBatch);
            // Draw the Enemies
            for (int i = 0; i < enemies.Count; i++)
            {
                enemies[i].Draw(spriteBatch);
            }


            // Draw the Player
            player.Draw(spriteBatch);
            // Stop drawing

            explosionAnim.Draw(spriteBatch);

            spriteBatch.End();


            base.Draw(gameTime);
        }
Beispiel #3
0
 public void Draw(SpriteBatch spriteBatch)
 {
     if (Active == true) //added by me
     {
         PlayerAnimation.Draw(spriteBatch);
     }
 }
Beispiel #4
0
 public void Draw(SpriteBatch spriteBatch)
 {
     if (Active)
     {
         // Draw the animation
         EnemyAnimation.Draw(spriteBatch);
     }
 }
Beispiel #5
0
 public void Draw(SpriteBatch spriteBatch)
 {
     // Draw the animation
     PowerUpAnimation.Draw(spriteBatch);
 }
Beispiel #6
0
 public void Draw(SpriteBatch spriteBatch)
 {
     explosionAnimation.Draw(spriteBatch);
 }
Beispiel #7
0
 public void Draw(SpriteBatch spriteBatch)
 {
     //draw enemy animation.
     EnemyAnimation.Draw(spriteBatch);
 }
Beispiel #8
0
 public override void Draw(SpriteBatch sb)
 {
     animation.Draw(sb);
 }
Beispiel #9
0
 public void Draw(SpriteBatch spriteBatch)
 {
     Animation.Draw(spriteBatch);
 }
Beispiel #10
0
 public void Draw(SpriteBatch spriteBatch)
 {
     //Draw animation
     EnemyAnimation.Draw(spriteBatch);
 }
Beispiel #11
0
 // Draw the player
 public void Draw(SpriteBatch spriteBatch, float rotation)
 {
     PlayerAnimation.Draw(spriteBatch, rotation);
 }
Beispiel #12
0
 public void Draw(SpriteBatch spriteBatch)
 {
     LazorBeamAnimation.Draw(spriteBatch);
 }