title: Box Collision code
body: <p>My box collision code is not working.</p>
  
  <pre><code>bool checkCollide(int x, int y, int oWidth, int oHeight, int xTwo, int yTwo, int oTwoWidth, int oTwoHeight)
  {
     if (xTwo + oTwoWidth &lt; x) 
        return false;  // box 2 is left of box 1
  
     if (x + oWidth &lt; xTwo)
        return false;  // box 1 is left of box 2
  
     if (xTwo &gt; x + oWidth) 
        return false;  // box 2 is right of box 1
  
     if (x &gt; xTwo + oTwoWidth)
        return false;  // box 1 is right of box 2
  
  
     if (yTwo + oTwoHeight &lt; y) 
        return false;  // box 2 is up of box 1
  
     if (y + oHeight &lt; yTwo)
        return false;  // box 1 is up of box 2
  
     if (yTwo &gt; y + oHeight) 
        return false;  // box 2 is down of box 1
  
     if (y &gt; yTwo + oTwoHeight)
        return false;  // box 1 is down of box 2
  
     return true;
  }
  </code></pre>
  
  <p>On of my boxes is clearly going over the other, however nothing is happening.
  It seems to be returning false for some reason. I'm checking if one "rectangle" is out of bounds of the other, and if it isn't return true. Why isn't it working?</p>