2.0.3的这个版本如何改变设备屏幕方向(急)

各位大神好

我现在刚开始学习使用-x 以前用的是2d 现在我要改变屏幕方向,想改成竖屏,但是现在找不到方法啊。我用的版本cocos2d-2.0-x-2.0.3{:soso_e109:}

android的话在1.x提供了方法:
pDirector->setDeviceOrientation()……
但是2.x没有了,你需要在AndroidManifest.xml里面设置:
修改:android:screenOrientation属性就ok……

如果是iOS则 在RootViewController.mm中找到shouldAutorotateToInterfaceOrientation()函数,将
return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );
修改为
return (UIInterfaceOrientationIsPortrait(interfaceOrientation));

自己回答,呵呵,这个在配置中直接修改就可以了。

android的话在1.x提供了方法:
pDirector->setDeviceOrientation()……
但是2.x没有了,你需要在AndroidManifest.xml里面设置:
修改:android:screenOrientation属性就ok……

如果是iOS则 在RootViewController.mm中找到shouldAutorotateToInterfaceOrientation()函数,将
return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );
修改为
return (UIInterfaceOrientationIsPortrait(interfaceOrientation));

:14::14::14::14:
win32下能改吗?

都能改的。这种问题最好google 一下,啥都有了。