cocos2d-x tutorial v3 (C++11)

cocos2d-x tutorial v3 (C++11)
0.0 0


I have been trying to write simple introductory tutorials on cocos2d-x v3 so that new people like me can quickly learn and move forward with cocos2d-x.

I will write more.
Any comment to improve the tutorials are welcome.
Feel free to criticize me.


thanks and appreciate


Thanks for the work.
Will you continue to write more?


I will write more tutorials.
I am trying to break up the concepts and focus only on one concept for a single tutorial.:slight_smile:




Great and simple tutorial!!!

I have run through it all last night. Please write more as possible:) :slight_smile: :slight_smile:

It helps me a lot for starting to learn.


Good to see more


Hi Sunny, I was going through Part 1 and I found a typo, where you write:
auto scene = TouchMove::createScene()
it should end with semicolon:
auto scene = TouchMove::createScene();

Also, building and running (with cocos2d-x-3.1-rc0 May.18 2014 on a Macbook) for iOS I get this compiler error:

Undefined symbols for architecture i386:
  "TouchMove::createScene()", referenced from:
      AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The following build commands failed:
	Ld /Users/myName/myCompany/PlatformGame1/bin/debug/ios/PlatformGame1\\ iOS normal i386
(1 failure)
Error running command, return code: 65

When building and running for Android I get:

jni/../../Classes/AppDelegate.cpp:32: error: undefined reference to 'TouchMove::createScene()'
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi/] Error 1
make: Leaving directory `/Users/myName/myCompany/PlatformGame1/'
Error running command, return code: 2

I didn’t get these errors when I built and run the new, unmodified default project.