Commit 49a5e104 authored by yu's avatar yu

1

parent 33b9d065
......@@ -949,8 +949,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
rightBlock = this.jumpBlock(parseInt(riData.jump));
let idx = parseInt(riData.jump);//this.getNextRightIdx();
await this.pieceFindRightBlock(rightBlock, idx);
this.updateProgress(idx);
}
pieceRed["cantMove"] = true;
pieceBlue["cantMove"] = true;
this._status.letter = "";
......@@ -962,8 +962,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
// console.log("this._status = " + JSON.stringify(this._status));
// this._status.Blue = this._status.BuleLast;
let rightBlock = this.getCurrentBlock();
const riData = rightBlock.getComponent("BoardGame2_ItemData_hole");
// console.log(rightBlock);
let idx = this.getNextRightIdx();
// let idx = this.getNextRightIdx();
let idx = parseInt(riData.idx);//this.getNextRightIdx();
// console.log("targetIdx->" + idx);
const pieceRed = cc.find("Canvas/bg/chessBoard/pieceRed");
const pieceBlue = cc.find("Canvas/bg/chessBoard/pieceBlue");
......@@ -971,7 +973,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
pieceBlue["cantMove"] = false;
// await this.pieceFindRightBlock(rightBlock, idx);
const riData = rightBlock.getComponent("BoardGame2_ItemData_hole");
if (riData.jump != "") {
rightBlock = this.jumpBlock(parseInt(riData.jump));
idx = parseInt(riData.jump);//this.getNextRightIdx();
......@@ -1185,7 +1186,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
"tokenId": "6144295408558b08dd000001",
"applicationId": "154838659000009e"
}
testData.result.overall = Math.random() * 100;
// testData.result.overall = Math.random() * 100;
if (this.recrodEnd(testData)) {
this.playLocalAudio("正确");
await this.showVoiceGood();
......
......@@ -50,7 +50,7 @@ export class AI {
await asyncDelay(Math.random() * 1 + 10);
const idx = this.getNextRightIdx();
if (Math.random() < 0.75) {
if (Math.random() < 0.9) {
this.networkHelper.sendFrame({
type: "right",
idx: idx,
......
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