Esempio n. 1
0
 public boolean hitWall(Wall w) {
   if (this.isLive() && this.getRect().intersects(w.getRect())) {
     this.live = false;
     return true;
   }
   return false;
 }