Beispiel #1
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (health > 0)
     {
         if (!beenHit && !attacking)
         {
             moveSprite.Draw(gameTime, spriteBatch, camera);
         }
         else if (beenHit)
         {
             hitSprite.Draw(gameTime, spriteBatch, camera);
         }
         else if (attacking)
         {
             attackSprite.Draw(gameTime, spriteBatch, camera);
         }
         floatDamage.Draw(spriteBatch, camera.Position);
     }
     else
     {
         deathSprite.Draw(gameTime, spriteBatch, camera);
     }
 }
Beispiel #2
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     floatDamage.Draw(spriteBatch, camera.Position);
 }