Kobold2d - 方向

时间:2012-09-21 10:51:47

标签: iphone ios orientation kobold2d

我在cocos2d中创建了一个游戏,因为我想使用一些UIKit元素,我找到了kobold2d。

我移植了游戏,但问题是我的iPhone刺激器已经旋转,

但不是显示的节点。

必须使用:

background.rotation = 270;

对于我创建或创建的每个精灵,我忽略了一种方法

我正在将Kobold2D v2.0.3与xCode 4.5结合使用。enter image description here

2 个答案:

答案 0 :(得分:1)

在KKAppDelegate.m中,更改以下行:

// set the Navigation Controller as the root view controller
[window addSubview:navController.view];

到此:

// set the Navigation Controller as the root view controller
window.rootViewController = navController;

我很快就会发布更新版本。

答案 1 :(得分:0)

您必须在资源中启用lua文件中的Autorotation ..!