Example #1
0
 public void Update(GameTime gameTime)
 {
     FireballPhysics.Update(gameTime);
     if (FireballPhysics.OutOfBoundary)
     {
         Dead = true;
     }
 }
Example #2
0
 public void Shoot(bool faceRight)
 {
     if (faceRight)
     {
         FireballPhysics.MoveRight();
     }
     else
     {
         FireballPhysics.MoveLeft();
     }
 }
Example #3
0
 public Fireball(bool faceRight, Vector2 Position)
 {
     Dead            = false;
     FireballPhysics = new FireballPhysics(Position);
     if (faceRight)
     {
         sprite = PropFactory.Instance.CreateFireballRight();
     }
     else
     {
         sprite = PropFactory.Instance.CreateFireballLeft();
     }
     Shoot(faceRight);
 }