Newbie, after half a day, finally set up the environment. Now let's share our experiences on Environment Building (it's really a newbie, maybe something is wrong, so remember it first ).
Let's talk about the next big environment:
1. Windows 7 32-bit
2. cocos2dx V2.3.3 (game engine ),
32.16android-ndk-r9d-windows-x86.zip (used to compile C ++ In the eclipse environment ),
4. VS2010 (C ++ compiling environment, which can be run directly to view the game writing status ),
5. Android Developer Tools v22.0.1-685705 (mainly used for publishing to android, android development plug-in can be installed on the basis of eclipse), 6. JDK,
7. Python2.7 (used to create the cocos2dx project) seems to be so much.
Since I have been writing JAVA projects, I occasionally write C #(. NET) project, Android also occasionally writes, More coincidentally, the python program also writes, So in addition to the above 2nd items, 3rd items, others have been installed, so here we will focus on cocos2dx installation of new projects.
1. Install the JAVA environment and all the basics (android)
2. Install python, which is the same as installing JDK.
3, cocos2dx, This is the SDK, and the above two are the same, this even environment variables are not written, anyway, I did not write, see the tutorial said unzip to run the build-win32.bat file, I didn't run it here, but it was very slow (10 minutes) when I ran vs2010 for the first time. It is probably the same thing. We recommend that you decompress the package and run it first.
Four cores android-ndk-r9d-windows-x86.zip. This is the same as the above three, and I have not written any environment variables.
5. For tool tools such as VS2010 and android, refer to the online tools. Otherwise, you cannot finish writing them.
--------------------------------------------------
Compared with unity3d, cocos2d-x is really just an engine, it even development tools are not, of course, run, release tool is not, haha (really hope that there is a great God to make a good thing, make it a complete set of things with u3d ).
Cocos2dx.
Projects all new projects are placed here, cocos2d-x-2.2.3 \ tools \ project-creatZ tables? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> containers/tcQgICAgICAgICAgICAgICC5pL7fKLDRy/yxo7Tms8kuYmF0zsS8/containers/CvM/containers + containers/containers Authorization + cve-vcd4kpha + authorization + CnNldCAvcCBwcm9qZWN0PcfryuTI69Do0qq0tL2otcS5pLPMw/authorization + srkyOu1xLmks8zD + authorization/L HqyrbD + 86qJWFJRCU8YnI + cmvjar8gylfiz7s0vai5plpmwva/fingerprint = "Press 1 for confirmation, press 2 for cancellation, or press 3 for exit. "
Echo % errorlevel %
If % errorlevel % = 1 goto label2
If % errorlevel % = 2 goto label1
If % errorlevel % = 3 goto label3
: Label2
Echo is creating a project...
Python create_project.py-project %-package % aID %-language cpp
: Label3
Pause
------------------- End (this line is not included )-------------------------
Here, I encountered an interesting problem, that is, when the input package name contains only two segments, such as com. test, an error is reported during creation. As a result, the project name generated by it is helloapp. Therefore, we recommend that the package name be at or above the segment. Add the Project Creation image.
So far, the project has been created, In the cocos2d-x-2.2.3 \ projects directory generated into the myNGame directory, its structure is as follows
Classes is the directory where the source files are stored, and Resources are the materials (such as graphs, sound files, and xml files ).
Pro. win32 can be opened with vs2010, and pro. android is used for android tools.
Since I only use cocos2dx to create an android project, I will not talk about anything else (in fact, I don't know *_*).
Next, I will explain my experiences in VS2010 development, running on ADT, and publishing to apk.