Commit 995852ef authored by Friends233's avatar Friends233

fix游戏返回配置项

parent 2fa3cd26
......@@ -584,7 +584,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "37PIdiibtNhZXobCTUtIet"
"_id": "e60/5zmCpJdaCo3Lh38Bja"
},
{
"__type__": "cc.Sprite",
......@@ -614,7 +614,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d71+WIthJBJqUddrXKBzFC"
"_id": "afppgo0YFIT465OSFyWm35"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
......@@ -2352,7 +2352,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "1depVa0mRBaoRbfvG4aN8y"
"_id": "daozOcvExOJ60ifbPZUTCe"
},
{
"__type__": "cc.Sprite",
......@@ -2382,7 +2382,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7enKgLYNlEC5/0N0VkvvYR"
"_id": "c6XmUdb7tC/qF3xp92UDKx"
},
{
"__type__": "cc.Node",
......@@ -2444,7 +2444,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "68N97CYAFGBLg4BZNzq8u6"
"_id": "26Uu41ED1AVqLsp/KWd9/z"
},
{
"__type__": "cc.Sprite",
......@@ -2474,7 +2474,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "f3qq2OtWBGXKrMispHkjuX"
"_id": "43qgGjKnpF94ixnz3IAja9"
},
{
"__type__": "cc.Node",
......@@ -2536,7 +2536,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5ap/Tmj5NCMYxer3sY74tG"
"_id": "6bgOy8Sh5AQZjmWK5CPYCC"
},
{
"__type__": "cc.Sprite",
......@@ -2566,7 +2566,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "2euSsdjftDGLmOlGoY/1vr"
"_id": "cdj87ZvLJKZotnyJmWTBBg"
},
{
"__type__": "cc.Node",
......@@ -2628,7 +2628,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0fQ5tBsUJPUJ342jbTq18N"
"_id": "a2VJQ8w9xAe6zPmmBCrhBJ"
},
{
"__type__": "cc.Sprite",
......@@ -2658,7 +2658,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "16m//oLoVC15Dj58sFnsY6"
"_id": "79BJMekDlHpJq8rdfuFhkD"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
......@@ -4154,7 +4154,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f3fJsGBvpAjpZZubT5D9VG"
"_id": "ccNyOO7R9G2JLAWQKJxqPl"
},
{
"__type__": "cc.Sprite",
......@@ -4184,7 +4184,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "64SQnJizFA4JH//Dvw9jSd"
"_id": "210KPLm65L/6SFVc0c4lZf"
},
{
"__type__": "cc.Node",
......@@ -4246,7 +4246,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "aeNdt761RETKzQCYr6lK74"
"_id": "16s5Phn8RIhaV80BwHS6e0"
},
{
"__type__": "cc.Sprite",
......@@ -4276,7 +4276,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7b2RiM9D9EDIuvJlQnfVdx"
"_id": "e0ntEvAadCU7o8HXRShWxq"
},
{
"__type__": "cc.Node",
......@@ -4338,7 +4338,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f06eJm0cpMJZwd/0prv465"
"_id": "3eXEEodLdPh4P37Gkwv1CV"
},
{
"__type__": "cc.Sprite",
......@@ -4368,7 +4368,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "9bqW56wrFE8bxwMlNQ3L6v"
"_id": "5dP8Bz4+5Pbb88paW9pqtK"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
......
......@@ -138,7 +138,29 @@ export default class GameScene extends cc.Component {
testInit() {
console.log('测试初始化')
exportEvent.fire(CUSTOM_EVENT.GAME_INIT, {
countDowns: [999, 10, 10]
LevelInfo: [
{
level: 1,
/** 目标数量 */
num: 10,
/** 倒计时 */
cds: 1,
},
{
level: 1,
/** 目标数量 */
num: 5,
/** 倒计时 */
cds: 30,
},
{
level: 1,
/** 目标数量 */
num: 8,
/** 倒计时 */
cds: 30,
}
]
})
}
......@@ -267,11 +289,10 @@ export default class GameScene extends cc.Component {
/** 游戏结束 */
gameOver() {
this.isGameOver = true
console.log('gameOver')
this.setClipState(CLIP_STATE.GAME_OVER)
this.unschedule(this.startCd)
exportEvent.fire(CUSTOM_EVENT.GAME_OVER, {
...this.gameConfig.LevelInfo[this.actLevel - 1],
...this.gameConfig.LevelInfo[this.actLevel],
score: this.starNum,
level: this.actLevel
})
......
This diff is collapsed.
......@@ -40,7 +40,7 @@
<!-- <script src="//yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js" crossorigin="anonymous"></script>-->
<link rel="stylesheet" type="text/css" href="https://yun.duiba.com.cn/db_games/ccc_game/template/1681784889074/style-mobile.css"/>
<link rel="stylesheet" type="text/css" href="https://yun.duiba.com.cn/db_games/ccc_game/template/1681791625573/style-mobile.css"/>
<style>
......@@ -90,9 +90,9 @@
</div>
</div>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681784889074/src/settings.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681791625573/src/settings.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681784889074/main.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681791625573/main.js" charset="utf-8"></script>
<script type="text/javascript">
(function () {
......
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681784889074/";
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681791625573/";
window.__remoteAssets__ = window.__remoteUrl__ + "assets/";
window.__version__ = 1681784889074;
window.__version__ = 1681791625573;
window.__ENV__ = "prod";
window.boot = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment