cocos2dx3.3 in Windows environment and new project creation

Source: Internet
Author: User

Although this is relatively simple, but is the first step to learn cocos, do not accumulate kuibu to thousands of miles, so today first to share Windows environment building problems. About Mac build follow-up opportunity to write (PS: Because I don't have a Mac for a moment), anyway, get started!

The first software to download:

cocos2dx3.3 version (this to Cocos official website to find will have) here with the temporary more stable version 3.3

then visual stdio2012 (abbreviation vs2012)

And then Python (it's like a 2.7.2 anyway, don't choose too old, don't choose too new version, software official website)

Next Install:

1. The COCOS2DX and vs2012 directly downloaded to unzip the installation is good this is relatively simple to talk about, just give a little hint, in the installation of software if not to be installed in the C-drive software then we'd better not install in C, anyway, I am using a disk specifically as the installation location, A disk dedicated to drop down the software package, and the installation of the path is best not to appear in Chinese!

2. Next Install Python

Download it down like that.

Then double-click on the installation, remember to choose the path when the installation of probably remember where you are, this we are generally in the root directory of C, as long as you remember the path is good

The rest will always be next, and then the installation is done; the more important step;

Computer-"Properties"-"Advanced system Settings"-"to ensure that the upper label is selected in the middle of the case select" Environment variables "-" and then in the popup system variable bar double-click "Path"-"in the Path variable value add your Python path, click OK ok!

Now do environmental monitoring:

In the start input cmd pop-up Administrator window, enter the Python carriage return, the version information appears successfully, otherwise failed. Enter Java-version carriage return, success is also output version information (do not successfully return to see where the omission, and then reload):

Well, now we can run Cocos's HelloWorld project (about the subsequent Android environment configuration will be shown in the following tutorial):

In the extracted Cocos directory, find "Build"-".... sln" (Remember the sln file and it is Win32)

After opening in the VS interface; Click "Generate"-"build Solution" and then click "Debug" when you see the Output box below (shortcut F5) This process runs for the first time.

Success after the Run box pop-up, this is the HelloWorld project, which shows that COCOS2DX can be implemented by some of the features can be opened to see, in the VS panel left open level can also find some function corresponding code, sometimes as a reference;

Well, Helloword also run up, the next we create a new project (suddenly found that this tutorial is long, a write will not hold, depressed)

Before we start a new project we must run setup.py, the same CMD open the Administrator window, enter (CD Cocos installation directory) return I here is F drive, then enter setup.py return, ok!

Here is a quick way to get into a directory, which I saw a few days ago, go directly to the directory press and hold shift+ right-click to select "Open Command Window Here"

There is also the kind of input CD directly after you drag the directory folder to the command window just fine;

Anyway, we proceed to the next step, new project, cmd Open Command Window input This command: Cocos new hallo-p com.hallo.org-l cpp-d F:\cocos2d-x-3.3 carriage return (I write by memory, we check and verify, and different version of the creation of commands have a little difference, anyway, I this is so, as if there were before the Cocos into Python Hallo for the project name, com.hallo.org for the package name, CPP is in what language, here is C + +, so write CPP, Then-D after writing the catalog of the project store, you can build a dedicated storage Cocos project. Anyway, after the return to the window below the kind of good (different versions appear also have a difference, test whether to create a good is to go to the storage directory to see if there is)

All right, this tutorial is here to talk about the newly created project, the tutorial is too long to digest. And then I'll explain it in a later tutorial.

Is it going to happen? If the tutorial is wrong or if you have comments or suggestions, please feel free to ask or contact me.

cocos2dx3.3 in Windows environment and new project creation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.