Beispiel #1
0
 public virtual void Draw()
 {
     if (Texture != null)
     {
         SpriteBatch.Draw(Texture, Position, Color.WhiteSmoke);
     }
     else if (Animation != null)
     {
         Animation.Draw();
     }
 }
Beispiel #2
0
 public void Draw(SpriteBatch spriteBatch)
 {
     // draw the animation
     EnemyAnimation.Draw(spriteBatch);
 }
Beispiel #3
0
 public void Draw(SpriteBatch spriteBatch)
 {
     PlayerAnimation.Draw(spriteBatch);
 }
Beispiel #4
0
 public void Draw(SpriteBatch spriteBatch)
 {
     BulletAnimation.Draw(spriteBatch);
 }