Friday, June 1, 2012

Coordinate Differences When Using Cocos2D

The regular iPhone 2D API has the screen origin at the top-left of the screen, and every sprite's x,y position is at the top/left of the sprite.

In Cocos2D, which is based on OpenGL ES, the screen origin is at the bottom-left of the screen, and every sprite's x,y position is in the middle of the sprite.

No comments:

Post a Comment