- Install python 2.6
- Open a command line window
- Go to your cocos2d-x-2.1.4\tools\project-creator folder
Run create_project.py. Usage:
create_project.py -project YourProjectName -package com.example.PakcageName -language cpp
Your project will be created in cocos2d-x-2.1.4\projects
How to create a project in VS2010 by using cocos2d-x 2.1.4
-
01-06-2022 - |
Domanda
I'm learning cocos2d-x and I want to create a project in VS, but I find that there is no template for VS, the version of cocos2d-x is 2.1.4. So I wonder what can I do to build a cocos2d-x project in VS2010 support both Lua and box2d
Many thanks :)
Soluzione
Altri suggerimenti
If you follow the solution @Chen provided, I believe there is build-in box2d support. And you can add lua support following this step.
1.add "scripting/lua/proj.win32" project to your solution in visual studio. 2.right click solution, and add "liblua" rely to your project.
rebuild your project. And add
#include <CCLuaEngine.h>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow