首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

iphone-cocos2d中Scene应用

2012-09-04 
iphone-cocos2d中Scene使用?在应用程序启动的方法:- (void) applicationDidFinishLaunching:(UIApplicatio

iphone-cocos2d中Scene使用

?

在应用程序启动的方法:

- (void) applicationDidFinishLaunching:(UIApplication*)application

[[CCDirector sharedDirector] runWithScene: [HelloWorld scene]];?

?来加载一个场景,替换场景使用:

???[[CCDirector sharedDirector] replaceScene: [SomeOtherScene scene]];

?

?使用动画方式来替换场景:

??[[CCDirector sharedDirector] replaceScene:

 [CCTransitionFade transitionWithDuration:0.5f scene:[SomeOtherScene scene]]];

热点排行