Commit ff8b98ce authored by Tt's avatar Tt

语音部分bug修复

parent ebb5ec03
{"ver":"1.1.2","uuid":"cee6c4c5-014d-49f2-821e-082f9291ab7e","isBundle":true,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":true,"android":true},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "cee6c4c5-014d-49f2-821e-082f9291ab7e",
"isBundle": true,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": true,
"android": true
},
"subMetas": {}
}
\ No newline at end of file
......@@ -6269,8 +6269,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1144,
"height": 726
"width": 1224.42,
"height": 833.16
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -875,6 +875,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
let idx = this.getNextRightIdx();
const pieceRed = cc.find("Canvas/bg/chessBoard/pieceRed");
const pieceBlue = cc.find("Canvas/bg/chessBoard/pieceBlue");
const node = cc.find(
`Canvas/bg/chessBoard/piece${this._status.current}`
);
node["touchStartPos"] = {
nodeX: node.x,
nodeY: node.y,
touchX: node.x,
touchY: node.y,
};
let lastIdx = this._status[playerMe.color];
pieceRed["cantMove"] = false;
pieceBlue["cantMove"] = false;
await this.pieceFindRightBlock(rightBlock, idx);
......@@ -890,6 +900,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
color: playerMe.color,
});
} else {
this._status[playerMe.color] = lastIdx
this.networkHelper.sendFrame({
type: "wrong",
uuid: playerMe.uuid,
......@@ -1189,7 +1200,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
}
async recrodEnd(data) {
recrodEnd(data) {
// return true;
let score = data.result.overall;
let isSuccess = this.checkWords(data);
......
......@@ -114,7 +114,7 @@ export class GameServer {
this.addPlayer(playerInfo);
}
//TODO:调试加速
}, 10000)//RandomInt(10000, 15000)
}, 1000)//RandomInt(10000, 15000)
);
}
}
......
......@@ -8,7 +8,7 @@
"genMipmaps": false,
"packable": true,
"width": 656,
"height": 443,
"height": 311,
"platformSettings": {},
"subMetas": {
"tree": {
......
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