Commit 1dd3cc0d authored by Friends233's avatar Friends233

fix连续出钩

parent 64776f2c
......@@ -584,7 +584,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e60/5zmCpJdaCo3Lh38Bja"
"_id": "3e/LjB4NdE1bMAO+lG07cy"
},
{
"__type__": "cc.Sprite",
......@@ -614,7 +614,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "afppgo0YFIT465OSFyWm35"
"_id": "84b+cxc7NFPqhKY4NkeUSl"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
......@@ -2352,7 +2352,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "daozOcvExOJ60ifbPZUTCe"
"_id": "84W4MxTDVMnLNwJhtmKSU3"
},
{
"__type__": "cc.Sprite",
......@@ -2382,7 +2382,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c6XmUdb7tC/qF3xp92UDKx"
"_id": "69hQx2GfVLiaKq0J32gjrs"
},
{
"__type__": "cc.Node",
......@@ -2444,7 +2444,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "26Uu41ED1AVqLsp/KWd9/z"
"_id": "7a1hw+ISpDxKf4s/YnXrEK"
},
{
"__type__": "cc.Sprite",
......@@ -2474,7 +2474,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "43qgGjKnpF94ixnz3IAja9"
"_id": "adOKq/bwBHq7u6W9+o+Ste"
},
{
"__type__": "cc.Node",
......@@ -2536,7 +2536,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "6bgOy8Sh5AQZjmWK5CPYCC"
"_id": "e4FzGCAKhGcoiaCXfAW+Au"
},
{
"__type__": "cc.Sprite",
......@@ -2566,7 +2566,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "cdj87ZvLJKZotnyJmWTBBg"
"_id": "07eTO6AbdITK0or1FmWsFk"
},
{
"__type__": "cc.Node",
......@@ -2628,7 +2628,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a2VJQ8w9xAe6zPmmBCrhBJ"
"_id": "90eerWGcxLY6ZTMf0nBrJZ"
},
{
"__type__": "cc.Sprite",
......@@ -2658,7 +2658,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "79BJMekDlHpJq8rdfuFhkD"
"_id": "c45aqcasNIE4ZwbOpSWSRb"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
......@@ -4154,7 +4154,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "ccNyOO7R9G2JLAWQKJxqPl"
"_id": "39HYx6OtxLuosHJG5BuEkv"
},
{
"__type__": "cc.Sprite",
......@@ -4184,7 +4184,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "210KPLm65L/6SFVc0c4lZf"
"_id": "76YYCW7phLWJadG7scGnph"
},
{
"__type__": "cc.Node",
......@@ -4246,7 +4246,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "16s5Phn8RIhaV80BwHS6e0"
"_id": "05TSANvVxJgb1BJL1SZg30"
},
{
"__type__": "cc.Sprite",
......@@ -4276,7 +4276,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e0ntEvAadCU7o8HXRShWxq"
"_id": "00k/6WogVImrmkZDffQ6E9"
},
{
"__type__": "cc.Node",
......@@ -4338,7 +4338,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "3eXEEodLdPh4P37Gkwv1CV"
"_id": "356/LTCSJIR4RiALq95Pzx"
},
{
"__type__": "cc.Sprite",
......@@ -4368,7 +4368,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5dP8Bz4+5Pbb88paW9pqtK"
"_id": "d36CBhSfBFk5Dj5um6mZNp"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
......
......@@ -149,13 +149,13 @@ export default class GameScene extends cc.Component {
/** 倒计时 */
cds: 50,
},
// {
// level: 1,
// /** 目标数量 */
// num: 5,
// /** 倒计时 */
// cds: 30,
// },
{
level: 1,
/** 目标数量 */
num: 5,
/** 倒计时 */
cds: 30,
},
// {
// level: 1,
// /** 目标数量 */
......@@ -367,6 +367,7 @@ export default class GameScene extends cc.Component {
this.setLable('starIcon/starProc', `${this.starNum}/${this.levelObjectives}`)
// 达到目标
if (this.starNum >= this.levelObjectives) {
this.isStartGame = false
this.unschedule(this.startCd)
exportEvent.fire(CUSTOM_EVENT.PASS_LEVEL, {
...this.gameConfig.LevelInfo[this.actLevel],
......@@ -380,6 +381,7 @@ export default class GameScene extends cc.Component {
/** 下一关 */
nextLevel() {
const nextLevel = this.actLevel + 1
this.isStartGame = true
this.unschedule(this.startCd)
if (nextLevel >= this.gameConfig.LevelInfo.length) { // 已通关
this.gameOver()
......
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/1681803569645/style-mobile.css"/>
<link rel="stylesheet" type="text/css" href="https://yun.duiba.com.cn/db_games/ccc_game/template/1681884134837/style-mobile.css"/>
<style>
......@@ -90,9 +90,9 @@
</div>
</div>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681803569645/src/settings.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681884134837/src/settings.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681803569645/main.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681884134837/main.js" charset="utf-8"></script>
<script type="text/javascript">
(function () {
......
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681803569645/";
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681884134837/";
window.__remoteAssets__ = window.__remoteUrl__ + "assets/";
window.__version__ = 1681803569645;
window.__version__ = 1681884134837;
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