I’m proud to announce that, cocos2d family spreads to the last important platform: Windows Phone 7. This branch is named: Cocos2d-x for XNA.
Beta release download: http://cocos2d-x.googlecode.com/files/cocos2d-x-for-xna-0.1.0.zip
Github repository: http://github.com/cocos2d/cocos2d-x-for-xna/
Inheriting the open source spirit from cocos2d-iphone, this branch is also open & free under MIT License.
Many developers hope that WP7 can support C++ and GCC, but the bitter reality is that Windows Phone 7 has not open native language layer and no OpenGL ES support. We have no choice except porting the whole cocos2d framework into C# language, base on Microsoft’s XNA framework. In this way, we can migrate cocos2d games onto WP7 only by programming languages translation, without any knowledge of the difference between OpenGL ES and XNA required.
Most features of cocos2d have been implemented. As the video shows:
But features below are semi-finished or TBD in the next version:
- Transition
- Grid
- Dispatcher of hardware keys messages
- Accelerometer
Cocos2d-x core team and OpenXLive.com achieve the alpha release together. Cocos2d-x for XNA branch will keep update and sync the translation with cocos2d-iphone & cocos2d-x monthly. Any feedbacks, suggestions, bug reports would be appreciated, please post them into http://cocos2d-x.org/projects/cocos2d-x/boards/17 We’ll create bug tracking from posts. If you release games based on this branch, please let me know.
Wish everyone here can make a good profit from Windows Phone 7


awesome news! is this port usable for xna desktop development too?
No yet, but I think it’s not too hard to port it. You can have a try.
Great work guys!
Great work and awesome news!
This is awesome news! As for the source code conversion, I’ve already started working on that problem. I wrote a program called Automagical to give you a head start with translation from Objective-C to C#. It was made for the very purpose of porting our iOS game to XNA. I used my own framework (XNI), but another game at our studio is done with Cocos2D, so we can now port that to WP7! When that happens I’m sure I could make a module to specialize in translating between the iOS and XNA api of Cocos. If anyone’s interested, let me know.
Wow — this is great — Now porting is possible, I want to gladly contribute to Cocos2D W7
well done,thx for Walzer
awesome news. thanks to all those who put in the hard work
Thanks a ton!! this makes my work much much much more simpler
Very important to have a fully C# version of Cocos2D, all PS Suite applications need pure C# code and do not let you use C/C++ code.
Great work guys! already exists details of the API ? xD
@Panajev…Yes, I agree. It would be nice to have a pure C# implementation of Cocos2D for the PS Suite. I believe the PSS uses OpenGL ES too.
@KahunaCoder yes, and apparently the main developers of the open source XNA implementation (http://monogame.codeplex.com/) are going to port it to PS Suite soonish. I think the best bet is to stand behind Mono.Net and MonoDevelop for projects such as this one.
@Matej Jan I am very interested in the Automagical tool, it would really help out a lot.