a 2D framework for games and multimedia
Project description
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
Access to OpenGL functionality
and much more! http://los-cocos.github.io/cocos-site/
Requirements
Software:
python 3.6+
pyglet 1.4.10+, < 2.0 ( http://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 tutorials / documentation page: http://los-cocos.github.io/cocos-site/doc.html
- You will find:
the Programming Guide
the API Reference
some tutorial videos
The tutorials are included in the source package.
Lot of miniprograms that demonstrates the available objects and possible 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 subdirectories 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?
- Did you find any bug?
- Current repository is at
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cocos2d-0.6.10.tar.gz
.
File metadata
- Download URL: cocos2d-0.6.10.tar.gz
- Upload date:
- Size: 4.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fb340f53fb7d096f7b033eae1257106dae92dd26911046a83eb5047237dc986 |
|
MD5 | 7d51b141df81b6a5649479b48c7c6bf4 |
|
BLAKE2b-256 | c6a6ed13e016f4373e3047a2810f944cbe17283902b96f53fc20598ac5a150af |