Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install cocos2d

How to install cocos2d

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install cocos2d
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.5.5 Available View build log
0.5.0 Available View build log
0.5rc0 Available View build log
0.4.0 Available View build log
0.4rc0 Available View build log
Windows (64-bit)
0.5.5 Available View build log
0.5.0 Available View build log
0.5rc0 Available View build log
0.4.0 Available View build log
0.4rc0 Available View build log
Mac OS X (10.5+)
0.5.5 Available View build log
0.5.0 Available View build log
0.5rc0 Available View build log
0.4.0 Available View build log
0.4rc0 Available View build log
Linux (32-bit)
0.5.5 Available View build log
0.5.0 Available View build log
0.5rc0 Available View build log
0.4.0 Available View build log
0.4rc0 Available View build log
Linux (64-bit)
0.5.5 Available View build log
0.5.0 Available View build log
0.5rc0 Available View build log
0.4.0 Available View build log
0.4rc0 Available View build log
 
Author
License
BSD
Dependencies
Depended by
Lastest release
version 0.5.5 on Nov 23rd, 2012
A framework for building 2D games, demos, and other graphical/interactive applications.
Draws using OpenGL, which is hardware accelerated.
It provides some conventions and classes to help you structure a "scene based application".
A cocos2d application consists of several scenes, and a workflow connecting the different scenes.
It provides you with a "director" (a singleton) which handles that workflow between scenes.
Each scene is composed of an arbitrary number of layers;
layers take care of drawing to the screen (using the pyglet and OpenGL APIs), handling events and in general contain all of the game/application logic.

cocos2d simplifies the game development in these areas:

  • Flow control: Manage the flow control between different scenes in an easy way
  • Sprites: Fast and easy sprites
  • Actions: Just tell sprites what you want them to do. Composable actions like move, rotate, scale and much more
  • Effects: Effects like waves, twirl, lens and much more
  • Tiled Maps: Support for rectangular and hexagonal tiled maps
  • Collision: Basic pure python support for collisions
  • Transitions: Move from scene to scene with style
  • Menus: Built in classes to create menus
  • Text Rendering: Label and HTMLLabel with action support
  • Built-in Python Interpreter: For debugging purposes
  • Acces to OpenGL functionality
  • and much more!http://cocos2d.org

Requirements

Software:

  • python 2.4 or newer; don't works with 3.x
  • pyglet 1.1.4 or newer (http://www.pyglet.org)
  • Linux, Windows or Mac OS/X

Hardware:

  • To execute some effects you will need a video card with the:

    GL_EXT_framebuffer_object extension.

Installing

Being a pure python package the usual options are available; you can look at the INSTALL file for some details

Learning cocos2d

  • go to the online tuturials / documentation page: http://cocos2d.org/doc.html

    you will find:

    . the Programming Guide . the API Reference . some tutorial videos

    The tutorials are included in the source package or can be download from:

    http://code.google.com/p/los-cocos/downloads/list

  • Lot of miniprograms that demostrates the available objects and posible actions. There are a great starting point while learning and experimenting with cocos: you find a sample with the object that interest you exercising the features that you need, read the code, run, modify and re-run to experiment.

    Also, handy to know what is available in cocos: run all the tests and by looking at the code you know what to look at in the docs.

    You can find them at the test directory in the source distribution. After unpacking, to run the tests you can do

    $ cd test $ python test_*.py

  • more complex sample programs

    You can find it in the samples directory in the source distribution, and the most complex in subdrectories there, including a presentation done with Cocos himself.

    After unpacking, to run the samples you can do

    $ cd samples $ python sample_name.py

Do you have any doubt ? http://groups.google.com/group/cocos-discuss

Did you find any bug ? http://groups.google.com/group/cocos-discuss http://code.google.com/p/los-cocos/issues/list

Subscribe to package updates

Last updated Nov 23rd, 2012

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.