Ios5 如何在ios中的cocos2dv3.x中设置两个不同的启动屏幕
我正在使用cocos2d 3.x和Xcode 5.1.1。我有两个图像image1.png和image2.png。在我的游戏中,我已经将默认图像(启动屏幕)更改为我的图像(image1.png)。在这里,我需要将image1.png显示2秒,将image2.png显示3秒,作为我游戏的初始屏幕…提前感谢..我就是这样做的(在iOS提供默认图像后淡入淡出徽标。我有一个SplashLogo类(场景)。这是我的启动场景,它挂上徽标,淡出,然后用我的游戏控制器将自己替换为运行场景Ios5 如何在ios中的cocos2dv3.x中设置两个不同的启动屏幕,ios5,cocos2d-iphone,cocos2d-iphone-3,Ios5,Cocos2d Iphone,Cocos2d Iphone 3,我正在使用cocos2d 3.x和Xcode 5.1.1。我有两个图像image1.png和image2.png。在我的游戏中,我已经将默认图像(启动屏幕)更改为我的图像(image1.png)。在这里,我需要将image1.png显示2秒,将image2.png显示3秒,作为我游戏的初始屏幕…提前感谢..我就是这样做的(在iOS提供默认图像后淡入淡出徽标。我有一个SplashLogo类(场景)。这是我的启动场景,它挂上徽标,淡出,然后用我的游戏控制器将自己替换为运行场景 - (void)onE
- (void)onEnter {
[super onEnter];
self.positionType = CCPositionTypePoints;
// todo : test this background seed, GL side effects, timing, etc ...
// [self performSelectorInBackground:@selector(seedGameSequencer) withObject:nil];
[self seedGameSequencer];
CCColor *color = [CCColor colorWithRed:0 green:0.f blue:0.f alpha:0.f];
CCNodeColor *black = [CCNodeColor nodeWithColor:color];
black.positionType = CCPositionTypePoints;
black.position = ccp(0, 0);
black.anchorPoint = ccp(0, 0); // bottom left
[self addChild:black];
[GESprite mediumPixelFormat];
CCSprite *logo = [CCSprite spriteWithImageNamed:@"maxPowerStudiosLogo.png"];
logo.positionType = CCPositionTypePoints;
logo.anchorPoint = ccp(.5, .5);
logo.opacity = 0;
logo.positionInPoints = ccp(black.contentSizeInPoints.width / 2, black.contentSizeInPoints.height / 2);
[GESprite defaultPixelFormat];
id fadein = [CCActionFadeIn actionWithDuration:3 * K_FADE_TIME];
id taponne = [CCActionDelay actionWithDuration:.95];
id fadeout = [CCActionFadeOut actionWithDuration:2 * K_FADE_TIME];
id swapSceneAction = [CCActionCallFunc actionWithTarget:self selector:@selector(swapScene)];
id seq = [CCActionSequence actions:fadein, taponne, fadeout, swapSceneAction, nil];
// add the label as a child to this Layer
[self addChild:logo];
[logo runAction:seq];
}
- (void)seedGameSequencer {
mainScene = [MPGameSequencer scene];
}
- (void)swapScene {
[[CCDirector sharedDirector] replaceScene:mainScene];
}
在AppDelegate中:
- (CCScene *)startScene {
// This method should return the very first scene to be run when your app starts.
return [SplashLogo scene];
}
哇,对于一个不清楚的问题,投了很多赞成票!什么是“第一个图像”到“第二个图像”到“启动屏幕”到“默认图像”……它们之间有什么联系吗???在什么情况下需要什么显示2秒,在什么情况下需要另一个纹理显示3秒?