Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
L5R3_GuessingGame
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
L5R3_GuessingGame
Commits
0c20a6e6
Commit
0c20a6e6
authored
Nov 30, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
1a9c1083
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
464 additions
and
246 deletions
+464
-246
LoadingLayer.prefab
...5R3_GuessingGame/prefabs/LoadingLayer/LoadingLayer.prefab
+1
-1
endView.prefab
assets/L5R3_GuessingGame/prefabs/endView/endView.prefab
+2
-2
keyboard.prefab
assets/L5R3_GuessingGame/prefabs/keyboards/keyboard.prefab
+6
-6
L5R3_GuessingGame.fire
assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.fire
+363
-236
AI_L5R3_GuessingGame.ts
assets/L5R3_GuessingGame/script/AI_L5R3_GuessingGame.ts
+20
-1
img_shadow.png
assets/L5R3_GuessingGame/texture/img_shadow.png
+0
-0
img_shadow.png.meta
assets/L5R3_GuessingGame/texture/img_shadow.png.meta
+36
-0
img_shadow1.png
assets/L5R3_GuessingGame/texture/img_shadow1.png
+0
-0
img_shadow1.png.meta
assets/L5R3_GuessingGame/texture/img_shadow1.png.meta
+36
-0
No files found.
assets/L5R3_GuessingGame/prefabs/LoadingLayer/LoadingLayer.prefab
View file @
0c20a6e6
...
@@ -1015,7 +1015,7 @@
...
@@ -1015,7 +1015,7 @@
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "bar",
"_name": "bar",
"_objFlags":
512
,
"_objFlags":
0
,
"_parent": {
"_parent": {
"__id__": 25
"__id__": 25
},
},
...
...
assets/L5R3_GuessingGame/prefabs/endView/endView.prefab
View file @
0c20a6e6
...
@@ -1585,8 +1585,8 @@
...
@@ -1585,8 +1585,8 @@
0,
0,
0,
0,
1,
1,
1,
1
.1
,
1,
1
.1
,
1
1
]
]
},
},
...
...
assets/L5R3_GuessingGame/prefabs/keyboards/keyboard.prefab
View file @
0c20a6e6
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 2
1
60,
"width": 2
5
60,
"height": 117
"height": 117
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -304,7 +304,7 @@
...
@@ -304,7 +304,7 @@
"__uuid__": "f48fbfa6-9e8d-4f56-ae01-d15697edf229"
"__uuid__": "f48fbfa6-9e8d-4f56-ae01-d15697edf229"
},
},
"_type": 0,
"_type": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -328,8 +328,8 @@
...
@@ -328,8 +328,8 @@
"alignMode": 1,
"alignMode": 1,
"_target": null,
"_target": null,
"_alignFlags": 40,
"_alignFlags": 40,
"_left":
20
0,
"_left": 0,
"_right":
20
0,
"_right": 0,
"_top": 0,
"_top": 0,
"_bottom": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_verticalCenter": 0,
...
@@ -10628,7 +10628,7 @@
...
@@ -10628,7 +10628,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
59
0,
0,
80,
80,
0,
0,
0,
0,
...
@@ -10806,7 +10806,7 @@
...
@@ -10806,7 +10806,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
59
0,
0,
80,
80,
0,
0,
0,
0,
...
...
assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.fire
View file @
0c20a6e6
This diff is collapsed.
Click to expand it.
assets/L5R3_GuessingGame/script/AI_L5R3_GuessingGame.ts
View file @
0c20a6e6
...
@@ -14,10 +14,13 @@ export class AI {
...
@@ -14,10 +14,13 @@ export class AI {
private
_countDelay
:
number
;
private
_countDelay
:
number
;
private
_stepIndex
:
any
;
private
_stepIndex
:
any
;
wordList
:
any
;
wordList
:
any
;
private
_tryAnswer
:
boolean
;
private
_otherWord
:
any
;
constructor
(
networkHelper
:
NetworkHelper
,
playerData
:
any
,
wordList
)
{
constructor
(
networkHelper
:
NetworkHelper
,
playerData
:
any
,
wordList
)
{
this
.
networkHelper
=
networkHelper
;
this
.
networkHelper
=
networkHelper
;
this
.
playerData
=
playerData
;
this
.
playerData
=
playerData
;
this
.
wordList
=
wordList
;
this
.
wordList
=
wordList
;
this
.
_tryAnswer
=
false
;
}
}
async
onFrameEvent
(
data
)
{
async
onFrameEvent
(
data
)
{
...
@@ -38,6 +41,15 @@ export class AI {
...
@@ -38,6 +41,15 @@ export class AI {
}
else
if
(
this
.
_gameData
.
Round
==
2
)
{
}
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 {
...
@@ -56,9 +68,16 @@ export class AI {
}
}
})
})
}
else
{
}
else
{
data
.
list
.
forEach
((
val
)
=>
{
if
(
val
.
uuid
!=
this
.
playerData
.
uuid
)
{
this
.
_otherWord
=
val
.
word
;
}
})
this
.
_startAi
=
true
;
this
.
_startAi
=
true
;
this
.
_stepIndex
=
data
.
index
;
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
)
{
}
else
if
(
type
==
MsgType
.
ROUND_END_EV
)
{
let
data
=
msgData
;
let
data
=
msgData
;
...
...
assets/L5R3_GuessingGame/texture/img_shadow.png
0 → 100644
View file @
0c20a6e6
187 KB
assets/L5R3_GuessingGame/texture/img_shadow.png.meta
0 → 100644
View file @
0c20a6e6
{
"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
assets/L5R3_GuessingGame/texture/img_shadow1.png
0 → 100644
View file @
0c20a6e6
104 KB
assets/L5R3_GuessingGame/texture/img_shadow1.png.meta
0 → 100644
View file @
0c20a6e6
{
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment