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 @@ ...@@ -6269,8 +6269,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1144, "width": 1224.42,
"height": 726 "height": 833.16
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
......
...@@ -875,6 +875,16 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -875,6 +875,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
let idx = this.getNextRightIdx(); let idx = this.getNextRightIdx();
const pieceRed = cc.find("Canvas/bg/chessBoard/pieceRed"); const pieceRed = cc.find("Canvas/bg/chessBoard/pieceRed");
const pieceBlue = cc.find("Canvas/bg/chessBoard/pieceBlue"); 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; pieceRed["cantMove"] = false;
pieceBlue["cantMove"] = false; pieceBlue["cantMove"] = false;
await this.pieceFindRightBlock(rightBlock, idx); await this.pieceFindRightBlock(rightBlock, idx);
...@@ -890,6 +900,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -890,6 +900,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
color: playerMe.color, color: playerMe.color,
}); });
} else { } else {
this._status[playerMe.color] = lastIdx
this.networkHelper.sendFrame({ this.networkHelper.sendFrame({
type: "wrong", type: "wrong",
uuid: playerMe.uuid, uuid: playerMe.uuid,
...@@ -1189,7 +1200,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -1189,7 +1200,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}); });
} }
async recrodEnd(data) { recrodEnd(data) {
// return true; // return true;
let score = data.result.overall; let score = data.result.overall;
let isSuccess = this.checkWords(data); let isSuccess = this.checkWords(data);
......
...@@ -114,7 +114,7 @@ export class GameServer { ...@@ -114,7 +114,7 @@ export class GameServer {
this.addPlayer(playerInfo); this.addPlayer(playerInfo);
} }
//TODO:调试加速 //TODO:调试加速
}, 10000)//RandomInt(10000, 15000) }, 1000)//RandomInt(10000, 15000)
); );
} }
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 656, "width": 656,
"height": 443, "height": 311,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"tree": { "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