Ejemplo n.º 1
0
 // Check if player has hit a pipe
 public bool HitsPlayer(Bird that)
 {
     return(!(this.posX > (that.GetX() + that.GetSize()) ||
              this.posX + this.width < that.GetX() ||
              this.posY > that.GetY() + that.GetSize() ||
              this.posY + this.height < that.GetY()));
 }