walkeropf.blogg.se

Xcode create c++ project
Xcode create c++ project










Note: In the above, for the first line, you need to replace $COCOS2DX_HOME with the actual path to where you extracted the files. To run it, just quit Xcode, open a shell terminal and type: Now that you’ve got the code, let’s install the templates! You can do this with a script that’s inside $COCOS2DX_HOME. Note the full path to that folder – it will be referred as $COCOS2DX_HOME. Unzip the file in to a folder somewhere on your hard drive. So grab your iPhone and/or Android device, and let’s get started! Hello, Cocos2D-X for iOS!īefore you go any further, make sure you download the latest version of Cocos2D-X. In this Cocos2D-X tutorial, you’ll learn how to use Cocos2D-X and C++ to produce a cross-platform “Hello World” app that will run under both iOS and Android.Īnd in a few days, I’ll post a follow-up Cocos2D-X tutorial that will show you a practical game example – a cross platform space shooter! And since it’s in C++, it works on many platforms – from iOS to Android to Windows to Linux and more! Well, this is possible with the Cocos2D-X game framework! Cocos2D-X is a C++ port of the Cocos2D API, so you can use the API you know and love. Wouldn’t it be great if you could use the same easy to use Cocos2D API, but have it run on Android as well? This way you could greatly extend the market for your app, without adding a lot of extra work!

xcode create c++ project xcode create c++ project xcode create c++ project

(original post by Jean-Yves Mengant, update by Jorge Jordán).Ĭocos2D is an amazing and easy to use framework, but since it’s written in Objective-C you can only write games with it for iOS and the Mac. Update Fully updated for Cocos2D-X 2.1 and iOS 6.












Xcode create c++ project