COCOS2DX Windows environment Configuration

Source: Internet
Author: User

COCOS2DX Upgrade Tour, please more advice ~

This article is I build cocos2dx-windows 64-bit environment configuration instructions, for reference only.

Development preparation

Setting up the environment must be equipped with all the tools, only the tools are ready to roll up the sleeves to work, but certainly by the Cocos official website to provide the number of software and distribution of the fragmented development environment to prepare documentation of the whole without a clue. Let's take a clear look at the idea.

1.python 2.7.X Environment

Many of COCOS2DX's configurations are used in Python, so it is extremely urgent to build a Python environment, and Cocos2d-x currently only supports py2.x version (I use py3.x environment error, replace py2.x pass).

1) First download the latest python2.7.x version, go to the Python website to download.

2) The default installation is complete, and then the environment variables are configured. Click-"My Computer (right button)-" Properties-"Advanced system Settings-" Advanced tab-"Environment variables-" system variables. Find the "path" system variable and add your Python path. For example, my installation path is "C:\Python27", so under the path variable, add "C:\PYTHON27;" (If there is no ";" in the Path variable, add "; C:\Python27; " )。

Configure the Pathext variable, enter "Pathext variable", add ". PY;. PYM; ",. Sometimes python can not be configured successfully, because there is no setting this, I also lie more guns, habits plus.

3) Configure a certain point above the box to determine, has been determined to determine the OK =. =

4) Verify that the configuration is successful, go to cmd (don't tell me you don't know cmd, I won't say in the beginning of the Windows Search bar search cmd can find), enter "Python", appear in the Python version, succeeded, Or you go slowly to find out where you were wrong (or restart your computer the next day and try again, fog.) )

2.Microsoft Visual Studio 2012

Address I will not provide, Chinese netizens download and crack technology is certainly profound.

Because I COCOS2DX development plan to use vs2013, so I will also be included in the necessary list. It is important to note that the VS version requires more than VS2012.

3. Download the software provided by Cocos

Address: COCOS2DX official website download

Don't worry about it, just sort out the software relationship. Cocos offers a range of services and a range of software, and open source is free, but what else do you need bikes and bikes? Certainly not like VS2012 installation so idiot, click OK.

1. First need to install COCOS2DX, recommended installation 3. X version

  Address: COCOS2DX

COCOS2DX, the foundation for cross-platform development with C + +, allows us to deploy across platforms using C + +, covering platforms including iOS, Android, Windows phone, and more. So first install this _ (: З"∠) _

2. After downloading the extract to disk, and open the Cocos2d-x folder to find setup.py This file, run the

At first we did not need to do SDK\NDK configuration, always click Enter, skip. This setup.py will help us set the environment variables required for the cocos2d-x to run.

3. After the configuration, it must be verified that the success, into the cmd, input cocos. Appeared, the explanation succeeded.

If it does not appear, the display is not an internal command, which means you need to manually configure the Add Cocos environment, also very simple. Simply locate the "path" system variable in the system variable and add the path to the COCOS2DX as shown in the previous configuration. My cocos2dx path is: "C:\cocos2dx", add in to solve the problem.

4. After the configuration, definitely try to see what the CMD provides, you will understand how easy the Cocos command is.

Let's create a demo and try the new command. For example, I want to create a game called Testdemo in the C: \ directory.

First CD into the C \ directory, and then enter Cocos new-p com.game.simple-l cpp-d C:\TestDemo, after success can see the following

5. You can see a lot of familiar words when you go in to create a good directory, because without creating an Android environment, you can go into Win32 and click the sln suffix file to start development with VS2012.

6. Be sure to run HelloWorld, right?

If we are going to run the project we just generated from the template, we need to use the Cocos Run command to enter the Testdemo file directory that was created before CMD, and enter Cocos Run-p Win32-s.

The rest is just waiting for the compilation to complete.

**************************************

The above is the COCOS2DX of the Win32 environment and debugging, Android-related parts, the next chapter continues, the following to talk about other.

**************************************

4.cocos engine

Cocos Studiois the entity of the Cocos engine. Download win version originally tasted fresh.

To tell the truth, Cocos Studio is not mature, many functional points are not human-friendly, use is very not convenient, shortcut keys and the animation editor below will not spit groove, or else will be said to what bike.

1.cocos Studio Project needs Cocos Framework, first open Cocos studio-"window-" start launcher, go to "store", find the Cocos framework, download it. Also go to "download" to install. Installed you will ha ha, if you do not know to install Cocos Framework, that sorry, even the project can not be built ... Or that sentence, to what bike, read my blog post, you understand.

》》》》》》》》》》

2. Learning interface

This to expand, that is a few articles, you can look at the official documents, and then try it yourself, you will experience the sadness of this one of the eggs.

Path: Learning interface

5.Else

Last but not the only: Cocos2d-js, Cocos2d-lua (quick-cocos2d-x), Cocos Code IDE, these three because I am accustomed to use C + + and eclipse to develop without much contact, and later to share articles ~.

Finally, believe that the COCOS2DX Win32 part of the foundation is clear enough to explain, if you do not understand, you can only seek the help of Google.

Above

COCOS2DX Windows environment Configuration

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.