COCOS2D-JS 3.0 ALP2 User Guide

Source: Internet
Author: User

Download Cocos2d-js:http://www.cocos2d-x.org/download
Unzip and copy to c:/

Download jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html
Install

Download sdk:http://developer.android.com/sdk/index.html
Install

Download ndk:http://developer.android.com/tools/sdk/ndk/index.html
Unzip and copy to c:/

Download Python 2 release:https://www.python.org/downloads/windows/
Install

Download ANT. zip:https://ant.apache.org/bindownload.cgi
Unzip and copy to c:/

File explorer>right Click "This PC" >properties>advanced system settings>environment variables...> System variables>new ...

EXAMPLE
variable:value
ANDROID_ Sdk_root:c:\program Files (x86) \android\android-sdk
ant_home:c:\ APACHE-ANT-1.9.3
ndk_root:c:\android-ndk-r9d

"Edit ..." the variable "Path"
Add "; C:\Cocos2d-JS-v3.0-alpha\tools\cocos2d-console\bin "to the end of the variable value of the variable" Path "

Double Click on the file:
C:\Cocos2d-JS-v3.0-alpha\setup.py

open cmd.exe as administrator
type "CD C:\Cocos2d-JS-v3.0-alpha\tools\ Cocos2d-console\bin "and press ENTER
type" cocos.py new Mygame-p Com.company.mygame-l js-d c:/mygame "and press ENTER

To test in Browser:
Open Cmd.exe as Administrator
Type "CD C:/mygame/mygame" and press Enter
Type "cocos.py run-p web

Thanks for the help, now I can start re-coding my project from version 2!




App.js the beginning of the document

Resource.js pre-loaded resources.








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.