Cocos2d-x 学习几笔1
来源:互联网 发布:网络媒介素养的层次 编辑:程序博客网 时间:2024/05/16 23:35
How to Start a New Cocos2d-x Game
This documentation will show you how to use cocos console to create and run a new project.
Runtime Requirements
- Android 2.3+
- iOS 5.0+
- OS X 10.7+
- Windows 7+
- Ubuntu 12.04+
- Cocos2d-x v3.0+
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
MyGame
: name of your project-p com.MyCompany.MyGame
: package name for android-l cpp
: programming language used for the project, valid value iscpp
andlua
-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
-s
: directory of the new project. This could be an absolute path or a relative path.-p
: which platform to run on. Options areios
,android
,win32
,mac
andlinux
.
(Note: You are a tmux user, you should add reattach-to-user-namespace
before the command cocos
. For more information, please refer to this link for more information.)
You can run cocos run --help
for more detail information.
For Win32 Users
using cmd
as your shell: cd cocos2d-x-3.1.1\tools\cocos2d-console\bin
or to wherever you have this on your filesystem
Then execute something like: cocos.py new YourGameTitle -p com.yourcompany.gametitle -l cpp -d C:\YourGameTitle
For Linux Users
The process should be the same.
- Cocos2d-x 学习几笔1
- Cocos2d-x 3.1.1 学习日志4--cocos2d-x解决中文乱码问题的几种办法
- Cocos2d-x学习(1) - cocos2d环境配置
- 学习cocos2d-x笔记-1
- cocos2d-x 学习笔记1
- Cocos2d-x学习--IOS(1)
- cocos2d-x 学习笔记1
- Cocos2d-x学习(1)
- Cocos2d-x学习笔记1
- Cocos2d-x学习笔记1
- 学习1--Cocos2d-x概要
- cocos2d-x学习笔记(1)
- Cocos2d-x学习笔记(3)cocos2d-x的坐标系相关概念的几点使用说明
- cocos2d-x 学习点滴(1) 初识cocos2d-x
- 学习cocos2d-x 之路 (1)--了解cocos2d-x
- cocos2d-x-LuaProxy学习日志(1) -- Cocos2d-x HelloLua 介绍
- cocos2d-x-LuaProxy学习日志(1) -- Cocos2d-x HelloLua 介绍
- cocos2D-X源码分析之从cocos2D-X学习OpenGL(1)----cocos2D-X渲染结构
- LinuxMint(Ubuntu ver)配置FTP 的 iptables 防火墙
- struts和struts2的区别
- 辗转相除法求最大公约数Java实现
- linux常用的命令
- Drawable、Bitmap、Canvas、Paint和 Matrix 的关系和使用
- Cocos2d-x 学习几笔1
- log4j 配置参考
- mac 文件的显示和隐藏
- 从 Win8.1 到 Win10
- Windows + Tmux + Cygwin
- U-Boot启动第一阶段代码分析
- Canvas drawText()和drawBitmap()
- mysql 创建用户
- Android多个Activity之间共享类(数据)——Application Context