python中的alp怎么用_Cocos2d-js 3.0 alp2 使用指南

Download Cocos2d-JS: http://www.cocos2d-x.org/download

Unzip and copy to C:/

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)Androidandroid-sdk

ANT_HOME:C:apache-ant-1.9.3

JAVA_HOME:C:Program FilesJavajre8

NDK_ROOT:C:android-ndk-r9d

"Edit..." the variable "Path"

Add ";C:Cocos2d-JS-v3.0-alphaoolscocos2d-consolein" to the end of the variable value of the variable "Path"

Double click on the file:

C:Cocos2d-JS-v3.0-alphasetup.py

open cmd.exe as administrator

type "cd C:Cocos2d-JS-v3.0-alphaoolscocos2d-consolein" 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 開始的文件

resource.js 预载入资源。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值