I use the Sapus Tongue source code and it comes with two startup screens which are essentially identical: one is Default.png and the other is the same image content as Default.png. Default.png is just rotated by 90 degrees so that users already turn their iPhone to landscape view when the app is starting. It bothered me to have the same two images in my project when i could do with just one of these, saving another 15-50 KB of App size plus not loading another 512×512 texture should also speed up loading times a little.
So i came up with a solution to get rid of the requirement of having the two images for cocos2d landscape apps or games. That solution is pretty simple actually: i simply load the already existing Default.png in the first “runWithScene” Cocos Node and rotate it by 90 degrees and offset the position. Et voila, you can remove the additional image from your project and save another 15 to 50 KB plus saving some memory as you won’t be loading another 512×512 texture when the screen transitions from Default.png to the first “runWithScene” CCLayer.
CCSprite *background = [CCSprite spriteWithFile:@"Default.png"];
background.rotation = -90;
background.position = CGPointMake(480, 0);
background.anchorPoint = CGPointZero;
[self addChild:background];
I hope someone finds this useful.









Gaming Horror - stay a while, stayyy forever!






Thanks. I’ll use it in the next version of Sapus.
Glad i could help!
… aaand thanks for putting it in the Source Release for today. That was quick!