Cocos2d-x Application Wizard for Visual Studio User Guide

Source: Internet
Author: User
Tags visual studio 2010
  • Cocos2d-x
    Application Wizard for Visual Studio User Guide

    • 0.
      Overview
    • 1.
      Frist of all, get cocos2d-x source code from github
    • 2.
      Build Cocos2d-x Solution

      • Win32
    • 3.
      Install the cocos2d-x application wizard to Micro Soft Visual C ++ development environment
    • 4.
      Add a New Application Project
    • 5.
      Build and Run the New Cocos2d-x Project

0. Overview
  • Cocos2d-x-win32'sProject can be generated by Wizard.
  • Wizard supportsVisual Studio 2008, Visual Studio 2010 (0.8.0 or later), Visual C ++ 2008 Express (0.8.0 or later) and Visual C ++ 2010 Express (0.8.0 or later).

1. Frist of all, get the cocos2d-x source code from github
  • Source archive here:Download
  • Source code repository here:Https://github.com/cocos2d/cocos2d-x

2. Build Cocos2d-x Solution

Win32
  • RunBuild-win32.batScript, which adapts vc2008 or vc2010 automatically, to build the solution,
  • Or open cocos2d-win32 sln file and build the solution in IDE.
    • TheCocos2d-win32.vc2008.slnIs the vc2008 solution for win32.
    • TheCocos2d-win32.vc2010.slnIs the vc2010 solution for win32.

  • Confirm the binary target. (example with win32)

    1. Cocos2d-win32 binary in the folder named Debug. win32 or
      Release. win32;
    2. Cocos2d-wohone binary in PRJ_TG3 \ LIB \ Win32Lib.

  • Run HelloWorld and tests (example with win32)

|

3. Install the cocos2d-x application wizard to Micro Soft Visual C ++ development environment
  • RunInstall-templates-msvc.batTo install the cocos2d-x application wizard automatically.

    • The script files for each msvc IDE in the directory: \ template \ msvc \.
    • The script whose name with the suffix "Express" is used to install wizard for virsual c ++ express version.

4. Add a New Application Project

Warning: If you want to create a project in your own solution, modify the project Output Directory property, and replace the value "$ (SolutionDir" "..\".

|
P =.
P =.

5. Build and Run the New Cocos2d-x Project

|

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.