Cocos2D got forked …

On June 8, 2015, in cocos2d, by Steffen Itterheim

Cocos2D “for iPhone” (as in: Objective-C) now has two forks:

How did this happen?

Scott’s thread explains it to some degree. There’s more info on the -ObjC thread. And the -ObjC mini roadmap provides some more insight.

Long story short: Lars and Scott disagree on the direction of Cocos2D. Lars continues with the version 3.4 of Cocos2D before any work on v4 has started. Naturally Cocos2D-SpriteBuilder will soon be the previously announced v4.

This happened shortly after Apportable stopped sponsoring the development of new Cocos2D/SpriteBuilder features. For Lars, Cocos2D was becoming this big chunk of support code for SpriteBuilder, and he’s now trying to turn the ship around.

Double-fork all the way - what does it mean?

To the best of my assessment and what’s been posted, it means that Cocos2D-ObjC is heading towards a Cocos2D as it was in the times of cocos2d-iphone v1 and v2 - not technically but in terms of keeping the core framework plain and simple, with optional features available as add-ons/add-ins or extensions, all code contained within a single Xcode project/target and re-adding the Xcode templates.

Whereas Cocos2D-SpriteBuilder will continue the path of integration with SpriteBuilder. It will also contain the work that has been put into v4, another decluttering and modernizing the core framework, for instance by replacing CCFileUtils and providing a threaded renderer. Check out the v4 roadmap but keep in mind that this was an initial plan and does not indicate current development status or plans anymore. Moreover SpriteBuilder itself will continue to be updated.

That said, it seems likely that Cocos2D-ObjC will eventually break away from SpriteBuilder, too.

How you look at this personally will mostly depend on whether you’re a barebones programmer and text wrangler or rather enjoy the benefits of visual editing and getting certain menial tasks taken care of but also taken away from your (immediate) control while not double-questioning every other class’ existence in the project.

Which one do I choose?

If you like SpriteBuilder or visual editing in general, you go with Cocos2D-SpriteBuilder.

If you like all your project to be code and data under your control, your best bet will be Cocos2D-ObjC at this time.

However with the pending release of Cocos2D-SpriteBuilder v4 you should look into those changes. After all, Cocos2D-SpriteBuilder can be used as a code-only framework, too. The only caveat being that you need SpriteBuilder to create the initial project, and depending on how touchy you are on this subject, you may optionally feel the need to remove certain folders/resources from the project, such as items needed only for Android builds.

I know that causes some bad stomach feeling for some developers. If that’s the case for you, you will probably want to use/support the Cocos2D-ObjC fork.

What about Apportable?

I’m afraid I can’t say much about it, except for what’s been said already: Apportable no longer pays the CC/SB developers (as in: no longer sponsoring CC/SB), including myself.

Apportable continues to offer the SpriteBuilder Android plugins in the SpriteBuilder Store, and they are about to launch their other project named Tengu.

Note that these two projects are essentially the same technology, except that SB Android is aimed at game developers using CC/SB or porting a CC/SB project whereas Tengu is aimed at UIKit developers launching new projects.

/me last words

Personally, I’m very grateful having gotten the chance to write Learn SpriteBuilder among many other things while doing my part for Apportable. But this change in time allotment also gave me a welcome “time off” and the opportunity to start working on TilemapKit, a tilemap game development framework for Cocos2D and Sprite Kit.

And if you ask me personally where I stand on the issue of two forks, I will say that I’d rather have them spoon. 😀

But seriously, I think both projects have merit and the thing with forks this fresh is whether both can attract a decent following from the start and are henceforth continuously maintained and updated, and actually differ on things that matter to users. Perhaps this forking will even motivate both parties to better their own respective forks. In a way it also doubles the chances for the Objective-C version of Cocos2D to stay meaningful, one fork or the other.


This article was brought to you by ...

I very much enjoy the learning process, the pushing of boundaries (mine and yours and that of technology), having the freedom to pursue whatever is on my mind, to boldly program what no one has programmed before, and to write about what I've learned. Help me help you by browsing the products in the Learn Cocos2D Store.

Tagged with:  

Comments are closed.