如何在 Xcode 中包含 cocos2d-x 模板? [英] How can I include cocos2d-x templates in Xcode?

查看:19
本文介绍了如何在 Xcode 中包含 cocos2d-x 模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循 this 指南,该指南经常被引用为 Cocos2d-x 的优秀教程.p>

问题是我下载的 Cocos2d-x(2.2 和 3.0 alpha0)不包括教程中指出的文件 install-templates-xcode.sh.

知道这里发生了什么吗?我搜索了那个词,但什么也没有出现,所以我假设它没有隐藏在文件的更深处.

出于无奈,我下载了 cocos2d-iphone,该文件夹中显然有 install-templates.sh 文件.我宁愿为多平台开发,但是这个简单的问题真的很困扰我.我只是希望能够创建一个 Xcode 项目并选择 cocos2d-x 模板(如我上面链接的教程中所示).

查看 github 存储库:

Cocos2d-x

Cocos2d-iPhone

注意 iPhone 存储库有 install-templates 文件.

也许我遗漏了一些明显的东西,通常情况就是这样.无论如何,我们将非常感谢您的帮助.

解决方案

它已经不存在了.您需要在终端的 tools/project-creator 中使用 create_project.py.

->python create_project.py [参数]

示例:

->python create_project.py -project MyGame -package com.MyCompany.AwesomeGame -language cpp

我知道,这真的很糟糕.但它更适合创建多平台项目.

I'm trying to follow this guide which is often quoted as being an excellent tutorial for Cocos2d-x.

The problem is that my downloads for Cocos2d-x (2.2 and 3.0 alpha0) do not include the file the tutorial indicates, install-templates-xcode.sh.

Any idea what happened here? I did a search for that term, and nothing came up, so I'm assuming it's not hidden deeper in the files.

Out of frustration I downloaded cocos2d-iphone, and that folder clearly has the install-templates.sh file. I'd rather develop for multi-platform, but this simple issue is really bothering me. I simply want to be able to create an Xcode project and choose the cocos2d-x template (as is indicated in the tutorial I linked above).

See the github repositories:

Cocos2d-x

Cocos2d-iPhone

Notice the iPhone repository has the install-templates file.

Maybe I'm missing something obvious, which is usually the case. Regardless, help would be very appreciated.

解决方案

It doesn't exist anymore. You need to use create_project.py inside tools/project-creator in terminal.

-> python create_project.py [params]

example:

-> python create_project.py -project MyGame -package com.MyCompany.AwesomeGame -language cpp

I know, it really sucks. But it's better for creating multi-platform projects.

这篇关于如何在 Xcode 中包含 cocos2d-x 模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆