title: Cocos2d coordinate system
body: <p>in cocos2d, the coordinate system is pretty straightforward.. bottom left is (0,0).
  whenever i set the position of anything it's fine.</p>
  
  <p>lets say a layer is TouchEnabled.</p>
  
  <p>when im setting the position of my sprite, it's fine..</p>
  
  <pre><code>[crab setPosition:ccp(20, 50)];
  </code></pre>
  
  <p>but if i get the x and y coordinate of a touch (and assume i clicked on the sprite..):</p>
  
  <pre><code>- (void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
  {
      NSLog(@"Touches began!");
      NSArray *touchArray = [touches allObjects];
      UITouch *one = [touchArray objectAtIndex:0];
      pointOne = [one locationInView:[one view]];
      CCLOG(@"points are: %f and %f", pointOne.x, pointOne.y );
  }
  </code></pre>
  
  <p>the y coordinate is the opposite of what cocos2d's coordinate system suggests as the y increases from top to bottom !</p>
  
  <p>so im assuming the coordinate system of the view is different than mac's coord system.. which is quite counter intuitive.. is that correct?</p>
  
  <p>thanks !</p>