Cocos2D-iPhone-Extensions is a collection of quality 3rd party extensions and additions for the Cocos2D-iPhone Engine.
Many Cocos2D developers love to share code on their blogs & cocos2d forum. With this approach it is difficult to find the code or know if the code is compatible with latest cocos2d source. Many developers are forced to reinvent the wheel, and this leads to multiple duplicates of the same functionality, sometimes even with exact the same class names (good example – CCSlider, there are at least 3 absolute independent versions of it
)
Cocos2D-iPhone-Extensions were created to stop such things and combine all cool extensions in one place, so it will be easy to find, use and maintain them.
Everything that doesn’t modify Cocos2D itself, while bringing new functionality can become a part of Cocos2D-iPhone-Extensions Repo: alternative versions of existing classes, additional categories, new nodes, actions, etc…
All extensions are well documented,shipped with testcases and are compatible with latest stable Cocos2D-iPhone version. With rare exceptions, they are designed for both Mac & iOS.
Build & Runtime Requirements are the same as for cocos2d-iphone engine ( Mac OS X 10.6+, Xcode 3.2.3+, iOS 3.0+ )
As well as Cocos2D, Cocos2D Extensions are licensed under the MIT License.
Extensions available in this release (v0.1.1):
- [iOS/Mac] CCMenuAdvanced – CCMenu subclass with additional features: relativeAnchor, more align options, priority property, scrolling with swipe/trackpad/mousewheel
- [iOS/Mac] CCMenuItemSpriteIndependent – CCMenuItemSprite Subclass, that doesn’t add normal/selected/disabled images (sprites) as children. It retains them and delegates rect & convertToNodeSpace: methods to normalImage_. So it’s possible to use CCSpriteBatchNode & add position sprites of menuItem anyway you want.
- [iOS/Mac] CCVideoPlayer – Simple Video Player for Cocos2D apps.
- [iOS/Mac] CCBigImage – Dynamic Tiled Node for holding Large Images.
- [iOS/Mac] CCSlider – Little Slider Control to allow the user to set the music/sfx/etc level in the range of 0.0f to 1.0f.
- [iOS/Mac] CCSendMessages – CCActionInstant subclass, that is more flexible than other CCActions that run functions. Can be used in many cases as blocks replacement.
- [iOS] CCScrollLayer – CCLayer subclass that lets you pass-in an array of layers and it will then create a smooth scroller. Complete with the “snapping” effect.
- [iOS/Mac] FilesDownloader – Downloader for a group of files with shared source path.
Cocos2D-iPhone-Extensions isn’t one man project – it’s a centralized repo of different developers extensions. So i wanted to ask all of you: please take a look at the extensions repo and help us to expand it!
To use any extension from the cocos2d-iphone-extensions repo – just import the extension folder (i.e. Extensions/CCMenuAdvanced) to your project. If there will be any additional dependencies – they will be mentioned in the extension README file in the same folder.
Latest version of the cocos2d-iphone-extensions repo, wiki and documentation are available here: https://github.com/cocos2d/cocos2d-iphone-extensions
If you’re not familiar with GIT – you always can get archived project at the downloads section: https://github.com/cocos2d/cocos2d-iphone-extensions/archives/master
Video Overview:






Great news! Looking forward to check them out.
Awesome, this is great. Last time I saw CCScrollLayer it didn’t have an option to NOT use the snap effect, meaning we couldn’t have a smooth scroll like a UIScrollView without paging for example. Is that still the case?
Good good good…
Continue the great work guys
These are very good news!
Nice review. BTW your english is well-yhee-coll-app-no. Thanks alot.
Thanks, this will be very helpfull
!
Great idea guys!
Maybe you should consider adding some more classes, like CCRadioMenu?
Good thinking!
it’s very kind of you
Great! Thanks all guys!
Very cool!
Question: how would you implement two sliders? I’ve got the delegate method implemented, but I don’t see how to distinguish between the two sliders…
Coooooooool!!!
Extentions is great idea. this is great.
Thanks all guys.
It doesnt work in Xcode4, there is 4 erros showing
Pretty neat! Should be added to the downloads section for sure.
Thanks all !
Great!!! thanks
Great!
if this comes out 1 month earlier, I wouldn’t have to write my own CCScrollLayer&CCMenuAdvanced…
Cool…keep them coming
This is fantastic! Great job, Stepan!
Great job, thanks!!!
Awesome work!
CCMenuAdvanced and CCScrollLayer sound awesome.
Wont build ….linker errors
Impressive! Thank you guys for sharing your code which is obviously result of a lot of hard work.
Fantastic Framework, as always we are expecting more surprises from Cocos2d.
The observer is Russian. 100%)))
Excellent and perfect timing for me!
Nice one!
Published the info on my blog (german language):
http://www.iphone-entwicklung.net/cocos2d-iphone-extensions-in-v0-1-1
Hope the repo is going to grow
Hey,
Is there a way to set the CCScroll not on all the screen? Thanks.
What a great idea. CCBigImage is going to be extremely useful for a project I’m currently working on, and I’m very much looking forward to playing with CCScrollLayer.
This might be too small an addition to worry about, but I wrote a bit of code to load sprite animations into CCAnimationCache from a plist file. It simply lets you load all of your animations in for an entity in one go without tying anything to code. If you’re interested in adding it, you can find it here; http://www.johnwordsworth.com/2011/07/loading-cocos2d-sprite-frame-animations-from-plist-files/
If I get the time, I’ll try to figure out how git works and add it myself, but I’ve not migrated away from SVN yet so have no real idea how GIT works!
I tried to use Cocos2D-iPhone-Extensions v0.1.1 with cocos2d v1.0.0 in xcode4, I got compile error as below:
FontManager.h: No such file or directory
FontLabelStringDrawing.h: No such file or directory
What can I do? does anyone help me?
Wow, excellent! thx~
hey i need some gesture recognizer class implementation. This class should be support cocos2d all version. I found Some class but those class is not official. thank you
Is anyone working on implementing a Text Field or any type of UIKit implementation…or a bridge between the two? I love using Cocos2d, but I either have to scrape using Cocos2d to use Text Field controls in the UIKit to enter information.
It would be incredible if someone could bridge that gap between the two.
Thanks,
Malin
Thanks for the effort!
Thanks for great work. But how I can to install its?