How to run HelloWorld of cocos2d-x on iPhone Emulator¶
This document describes how to run helloworld on iphone simulator.
Download source code¶
Download the source code from github. The address is:
After downloading finished, you could find HelloWorld.xcodeproj in cocos2d-x/HelloWorld/iphone/. Double click HelloWorld.xcodeproj and you can browse
the code in Xcode. Build and run it, you will get the result.
The "HelloWorld" sample code is fully tested in the enviroments below:
machie name: Mac mini
operation system: Mac OS X 10.6.4
CPU: Intel Core 2 Duo
Xcode version: 3.2.4
iOS SDK: 4.1 & 3.2
The sample code is built on both iOS SDK 4.1 and 3.2.
I think it can work in other SDK versions, but not quite sure about it.
If you have any questions, please post a thread to Our Forum to let me know.
Cool! The whole test cases will come out soon!¶
Congratulations to C++ preferences! Soon you will be able to write cocos2d games with C++ on iPhone