Reprint: Six things you need to do to access Windows devices Cocos2d-x games

Source: Internet
Author: User

Original address: http://msopentech.com/zh-hans/blog/2014/05/09/cocos2d-x-%E6%B8%B8%E6%88%8F%E6%8E%A5%E5%85%A5-windows-%E8% Ae%be%e5%a4%87%e6%89%80%e9%9c%80%e5%81%9a%e7%9a%84%e5%85%ad%e4%bb%b6%e4%ba%8b/released on 2014-05-09author Chen Zhongyue

Cocos2d-x is an excellent open-source C + + cross-platform game engine for mobile device game development. Microsoft Open Technology is providing code for open source projects to support Windows devices.

Last month, we partnered with Beijing Touch Technology Limited to organize the first-round programming marathon, inviting developers from Big Fish, Pixowl, PlayFirst and Idle games. The purpose of this event is to enable access to the Windows Phone and Windows Store for existing Cocos2d-x games on Android and IOS systems. We have benefited a lot from the one-day programming contest. We've written some tips into the white paper, detailing the six main steps required to introduce Cocos2d-x games to Windows, and are happy to share them with you on our project page.

Dale Stammen, the project's lead developer, details the six steps required to run existing code on the Windows Phone and/or Windows store:

    1. Use the project creation tool to create a cocos2d-x project.
    2. Create Windows 8 and Windows Phone projects in Visual Studio.
    3. Copy the source code containing C + + and header files to the project's "Class" directory. Add these files to your project in Visual Studio.
    4. Copy the resource to the project's "Resources" directory.
    5. Modify some of the project settings that are required for compilation.
    6. For Windows Phone, convert the MP3 file to a WAV file. Also, replace fonts that are not supported by Windows Phone, or update the code to use the fonts available on the platform

Sounds very simple, doesn't it? If you have already written a cross-platform game, you may have completed some of the above steps. If you are planning to develop a cross-platform game, you can take a look at these steps. With just a little extra effort, you can open up a broad market for Windows 8 and Windows Phone devices.

Expect to see these new games in the Windows store, and always welcome your feedback. Tell us about your access to cocos2d-x games and we are happy to incorporate your feedback into the white paper.

Another: The first Cocos2d-x Engine programming Marathon successfully held, the winner candidate code has been loaded into GitHub

Tutorial: Importing Cocos2d-x Games into Windows and Windows Phone Tutorials (English version)

Liu Tiandong

Chief Technology Promotion Specialist, Microsoft Open Technology (China)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.