Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I include cocos2d-x templates in Xcode?

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.

like image 859
D'Arcy Rail-Ip Avatar asked Oct 24 '13 15:10

D'Arcy Rail-Ip


1 Answers

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.

like image 88
marcg11 Avatar answered Oct 21 '22 20:10

marcg11