我用SpriteHelper创建了Sprite Sheet。当我在spritehelper中创建背景时,图片大小为1920 x 1280.如何在所有屏幕中为所有设备制作背景。
CGSize winSize = [CCDirector sharedDirector].winSize;
CCSpriteBatchNode *sprites_for_game;
sprites_for_game = [CCSpriteBatchNode batchNodeWithFile:@"sprite_UntitledSheet.png"];
[[CCSpriteFrameCache sharedSpriteFrameCache]addSpriteFramesWithFile:@"sprite_UntitledSheet.plist"];
[self addChild:sprites_for_game];
CCSprite *sprite = [CCSprite spriteWithSpriteFrameName:@"background"];
sprite.position = ccp(winSize.width/2,winSize.height/2);
[sprites_for_game addChild:sprite];
iphone petina 3.5英寸 http://pixs.ru/showimage/Snimokekra_9096412_10672667.png
iphone petina 4.0英寸 http://pixs.ru/showimage/Snimokekra_8101239_10672678.png