Skip to content

Instantly share code, notes, and snippets.

@zhangkn
Last active May 25, 2018 08:20
Show Gist options
  • Save zhangkn/9acc50b6c0455beb17b1a2d5f4f81e0e to your computer and use it in GitHub Desktop.
Save zhangkn/9acc50b6c0455beb17b1a2d5f4f81e0e to your computer and use it in GitHub Desktop.

小游戏开发者通过在根目录编写一个 game.json 文件进行配置,开发者工具和客户端需要读取这个配置,完成相关界面渲染和属性设置。

key 数据类型 说明 默认值
deviceOrientation String 支持的屏幕方向 portrait
showStatusBar Boolean 是否显示状态栏 false
networkTimeout Number 网络请求的超时时间,单位:毫秒 60000
networkTimeout.request Number wx.request 的超时时间,单位:毫秒 60000
networkTimeout.connectSocket Number wx.connectSocket 的超时时间,单位:毫秒 60000
networkTimeout.uploadFile Number wx.uploadFile 的超时时间,单位:毫秒 60000
networkTimeout.downloadFile Number wx.downloadFile 的超时时间,单位:毫秒 60000
workers String 多线程 Worker 配置项,详细请参考 Worker文档
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment