Cocos2dx 3.0 交流篇
2016-04-21 14:28
441 查看
Runtime Requirements
Android 2.3 or neweriOS 5.0 or newer
OS X 10.7 or newer
Windows 7 or newer
Linux Ubuntu 12.04 (or newer)
cocos2d-x v3.0rc(or newer)
Software
Requirements
Xcode 4.6 (for iOS or Mac)gcc 4.7 for Linux or Android. For Android ndk-r9 or newer is required.
Visual Studio 2012 (for Windows)
Python 2.7.5
Create
A New Project
$ cd cocos2d-x $ ./setup.py $ source ~/.bash_profile # may be ~/.bash_login or ~/.profile, depends on your environemnt $ cocos new MyGame -p com.MyCompany.MyGame -l cpp -d ~/MyCompany
MyGame: name of your project
-p com.MyCompany.MyGame: package name for android
-l cpp: programming language used for the project, valid value is
cppand
lua
-d ~/MyCompany: directory to hold your project
Folder structure of the generated project is as following:
(Note: The directory may be different when the project type is lua.)
Build
And Run New Project
$ cocos run -s ~/MyCompany/MyGame -p ios
-s: directory of the new project. This could be an absolute path
or a relative path.
-p: which platform to run on. Options are
ios,
android,
win32,
macand
linux.(Note: You are a tmux user, you should add
reattach-to-user-namespacebefore
the command
cocos. For more information, please refer to this
link for more information.)You can run
cocos run --helpfor more detail information.
继续...
?相关文章推荐
- cocos2d-x 3.1 集成 云风pbc
- COCOS2DX 3.0 优化提升渲染速度 Auto-batching
- COCOS2DX WIN32 版本的CPU占用25%改良策略
- cocos2dx libevent简介和使用
- Quick-cocos2d-x 与COCOS2DX 区别
- 比较Cocos2d-x v2.x与v3.x的截图功能
- COCOS2DX中的selector机制
- cocos2dx 3.2+ 项目创建与问题总汇
- cocos lua 加密与解密 混淆 (版本cocos3.4)
- cocos xcode提交错误解决方案
- COCOS2DX 与 UNITY3D 的发展浅谈
- 一、cocos2dx之如何优化内存使用(高级篇)
- 二、Cocos2dx中Android部分的c++和java实现相互调用(高级篇)
- cocos2dx编辑器cocostudio与cocosbuilder异同
- cocos2dx中Action汇总
- cocos2dx纹理缓存
- Cocos2dx制作抖动弹出对话框效果
- cocos2dx碰撞检测实现
- cocos2dx中的cocosDenshion对不同平台音频支持格式
- cocos2dx socket 通信