繁体   English   中英

Kobold2d-方向

[英]Kobold2d - Orientation

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

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

但没有显示的节点。

要做的就是使用:

background.rotation = 270;

对于我创建或忽略的每个精灵

我将Kobold2D v2.0.3与xCode 4.5结合使用。 在此处输入图片说明

在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;

我将尽快发布更新的版本。

您将必须在您的资源中启用lua文件中的Autorotation。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM