CGSize screenSize = [CCDirector sharedDirector].winSize;
CGPoint lowerLeftCorner = CGPointMake(0, 0);
CGPoint lowerRightCorner = CGPointMake(screenSize.width, 0);
CGPoint upperLeftCorner = CGPointMake(0, screenSize.height);
CGPoint upperRightCorner = CGPointMake(screenSize.width, screenSize.height);
How does one make that in landscape mode on Sparrow? (That above is from Cocos)
I use
cpVect lowerLeft = cpv(0,0);
cpVect lowerRight = cpv(320, 0);
cpVect upperRight = cpv(320,480);
cpVect upperleft = cpv(0,480);
But it seems to work, but I don't really like writing the numbers like that.
Also, it doesn't seem right that upperleft is 0,480