Cocos2d-python configuration under win7

Source: Internet
Author: User
    1. Install python2.6.6 at http://www.python.org/getit/releases/2.6.6/, and directly install it on the C drive.

    2. Install the pyglet-1.1.4 at http://www.pyglet.org/download.html. After the download, directly install it on the C drive.ProgramThe installed Python version is detected.

       

    3. Download the cocos2d-0.4.0, this is the latest version, and then never updated, it is estimated that the cocos2d-iphone is not updated after the fire. : Http://cocos2d.org/download.html

      Then decompress, I decompress the directory is: F: \ pythoncocos2d \ cocos2d-0.4.0

      Then open the "cmd program" and CD to this directory:

Next, run the setup. py install command to prompt for an error, such:

4. Then we need to install setuptools ,:Http://pypi.python.org/pypi/setuptools

Then, click downloads:

Then:

We want to download the red part. After the download is complete, install it directly:

 

    1. Run the setup. py install command again. Congratulations, the installation is successful, as shown in the interface for success:

       

    2. Finally, let me start with helloworld!

       

       

      This is tetris. Haha, let's watch it!

       

      Note: Why study cocos2d-python, because it is cocos2d-iphone's father, is cocos2d-x's grandfather. At the same time, Python development efficiency, can be used to prototype games, verify the idea of the game, and then consider using cocos2d-iphone or cocos2d-x to achieve, this will save a lot of cost.

       

      Leave a message? Please click portal!

       

Copyright statement: This article by Zilong Shan People (http://www.cnblogs.com/andyque) original, welcome to repost share. Please respect the work of the author. Keep this note and the author's blog link when reprinting. Thank you!

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.