Пример #1
0
 /// <summary>
 /// Checks to see if the player has collided with the given target.
 /// </summary>
 /// <param name="target"></param>
 /// <returns></returns>
 public bool CheckPlayersCollision(Target target)
 {
     Rectangle overlap = Rectangle.Intersect(Bound, target.GetBound());
     return !overlap.IsEmpty;
 }