news
November 7, 2020: cocos2d 0.6.9 available.
Fix tiles crash in py39 due to xml removed method
euclid bugfixes and two new methods for Vector2: angle_oriented and determinant
Eliminated ugly black padding when resizing a window created with autoscale=True
Refactor window geometry info in director; also get_window_size now returns real size if autoscale==False
Removed deprecated features in Director, see compatibility notes in the docs
tmx map can use tilesets with an image per tile (WIP, may need adjustments in layer)
All tmx properties are parsed and loaded with the correct types
Fix handling paths in tmx files, covered map to tileset to image
See the changelog here.
See deprecations and compatibility notes if you have code using cocos2d.
November 7, 2020:
Our website now lives at http://los-cocos.github.io/cocos-site/
January 31, 2020: cocos2d 0.6.8 available.
Small bugfixes
Better ffmpeg support
Suports pyglet 1.4.10+, 1.5.x, < 2
See the changelog here.
See deprecations and compatibility notes if you have code using cocos2d.
September 6, 2019: cocos2d 0.6.7 available.
First version supporting pyglet 1.4.x series
Minimun pyglet version supported is 1.4.3
This version does not work with pyglet < 1.4.3
See the changelog here.
See deprecations and compatibility notes if you have code using cocos2d.
August 15, 2019: cocos2d 0.6.6 available.
This is exactly 0.6.5 with the pyglet dependency limited to 1.2 <= v < 1.4 so that pip install cocos2d ends with a functioning cocos.
Last version to work with pyglet 1.3.x
See the changelog here.
See deprecations and compatibility notes if you have code using cocos2d.
about
cocos2d is a framework for building 2D games, demos, and other graphical/interactive applications.
main features
- 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
- Transitions: Move from scene to scene with style
- Menus: Built in classes to create menus
- Text Rendering: Label and HTMLLabel with action support
- Documentation: Programming Guide + API Reference + Video Tutorials + Lots of simple tests showing how to use it
- Built-in Python Interpreter: For debugging purposes
- BSD License: Just use it
- Pyglet Based: No external dependencies
- OpenGL Based: Hardware Acceleration
This video shows some effects that are executed in the running scene.
Source code: demo_grid_effects.py
cocos2d for iphone
If you are looking for the iphone version, please visit this page: cocos2d for iPhone