Commit a04d4a41 authored by 杨一航's avatar 杨一航

fix bug

parent 64c5d49f
...@@ -496,6 +496,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -496,6 +496,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playLocalAudio("piece"); this.playLocalAudio("piece");
await this.pieceMove(node, nowIdx, nextIdx); await this.pieceMove(node, nowIdx, nextIdx);
//todo //todo
this.playLocalAudio("wrong");
await this.pieceGoBack(node, node["nowIndex"], nowIdx); await this.pieceGoBack(node, node["nowIndex"], nowIdx);
} }
...@@ -1003,6 +1004,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -1003,6 +1004,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.log("rollTheDice done"); this.log("rollTheDice done");
if (this._status.back) { if (this._status.back) {
await this.peaceJumpAndBack(); await this.peaceJumpAndBack();
this.roundEndCheck(); this.roundEndCheck();
} else { } else {
......
...@@ -162,7 +162,7 @@ export class GameServer { ...@@ -162,7 +162,7 @@ export class GameServer {
// } else { // } else {
// step = 1; // step = 1;
// } // }
// step = 15 // step = 3
step = Math.min(step, this._totalStep - 1 - nowStep); step = Math.min(step, this._totalStep - 1 - nowStep);
console.log("random step ===" + step); console.log("random step ===" + step);
......
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