Commit 9bb07dfe authored by Friends233's avatar Friends233

重置游戏复位

parent 01475623
......@@ -145,24 +145,24 @@ export default class GameScene extends cc.Component {
{
level: 1,
/** 目标数量 */
num: 4,
num: 1,
/** 倒计时 */
cds: 50,
},
{
level: 1,
/** 目标数量 */
num: 5,
/** 倒计时 */
cds: 30,
},
{
level: 1,
/** 目标数量 */
num: 8,
/** 倒计时 */
cds: 30,
}
// {
// level: 1,
// /** 目标数量 */
// num: 5,
// /** 倒计时 */
// cds: 30,
// },
// {
// level: 1,
// /** 目标数量 */
// num: 8,
// /** 倒计时 */
// cds: 30,
// }
]
})
}
......@@ -220,9 +220,11 @@ export default class GameScene extends cc.Component {
this.isStartGame = false
this.speedMultiplier = 1
this.clipTarget = null
this.setClipState(CLIP_STATE.DEFAULT)
this.setClipState(CLIP_STATE.DEFAULT, () => {
cc.find('clipMask/clipWrp', this.node).angle = 0
cc.find('clipMask/clipWrp', this.node).getComponent(cc.Animation).stop()
})
this.clip.y = -41
cc.find('clipMask/clipWrp', this.node).angle = 0
}
/** 爪子碰撞事件 */
......@@ -255,11 +257,11 @@ export default class GameScene extends cc.Component {
this.clip.active = false
// 有道具销毁道具
if (this.clipTarget) {
// 加分道具
if (this.clipTarget.getComponent(cc.Collider).tag == 1) {
this.setStarProc()
}
this.clipTarget.getComponent('propMove').die(() => {
// 加分道具
if (this.clipTarget.getComponent(cc.Collider).tag == 1) {
this.setStarProc()
}
this.clipTarget = null
this.clipAni = false
// 场面上没有剩余加分道具,刷新道具舞台
......@@ -267,7 +269,7 @@ export default class GameScene extends cc.Component {
this.refreshStageProps()
}
})
}else {
} else {
this.clipAni = false
}
break;
......@@ -366,6 +368,7 @@ export default class GameScene extends cc.Component {
// 达到目标
if (this.starNum >= this.levelObjectives) {
this.unschedule(this.startCd)
console.log('pass')
exportEvent.fire(CUSTOM_EVENT.PASS_LEVEL, {
...this.gameConfig.LevelInfo[this.actLevel],
score: this.starNum,
......
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/1681801455800/style-mobile.css"/>
<link rel="stylesheet" type="text/css" href="https://yun.duiba.com.cn/db_games/ccc_game/template/1681803569645/style-mobile.css"/>
<style>
......@@ -90,9 +90,9 @@
</div>
</div>
<script src="https://yun.duiba.com.cn/db_games/ccc_game/template/1681801455800/src/settings.js" charset="utf-8"></script>
<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/1681801455800/main.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 type="text/javascript">
(function () {
......
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681801455800/";
window.__remoteUrl__ = "https://yun.duiba.com.cn/db_games/ccc_game/template/1681803569645/";
window.__remoteAssets__ = window.__remoteUrl__ + "assets/";
window.__version__ = 1681801455800;
window.__version__ = 1681803569645;
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