Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
gameExamine
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
毛细亚
gameExamine
Commits
44fcf91a
提交
44fcf91a
authored
11月 30, 2021
作者:
毛细亚
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
映射混淆替换
上级
81e866a5
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
129 行增加
和
83 行删除
+129
-83
game.js
game.js
+41
-83
game1.js
game1.js
+88
-0
main.min.js
subpackage/main.min.js
+0
-0
没有找到文件。
game.js
100755 → 100644
浏览文件 @
44fcf91a
require
(
'./weapp-adapter.js'
);
require
(
'./manifest.js'
);
require
(
'./egret.wxgame.js'
);
const
{
gameVersion
}
=
require
(
"./config/config.js"
);
//过审时候调整为true
const
ROOT_PATH
=
wx
.
env
.
USER_DATA_PATH
window
.
MG_banshu
=
true
;
const
CACHE_PATH
=
ROOT_PATH
const
fs
=
wx
.
getFileSystemManager
()
window
.
js_copyright
=
"著作权人 广州酷玩网络科技有限公司 出版单位名称 上海同济大学电子音像出版社
\
n著作权登记号 2013SR055848 批准文号 新广出审[2014]1090号 网络游戏出版物号 978-7-89404-095-4"
+
"
\
n抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。
\
n适龄提示:适合16岁以上使用"
;
function
downConfig
(
fileInfo
)
{
return
new
Promise
((
resolve
,
rej
)
=>
{
window
.
js_gameVars
=
{
banshu
:
false
,
const
{
fileName
,
variable
}
=
fileInfo
forwardWs
:
1
,
wx
[
'$'
+
variable
]
=
{}
ssl
:
true
,
console
.
log
(
'wx.downloadFile'
)
wx
.
downloadFile
({
qudao
:
"154"
,
url
:
'https://wanxiaomeng-1255977238.cos.ap-shanghai.myqcloud.com/'
+
fileName
,
channel
:
"154"
,
filePath
:
CACHE_PATH
+
'/'
+
fileName
,
platform
:
134
,
success
:
function
(
res
)
{
newCreateRole
:
1
,
console
.
log
(
'下载res:'
,
res
);
publish
:
true
,
const
json
=
fs
.
readFileSync
(
res
.
filePath
,
'utf-8'
)
qufu_version
:
"29"
,
wx
[
'$'
+
variable
]
=
JSON
.
parse
(
json
)
bgImg
:
"img/bg11.jpg"
,
resolve
()
bgImg0
:
"img/bugu_bg0.jpg"
,
console
.
log
(
wx
[
'$'
+
variable
])
}
isMobile
:
1
,
});
monitormessage
:
true
,
})
APIlocation
:
"https://ht-api.sszt.app.9125flying.com/"
,
subpackage
:
true
,
client
:
-
1
,
qufuType
:
3
,
cfgZipName
:
"0config.zip"
,
zipTargetDir
:
"temp_config/"
,
newCfgZip
:
true
,
//是否有新的 0cfg.zip文件
loadedCfgZip
:
false
,
//新的0cfg.zip是否下载完成
cfgTotalCount
:
6
,
configUrl
:
""
,
resUrl
:
"https://cdn.sszt.app.9125flying.com/shenqi_20210203/assets/resource/"
,
qufuCdnServer
:
"https://cdn.sszt.app.9125flying.com/shenqi_20210203/miniGame/"
,
cdnServerMTest
:
`https://cdn.sszt.app.9125flying.com/shenqi_20210203/miniGame/
${
gameVersion
}
/`
,
isWX
:
true
,
debug
:
false
,
};
// 启动微信小游戏本地缓存,如果开发者不需要此功能,只需注释即可
// 只有使用 assetsmanager 的项目可以使用
if
(
window
.
RES
&&
RES
.
processor
)
{
require
(
'./library/image.js'
);
require
(
'./library/text.js'
);
require
(
'./library/binary.js'
);
}
}
egret
.
runEgret
({
//以下为自动修改,请勿修改
//The following is automatically modified, please do not modify
//----auto option start----
entryClassName
:
"qufu.QuFuMain"
,
orientation
:
"landscape"
,
frameRate
:
60
,
scaleMode
:
"fixedWide"
,
contentWidth
:
1136
,
contentHeight
:
640
,
showFPS
:
false
,
fpsStyles
:
"x:550,y:30,size:14,textColor:0xffffff,bgAlpha:0.6"
,
showLog
:
false
,
maxTouches
:
2
,
//----auto option end----
renderMode
:
'webgl'
,
audioType
:
0
,
calculateCanvasScaleFactor
:
function
(
context
)
{
var
backingStore
=
context
.
backingStorePixelRatio
||
context
.
webkitBackingStorePixelRatio
||
context
.
mozBackingStorePixelRatio
||
context
.
msBackingStorePixelRatio
||
context
.
oBackingStorePixelRatio
||
context
.
backingStorePixelRatio
||
1
;
return
(
window
.
devicePixelRatio
||
1
)
/
backingStore
;
}
});
platform
.
initialization
();
function
checkFile
(
filePath
){
fs
.
access
({
path
:
filePath
,
success
(
res
)
{
// 文件存在
return
true
},
fail
(
res
)
{
// 文件不存在或其他错误
return
false
}
})
}
var
file1
=
downConfig
({
fileName
:
'10.bin'
,
variable
:
'a'
})
Promise
.
all
([
file1
]).
then
(()
=>
{
console
.
log
(
'完成'
)
require
(
'./game1.js'
)
})
game1.js
0 → 100755
浏览文件 @
44fcf91a
require
(
'./weapp-adapter.js'
);
require
(
'./manifest.js'
);
require
(
'./egret.wxgame.js'
);
const
{
gameVersion
}
=
require
(
"./config/config.js"
);
//过审时候调整为true
window
.
MG_banshu
=
true
;
window
.
js_copyright
=
"著作权人 广州酷玩网络科技有限公司 出版单位名称 上海同济大学电子音像出版社
\
n著作权登记号 2013SR055848 批准文号 新广出审[2014]1090号 网络游戏出版物号 978-7-89404-095-4"
+
"
\
n抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。
\
n适龄提示:适合16岁以上使用"
;
window
.
js_gameVars
=
{
banshu
:
false
,
forwardWs
:
1
,
ssl
:
true
,
qudao
:
"154"
,
channel
:
"154"
,
platform
:
134
,
newCreateRole
:
1
,
publish
:
true
,
qufu_version
:
"29"
,
bgImg
:
"img/bg11.jpg"
,
bgImg0
:
"img/bugu_bg0.jpg"
,
isMobile
:
1
,
monitormessage
:
true
,
APIlocation
:
"https://ht-api.sszt.app.9125flying.com/"
,
subpackage
:
true
,
client
:
-
1
,
qufuType
:
3
,
cfgZipName
:
"0config.zip"
,
zipTargetDir
:
"temp_config/"
,
newCfgZip
:
true
,
//是否有新的 0cfg.zip文件
loadedCfgZip
:
false
,
//新的0cfg.zip是否下载完成
cfgTotalCount
:
6
,
configUrl
:
""
,
resUrl
:
"https://cdn.sszt.app.9125flying.com/shenqi_20210203/assets/resource/"
,
qufuCdnServer
:
"https://cdn.sszt.app.9125flying.com/shenqi_20210203/miniGame/"
,
cdnServerMTest
:
`https://cdn.sszt.app.9125flying.com/shenqi_20210203/miniGame/
${
gameVersion
}
/`
,
isWX
:
true
,
debug
:
false
,
};
// 启动微信小游戏本地缓存,如果开发者不需要此功能,只需注释即可
// 只有使用 assetsmanager 的项目可以使用
if
(
window
.
RES
&&
RES
.
processor
)
{
require
(
'./library/image.js'
);
require
(
'./library/text.js'
);
require
(
'./library/binary.js'
);
}
egret
.
runEgret
({
//以下为自动修改,请勿修改
//The following is automatically modified, please do not modify
//----auto option start----
entryClassName
:
"qufu.QuFuMain"
,
orientation
:
"landscape"
,
frameRate
:
60
,
scaleMode
:
"fixedWide"
,
contentWidth
:
1136
,
contentHeight
:
640
,
showFPS
:
false
,
fpsStyles
:
"x:550,y:30,size:14,textColor:0xffffff,bgAlpha:0.6"
,
showLog
:
false
,
maxTouches
:
2
,
//----auto option end----
renderMode
:
'webgl'
,
audioType
:
0
,
calculateCanvasScaleFactor
:
function
(
context
)
{
var
backingStore
=
context
.
backingStorePixelRatio
||
context
.
webkitBackingStorePixelRatio
||
context
.
mozBackingStorePixelRatio
||
context
.
msBackingStorePixelRatio
||
context
.
oBackingStorePixelRatio
||
context
.
backingStorePixelRatio
||
1
;
return
(
window
.
devicePixelRatio
||
1
)
/
backingStore
;
}
});
platform
.
initialization
();
subpackage/main.min.js
浏览文件 @
44fcf91a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论