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
fc7dc3cf
Commit
fc7dc3cf
authored
Dec 12, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change 表单key值
parent
63509f87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
25 deletions
+22
-25
L5R3_GuessingGame.ts
assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.ts
+22
-25
No files found.
assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.ts
View file @
fc7dc3cf
...
...
@@ -120,12 +120,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 猫咪读条音频(匹配界面开始匹配前): audioUrl_loading
// 猫咪选牌提示音频: audioUrl_start
// 猫咪选牌超时自动选择音频: audioUrl_waiting_firstRound
// 开始猜词提示音频: audioUrl_filled
// 答错还剩一次机会: audioUrl_keyboard_pop
// 长时间不提问的提示1: audioUrl_timeout_firstround
// 长时间不提问的提示2: audioUrl_finish_firstRound
// 长时间不提问的提示3: audioUrl_waiting_secondRound
// 猫咪选牌超时自动选择音频: audioUrl_auto_chose
// 开始猜词提示音频: audioUrl_start_guessing
// 猜词待机提示音频: audioUrl_waiting_guessing
// 答错还剩两次次机会: audioUrl_tip_wrong1
// 答错还剩一次机会: audioUrl_tip_wrong2
// 长时间不提问的提示1: audioUrl_tip1
// 长时间不提问的提示2: audioUrl_tip2
// 长时间不提问的提示3: audioUrl_tip3
// 猫咪胜利结束音频(两轮游戏都结束): audioUrl_win
// 猫咪失败结束音频(两轮游戏都结束): audioUrl_lose
...
...
@@ -133,12 +135,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_loading
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_start
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_waiting_firstRound
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_waiting_secondRound
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_filled
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_keyboard_pop
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_timeout_firstround
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_finish_firstRound
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_auto_chose
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_waiting_guessing
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_start_guessing
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_tip_wrong1
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_tip1
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_tip2
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_tip3
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_win
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audioUrl_lose
});
...
...
@@ -238,25 +241,19 @@ export default class SceneComponent extends MyCocosSceneComponent {
// } else if (this._round == 2) {
asyncPlayDragonBoneAnimation
(
this
.
cat
,
"
begin
"
,
0
);
this
.
playAudioByUrl
(
this
.
data
.
audioUrl_
filled
,
()
=>
{
this
.
playAudioByUrl
(
this
.
data
.
audioUrl_
waiting_guessing
,
()
=>
{
asyncPlayDragonBoneAnimation
(
this
.
cat
,
"
normal
"
,
0
);
this
.
_catSpeaking
=
false
;
})
// }
// this.playAudioByUrl(this.data.audioUrl_filled, () => {
// aniCall();
// this._catSpeaking = false;
// asyncPlayDragonBoneAnimation(this.cat, "normal", 0)
// })
}
longTimeNoAction
()
{
let
index
=
Math
.
floor
(
Math
.
random
()
*
3
);
let
list
=
[
this
.
data
.
audioUrl_ti
meout_firstround
,
this
.
data
.
audioUrl_
finish_firstRound
,
this
.
data
.
audioUrl_
waiting_secondRound
]
this
.
data
.
audioUrl_ti
p1
,
this
.
data
.
audioUrl_
tip2
,
this
.
data
.
audioUrl_
tip3
]
cc
.
audioEngine
.
stopAllEffects
();
this
.
_catSpeaking
=
true
;
...
...
@@ -494,7 +491,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
aniCall
=
()
=>
{
this
.
_sendMsg
(
MsgType
.
USER_PREPARE_REQ
,
{});
// this.playAudioByUrl(this.data.audioUrl_
keyboard_pop
)
// this.playAudioByUrl(this.data.audioUrl_
tip_wrong1
)
// this._keyboard.showIn();
}
...
...
@@ -578,7 +575,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
})
this
.
playAudioByUrl
(
this
.
data
.
audioUrl_
filled
,
()
=>
{
this
.
playAudioByUrl
(
this
.
data
.
audioUrl_
start_guessing
,
()
=>
{
aniCall
();
this
.
_catSpeaking
=
false
;
asyncPlayDragonBoneAnimation
(
this
.
cat
,
"
normal
"
,
0
)
...
...
@@ -607,7 +604,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
_canChosendCard
=
false
;
asyncPlayDragonBoneAnimation
(
this
.
cat
,
"
begin
"
,
0
)
this
.
_catSpeaking
=
true
;
this
.
playAudioByUrl
(
this
.
data
.
audioUrl_
waiting_firstRound
,
()
=>
{
this
.
playAudioByUrl
(
this
.
data
.
audioUrl_
auto_chose
,
()
=>
{
asyncPlayDragonBoneAnimation
(
this
.
cat
,
"
normal
"
,
0
)
this
.
_catSpeaking
=
false
;
let
card
=
this
.
cardRoot
.
children
[
index
];
...
...
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