public void Update(GameTime gameTime) { FireballPhysics.Update(gameTime); if (FireballPhysics.OutOfBoundary) { Dead = true; } }
public void Shoot(bool faceRight) { if (faceRight) { FireballPhysics.MoveRight(); } else { FireballPhysics.MoveLeft(); } }
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); }