Commit 0c20a6e6 authored by 杨一航's avatar 杨一航

add

parent 1a9c1083
......@@ -1015,7 +1015,7 @@
{
"__type__": "cc.Node",
"_name": "bar",
"_objFlags": 512,
"_objFlags": 0,
"_parent": {
"__id__": 25
},
......
......@@ -1585,8 +1585,8 @@
0,
0,
1,
1,
1,
1.1,
1.1,
1
]
},
......
......@@ -138,7 +138,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2160,
"width": 2560,
"height": 117
},
"_anchorPoint": {
......@@ -304,7 +304,7 @@
"__uuid__": "f48fbfa6-9e8d-4f56-ae01-d15697edf229"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -328,8 +328,8 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 40,
"_left": 200,
"_right": 200,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
......@@ -10628,7 +10628,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
590,
0,
80,
0,
0,
......@@ -10806,7 +10806,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
590,
0,
80,
0,
0,
......
......@@ -14,10 +14,13 @@ export class AI {
private _countDelay: number;
private _stepIndex: any;
wordList: any;
private _tryAnswer: boolean;
private _otherWord: any;
constructor(networkHelper: NetworkHelper, playerData: any, wordList) {
this.networkHelper = networkHelper;
this.playerData = playerData;
this.wordList = wordList;
this._tryAnswer = false;
}
async onFrameEvent(data) {
......@@ -38,6 +41,15 @@ export class AI {
} else if (this._gameData.Round == 2) {
this._countDelay--;
if (this._countDelay <= 0) {
if (Math.random() > 0.5) {
this._sendMsg({ type: MsgType.USER_REQ_WOED, data: { word: this._otherWord, uuid: this.playerData.uuid } })
}
this._countDelay = 100000;
}
}
}
......@@ -56,9 +68,16 @@ export class AI {
}
})
} else {
data.list.forEach((val) => {
if (val.uuid != this.playerData.uuid) {
this._otherWord = val.word;
}
})
this._startAi = true;
this._stepIndex = data.index;
this._countDelay = Math.floor(6 + Math.random() * 7);
this._countDelay = Math.floor(70 + Math.random() * 15);
}
} else if (type == MsgType.ROUND_END_EV) {
let data = msgData;
......
{
"ver": "2.3.5",
"uuid": "43be186d-e07e-461c-b445-04ac1af236ac",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 591,
"height": 260,
"platformSettings": {},
"subMetas": {
"img_shadow": {
"ver": "1.0.4",
"uuid": "d51cd8d4-2fd1-452b-8bf6-723a532a6ac5",
"rawTextureUuid": "43be186d-e07e-461c-b445-04ac1af236ac",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 591,
"height": 260,
"rawWidth": 591,
"rawHeight": 260,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "adca24e1-f8f6-4857-b111-2e7e3fac6bc0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 478,
"height": 211,
"platformSettings": {},
"subMetas": {
"img_shadow1": {
"ver": "1.0.4",
"uuid": "dd87084f-3eee-47e6-ac3e-929410b2e656",
"rawTextureUuid": "adca24e1-f8f6-4857-b111-2e7e3fac6bc0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 478,
"height": 211,
"rawWidth": 478,
"rawHeight": 211,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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