我用SpriteHelper創建了一個Sprite Sheet。當我在spritehelper(通用應用程序)中創建背景時,圖片大小爲1920 x 1280.如何爲所有設備和所有屏幕創建背景?如何在所有屏幕中爲所有ios設備創建背景?
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的Retina 3.5英寸http://pixs.ru/showimage/Snimokekra_9096412_10672667.png
iPhone的Retina 4.0英寸http://pixs.ru/showimage/Snimokekra_81_10672678.png
誰可以幫我? 謝謝
iPad的http://pixs.ru/showimage/Snimokekra_6722907_10672708.png iPad的petina http://pixs.ru/showimage/Snimokekra_7539276_10672720.png – user3243304