title: Java 2D Game - Checking if player touches another sprite
body: <p>I have a game of a rocket landing game, where the player is the rocket and you must land it safely at the right speed on the landing pad. This was taken from www.gametutorial.net</p>
  
  <p>Its actually for educational purposes and I recently added a still meteor in the game.
  When the player hits the meteor (touches) the game is over.</p>
  
  <pre><code>if(...) {
      playerRocket.crashed = true;
  }
  </code></pre>
  
  <p>My problem is there I need to replace the "..." with the actual condition that "Has the rocket crashed into the meteor?"</p>
  
  <p>Plus the following variables (coordinates, height and width) for use -
  [All Integers]:</p>
  
  <pre><code>X and Y coordinates: playerRocket.x, playerRocket.y, meteor.x, meteor.y
  Height and Width: playerRocket.rocketImgHeight, playerRocket.rocketImgWidth, meteor.meteorImgHeight, meteor.meteorImgWidth
  </code></pre>