cocos code ide--js config.json文件结构
来源:互联网 发布:2016年双11淘宝销售额 编辑:程序博客网 时间:2024/06/07 02:42
config.json文件用于工程配置初始化,在程序运行之前配置好。
config.json文件结构
以下是config.json的文件实例:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"init_cfg"
:{
"isLandscape"
:
true
,
"name"
:
"HelloLua"
,
"width"
: 960,
"height"
: 640,
"entry"
:
"src/main.lua"
,
"consolePort"
: 6010,
"debugPort"
: 5086,
"forwardConsolePort"
: 10088,
"forwardUploadPort"
: 10090,
"forwardDebugPort"
: 10086
},
"simulator_screen_size"
: [
{
"title"
:
"iPhone 3Gs (480x320)"
,
"width"
: 480,
"height"
: 320
},
{
"title"
:
"iPhone 4 (960x640)"
,
"width"
: 960,
"height"
: 640
},
....
]
}
"init_cfg"
"isLandscape"
布尔类型
横竖屏配置,如果为true为横屏,如果为false为竖屏
"entry"
字符串类型
脚本启动入口文件相对工程根目录的文件路径,如:"src/main.lua"
"name"
字符串类型
工程名,显示在窗口标题中
注:这个参数只在桌面系统下生效
"width"
正整型
窗口宽
注:这个参数只在桌面系统下生效
"height"
正整型
窗口高
注:这个参数只在桌面系统下生效
"consolePort"
正整型
console端口
注:这个参数只在桌面系统下生效
"debugPort"
正整型
调试端口
注:这个参数只在桌面系统下生效
注:所有的端口配置都只在桌面平台下生效
simulator_screen_size
配置多种分辨率大小,可以自己添加或者删减,显示在runtime的view菜单中
注:这个字段只在桌面系统下生效
"title"
字符串类型
菜单标题. 如:"iPhone 3Gs (480x320)"
"width"
正整型
窗口宽
"height"
正整型
窗口高
1 0
- cocos code ide--js config.json文件结构
- Cocos code ide 常见问题
- cocos code ide快捷键
- cocos code IDE 快捷键
- cocos code ide 导入cocos2d-js自带的实例
- cocos IDE 创建js
- Cocos Code IDE入门指南
- cocos code ide重置窗口
- cocos code ide 使用教程
- Cocos Code IDE入门指南
- cocos code ide 搜索路径
- Cocos Code IDE 配置问题
- cocos2d-js研究:cocos工具生成的项目移植到cocos code ide 中
- cocos2d-js 编译android apk 用cocos Code IDE 还是 cmd命令
- cocos2d-js 3.0 beta + cocos code ide + pomelo手游框架搭建
- cocos code ide--js 中获取cocostudio中按钮以及函数回调
- mac下使用cocos code ide
- Cocos Code IDE 不能代码提示
- opencv3 确定图像强角点-goodFeaturesToTrack函数
- 黑马程序员--IO流
- Ubuntu环境下sublime3 nodejs安装与插件配置
- 蓝懿ios 技术内容和心得交流分享 11.5 控件
- opencv3 确定图像强角点-goodFeaturesToTrack函数-滚动条
- cocos code ide--js config.json文件结构
- Solr部署如何启动
- leetcode-Missing Number
- Web工程阶段性总结
- opencv3 实现Harris角点检测:cornerHarris函数
- MJRefresh-- iOS下拉刷新第三方类库
- Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- SVM入门(九)松弛变量(续)
- opencv3 实现Harris角点检测:cornerHarris函数-滚动条