Easily port your Cocos2D-X game to Windows 8 and Windows Phone 8

Games developers will love the news: Microsoft Open Technologies, Inc. is making it easy to port a Cocos2D-X game to the Windows Store and to Windows Phone. Today, at the event Cocoa China, Zhe Wang, founder of Cocos2D-X praised MS Open Tech’s contribution that opens up a wide range of Windows devices to the popular open source game engine Cocos2D-X, allowing developers to easily reach new customers for their games.

If you have played the game Castle Clash on Android, then you experienced a Cocos2D-X based game. Cocos2D-X is an increasingly popular game engine used by lots of mobile gaming creators like Zynga, Konami, Glu, Gamevil, KingSoft…

Today, at Cocoa China, a major game developer event, Zhe Wang, founder of Cocos2D-X presented a keynote during which he officially announced the added support for Windows 8 and Windows Phone 8 to Cocos2D-X, thanking Microsoft Open Technologies, Inc. contribution to the project.

Following up to the work MS Open Tech started recently, we updated our contribution to the Cocos2D-X to add Windows Phone 8 full support and precompiled shaders to increase the overall performance. We also worked with the Cocos2D-X community to merge our branch with the master branch of the Cocos2D-X project.

Our contribution is now merged into the master branch of Cocos2D-X, and you can get started today on porting your game to Windows 8 and Windows Phone 8. The project contains samples and tests that you can use to get started on your Windows port! Keep us posted on your progress and let us know if you have questions!


12 thoughts on “Easily port your Cocos2D-X game to Windows 8 and Windows Phone 8

  1. Pingback: New contribution from MS Open Tech: full Windows 8 and Windows Phone 8 support in Cocos2D-X - Interoperability @ Microsoft - Site Home - MSDN Blogs

  2. Pingback: Опыт создания кроссплатформенной игры (iOS/Android) | Домик Миа

  3. Pingback: Using WebGL to create games for the Windows Store

  4. Is there support for hybrid silverlight / Direct3D applications on Windows Phone 8 planned. We really need this as soon as possible for our upcoming game.

    • Hi Tom
      We are indeed working on contributing some changes that add XAML support for Windows Phone 8 to Cocos2D-X. You can check out our repository that contains these changes here: https://github.com/MSOpenTech/cocos2d-x
      here are the command you need to run to use these bits while we are working with the Cocos2D-X community to merge them in the main branch:
      git clone https://github.com/MSOpenTech/cocos2d-x.git
      cd cocos2d-x
      git checkout wp8-xaml
      git submodule init
      git submodule update

      Then you can open and build cocos2d-wp8.vc2012.sln in Visual Studio.
      Please let us know if you are having issues with this one.

  5. Hi,
    we are porting our ios game for windows store but we are facing lot of problems like linker errors and compiler errors in visual studio during porting.Can you help us in any way to solve these problems or the exact way to port a game for windows store

    • Hi Shilpa,
      Please feel free to send me an email (obloch@microsoft.com) describing the issues you are facing and we’ll look into these. We can also plan for a call if need be.
      Thanks
      Olivier

  6. Hi,
    Using cocos2dx 2.2.3 version.

    I have ported a ios game to windows phone 8 – xaml. Game is running but crashes after playing some levels. i have checked it is due to out of memory. In our game we just have 40 mb of texture in which 21.2 mb has been taken by sound(wav format).

    To find the memory usage i am using following code
    long currentMemoryInBytes = Windows::Phone::System::Memory::MemoryManager::ProcessCommittedBytes;

    In the first time play its showing more than 80 mb used.
    In the second time play its showing more than 100 mb used.
    But when memory reaches to 173 Mb my app gets crashed.

    Crash memory varies with high end and low end devices. The above memory information is for nokia lumia 520.

    Calling this code to remove unsued textures helps to reduce 5-10 Mb of space.
    CCTextureCache::sharedTextureCache()->removeUnusedTextures();

    We are just postponing the release date of the game in windows phone 8.
    Expecting solution ASAP

    Thanks
    Amir

Leave a Reply