微信小游戏game.json
·
{
"deviceOrientation": "portrait",
"entryPagePath": "pages/index/index",
"networkTimeout": {
"request": 10000,
"downloadFile": 10000
},
"pages": [
"pages/index/index",
"pages/game/game",
"pages/rank/rank"
],
"window": {
"navigationBarBackgroundColor": "#000000",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "游戏名称",
"backgroundColor": "#ffffff",
"backgroundTextStyle": "light",
"enablePullDownRefresh": true
},
"tabBar": {
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "images/home.png",
"selectedIconPath": "images/home-active.png"
},
{
"pagePath": "pages/game/game",
"text": "游戏",
"iconPath": "images/game.png",
"selectedIconPath": "images/game-active.png"
},
{
"pagePath": "pages/rank/rank",
"text": "排行榜",
"iconPath": "images/rank.png",
"selectedIconPath": "images/rank-active.png"
}
]
},
"sitemapLocation": "sitemap.json",
"subpackages": [
{
"root": "subpkg",
"name": "subpkg"
}
],
"plugins": {
"myPlugin": {
"version": "1.0.0",
"provider": "wx1234567890"
}
},
"preloadRule": {
"page1": {
"network": "all",
"packages": [
"package1"
]
}
}
}
说明:
deviceOrientation: 游戏的屏幕方向,可以是portrait(竖屏)或landscape(横屏)。entryPagePath: 游戏的入口页路径。networkTimeout: 网络请求和下载文件的超时时间。pages: 游戏的页面列表,可以包含多个页面路径。window: 游戏的窗口属性,例如导航栏颜色、启动页、背景色等。tabBar: 游戏的底部导航栏,可以包含多个tab页。sitemapLocation: 游戏的站点地图的路径。subpackages: 游戏的分包列表,可以包含多个分包。plugins: 游戏的插件列表,可以包含多个插件。preloadRule: 游戏的预加载规则,可以对不同页面进行预加载设置。
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)