- Install python2.6.6 at http://www.python.org/getit/releases/2.6.6/, and directly install it on the C drive.
- 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.
- 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:
- Run the setup. py install command again. Congratulations, the installation is successful, as shown in the interface for success:
- 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!