Building the Cocos Code IDE development environment

Source: Internet
Author: User

Building the Cocos Code IDE development Environment

The Cocos code IDE is a game tool developed by the COCOS2D-X team to develop COCOS2D-JS and cocos2d-x LUA bindings, based on eclipse[Eclipse, an open-source, Java-based, extensible development platform. For its part, it is just a framework and a set of services for building a development environment through plug-in components. Fortunately, Eclipse comes with a standard set of plugins, including Java development tools (Java Development kit,jdk). --From the Baidu Encyclopedia http://baike.baidu.com/subview/23576/9374802.htm] Platform development tools, Eclipse Java-based to run the Cocos Code IDE tool, We need to install JDK or JRE,JDK is the Java SDK, the JRE is the Java Runtime environment.


1. JDK
The installation and setup of the JDK can be referred to in the previous article.


2. Cocos Code IDE Download and install
The Cocos Code IDE is Http://www.cocos2d-x.org/download, as shown in the browser page. Select the appropriate file to download, currently includes Mac OS x version and Windows version, note that Windows is divided into 32-bit and 64-bit, as well as the installation (Setup) version and the Compressed (Zip) version of the points.

Download Cocos Code IDE

We downloaded the Cocos-code-ide-win64-1.0.0-rc1.zip decompression version, after extracting the Cocos code IDE.exe file to run can start Cocos Code IDE tool, In the boot process, you need to select the workspace directory, as shown in the workspace directory is the project management directory, select OK after clicking the OK button, if the directory does not exist then create.



Select Workspace

Cocos Code IDE specifically uses how we are going to introduce later.


Download and use Cocos2d-x LUA official case
First, to the Cocos2d-x official website to download the Cocos2d-x development package, to the book date Cocos2d-x 3.2 final version has been released. Cocos2d-x 3.2 Download the extracted directory structure as shown in.

COCOS2D-X 3.2 Development Package content



If we want to run the official case can go into the build directory, the contents of the build directory, as shown here, contains the various platform compiling and running the case of the project, including Cocos2d_ The Tests.xcodeproj file is a cocos2d-x case of the Xcode project file, Cocos2d-win32.vc2012.sln file is a cocos2d-x case Win32 platform under the visual Studio 2012 solution file, Additional Cocos2d-wp8.vc2012.sln files are the Cocos2d-x case Windows Phone 8 platform under the Visual Studio 2012 solution file.

Build directory Content

If we learn and develop under window, we can generally run Cocos2d-win32.vc2012.sln solutions. If we launch the Cocos2d-win32.vc2012.sln solution into, as shown in the Visual Studio 2012 interface, where the Lua-tests project is cocos2d-x officially provided by the Cocos2d-x LUA case project, We need to select Lua-tests project in the right-click menu, select "Set Startup Project" and run the Lua-tests project by running the Debug button in the toolbar above.



Cocos2d-x Lua case



The first run needs to compile the cocos2d-x time to grow up, after running it will look at a Windows window (as shown), click on one of the menu items can run the corresponding example (as shown).


Run case



If you want to view lua-tests source code that cannot be viewed through Visual Studio 2012, you need to open the LUA code file view in the <cocos2d-x engine catalog >\tests\lua-tests directory, using the text Editing tool.

Building the Cocos Code IDE development environment

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.