Coco2D 安装《cocos2d installment》

来源:互联网 发布:弓箭在淘宝上买几元 编辑:程序博客网 时间:2024/05/23 02:03

 

中文版本:

 

日期:2016、11、1—>注意时间,版本升级很快,可能新的内容本文章就落后了!

Cococs2d详细介绍参考官方网站即可!

下面介绍其初始教程:(本版本为vs2015,cocos2d-3.13.1,win7-64,python2.7)

 

一、安装vs2015版本(下为网址:)

https://www.visualstudio.com/post-download-vs/?sku=community&clcid=0x804&downloadrename=true#

下载完找到“.exe”程序。直接打开安装,首次安装耗时一个小时左右。安装过程中无需做任何操作。【当然,如果安装有杀毒软件,安装过程中会提示恶意程序修改程序。直接允许该程序所有操作即可。】

 

二、安装python2.7(下为网址:)

https://www.python.org/downloads/release/python-2712/

该版本全程是:2.7.12;不要以为最新版本做好。当前最新版本3.5的实际上和cocos2d-3..不兼容的(当前时间哈!以后可能会。)所以建议下载python2.7.12-Windows x86-64 MSI installer(64位机);Windows x86 MSI installer(32位机)。打开安装即可。

 

         环境配置:path(你安装python的位置!)例如我安装在C:\Python27【这里注意,他不是C:\Python2.7.12,但无论怎样,找到

有python.exe的文件的窗口。直接复制上面的路径】

检测是否成功:出现版本信息就成功了。

 

 

三、cocos2d-3.13.1(不用安装)

http://www.cocos2d-x.org/download

 

下载图中标示的。

解压后,打开setup.py(后缀名是python的缩写);一直按enter键到最后。即完成。

 

四、下一篇查看各种demo和新建一个HelloWorld工程.

 

 

ENGLISH-VERSION

         Thedate is due to 2016\11\1; Please attention to the current version and keep eyeson the latest version.

         Anydetail can be acquired at cocos.org.

         Now let`sinstall our software in our computer.(os:win7-64,python-v:2.7.12,cocos2d-v:3.13.1,visual studio-v 2015.)

Step1: Install visual studio 2015

        Here is the website:

         https://www.visualstudio.com/post-download-vs/?sku=community&clcid=0x804&downloadrename=true#

                   Afterdownload the file. Find the file with suffix of “.exe”; click it and wait aboutone hour to finish the installment. Pay attention to defender, it will reportsome software try to modify the program, just allow all the behaviors of thesoftware.

Step2: Install python2.7

         Hereis the website:

         https://www.python.org/downloads/release/python-2712/

                   Thefull name is python2.7.12; and the latest version is 3.5 but not company withcocos2d-3… so better is python2.7.12;Windows x86-64 MSI installer (OS: 64bit);Windows x86 MSI installer (OS: 32bit). Thenclick to install.

                   Environment:path->the path which you installed python, if you are not sure whetherphthon27 or python2.7.12. find the file with the name :”python.exe”; copy thepath and paste in path variable; here is the picture. To know whether youinstalled it successfully or not, run the control line, if you can see theversion of python. That is to say, you get success. Cheers!

 

Step:3 Install or download cocos2d-3.13.1

         Hereis the website:

         http://www.cocos2d-x.org/download

 

Followed by the highlight!

After unzip the file, open the program: ”setup.py”;(“py” is the short form of python);click the key [enter] until the windowdisappeared!

 

Step:4 Next we will have a look at thedemos which was given by org.cocos2d. And we will build the first project withthe name of “helloword”;

 

0 0
原创粉丝点击