Porting your Cocos2D-x game to Windows devices
Cocos2D-x is a great open source C++ cross-platform gaming engine for building games for mobile devices. Microsoft Open Technologies is contributing code to the open source project for the Windows devices support.
What is MS Open Tech doing with Cocos2D-X?
Cocos2D-x. Cocos2D-X is originally based on OpenGL ES. Microsoft Open Technologies contributing support for Windows Devices
In order to port Cocos2D-X to Windows Devices MS Open Tech have used the Angle project, The Angle Project simply translates OpenGL ES 2 API calls to DirectX API calls.
To learn more about MS Open Tech's work with the Angle Project, check out our blog post.
To participate/contribute/just check out our work, you can visit our GitHub repo.
Learn more about porting a Cocos2D-x game from iOS or Android
To learn how to port your existing iOS or Android Cocos2D-x game to Windows Store or Windows Phone, check out this white paper.
Six Top Tips for Poring your Cocos2dx Game to Windows
These tips in a white paper that details the 6 main steps required to port games to Windows on Cocos2D-x and are happy to share it broadly on our projects page.
Here is a quick overview of the six steps which are required to get your existing code to run on Windows Phone and/or Windows Store:
- Create a Cocos2d-x project using project creator tool.
- Create Windows 8 and Windows Phone projects in Visual Studio.
- Copy the source code consisting of C++ and header files to the project Classes directory. Add these files to your project in Visual Studio
- Copy resources to the project Resources directory.
- Modify a couple of project settings necessary for compilation.
- For Windows Phone, convert any MP3 files to WAV files. Similarly, for Windows Phone replace fonts that are not supported by Windows Phone or update the code to use fonts available on the platform.