Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
L4R1_game
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
L4R1_game
Commits
b033f7eb
Commit
b033f7eb
authored
Oct 26, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音频优化
parent
8b16b7cb
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
2 deletions
+29
-2
it'syourturn.mp3
assets/L4R1_game/audios/it'syourturn.mp3
+0
-0
it'syourturn.mp3.meta
assets/L4R1_game/audios/it'syourturn.mp3.meta
+7
-0
otherturn.mp3
assets/L4R1_game/audios/otherturn.mp3
+0
-0
otherturn.mp3.meta
assets/L4R1_game/audios/otherturn.mp3.meta
+7
-0
wrong.mp3
assets/L4R1_game/audios/wrong.mp3
+0
-0
wrongNew.mp3
assets/L4R1_game/audios/wrongNew.mp3
+0
-0
wrongNew.mp3.meta
assets/L4R1_game/audios/wrongNew.mp3.meta
+7
-0
L4R1_game.ts
assets/L4R1_game/scene/L4R1_game.ts
+8
-2
No files found.
assets/L4R1_game/audios/it'syourturn.mp3
0 → 100644
View file @
b033f7eb
File added
assets/L4R1_game/audios/
wrong
.mp3.meta
→
assets/L4R1_game/audios/
it'syourturn
.mp3.meta
View file @
b033f7eb
{
{
"ver": "2.0.1",
"ver": "2.0.1",
"uuid": "
61c90b3d-7147-46b8-a8e9-b7f19726196f
",
"uuid": "
c893db8b-68b6-4f1a-a35a-983fb376ece7
",
"downloadMode": 0,
"downloadMode": 0,
"duration":
0.6818
,
"duration":
3.343673
,
"subMetas": {}
"subMetas": {}
}
}
\ No newline at end of file
assets/L4R1_game/audios/otherturn.mp3
0 → 100644
View file @
b033f7eb
File added
assets/L4R1_game/audios/otherturn.mp3.meta
0 → 100644
View file @
b033f7eb
{
"ver": "2.0.1",
"uuid": "d982949c-bff2-4ae3-b847-9ba05ddd961a",
"downloadMode": 0,
"duration": 0.888163,
"subMetas": {}
}
\ No newline at end of file
assets/L4R1_game/audios/wrong.mp3
deleted
100644 → 0
View file @
8b16b7cb
File deleted
assets/L4R1_game/audios/wrongNew.mp3
0 → 100644
View file @
b033f7eb
File added
assets/L4R1_game/audios/wrongNew.mp3.meta
0 → 100644
View file @
b033f7eb
{
"ver": "2.0.1",
"uuid": "2634b981-e21c-4670-ba5f-096b815eb072",
"downloadMode": 0,
"duration": 0.636667,
"subMetas": {}
}
\ No newline at end of file
assets/L4R1_game/scene/L4R1_game.ts
View file @
b033f7eb
...
@@ -392,6 +392,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -392,6 +392,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
_canClick
=
true
;
this
.
_canClick
=
true
;
}
else
{
}
else
{
this
.
greyDice
();
this
.
greyDice
();
asyncDelay
(
0.2
).
then
(()
=>
{
this
.
playLocalAudio
(
"
otherturn
"
)
})
}
}
// this.rollPiece();
// this.rollPiece();
...
@@ -672,7 +675,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -672,7 +675,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
roundEndCheck
(
ani
?)
{
roundEndCheck
(
isRight
?)
{
const
blueHead
=
cc
.
find
(
"
Canvas/road/blueHead
"
);
const
blueHead
=
cc
.
find
(
"
Canvas/road/blueHead
"
);
const
redHead
=
cc
.
find
(
"
Canvas/road/redHead
"
);
const
redHead
=
cc
.
find
(
"
Canvas/road/redHead
"
);
...
@@ -680,7 +683,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -680,7 +683,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
blueHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Blue
/
(
this
.
_cardList
.
length
-
1
);
blueHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Blue
/
(
this
.
_cardList
.
length
-
1
);
redHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Red
/
(
this
.
_cardList
.
length
-
1
);
redHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Red
/
(
this
.
_cardList
.
length
-
1
);
if
(
ani
)
{
if
(
isRight
)
{
if
(
this
.
isMySide
)
{
if
(
this
.
isMySide
)
{
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
right
"
,
1
);
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
right
"
,
1
);
...
@@ -731,6 +734,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -731,6 +734,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
yourTurn
=
cc
.
find
(
"
Canvas/yourturn
"
);
const
yourTurn
=
cc
.
find
(
"
Canvas/yourturn
"
);
yourTurn
.
active
=
true
;
yourTurn
.
active
=
true
;
this
.
playLocalAudio
(
"
youturnTip
"
)
cc
.
tween
(
yourTurn
)
cc
.
tween
(
yourTurn
)
.
set
({
opacity
:
0
,
scale
:
5
})
.
set
({
opacity
:
0
,
scale
:
5
})
.
to
(
1
,
{
opacity
:
255
,
scale
:
2
})
.
to
(
1
,
{
opacity
:
255
,
scale
:
2
})
...
@@ -926,6 +930,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -926,6 +930,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
!
this
.
isMySide
&&
this
.
playLocalAudio
(
"
right
"
);
!
this
.
isMySide
&&
this
.
playLocalAudio
(
"
right
"
);
this
.
_status
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
data
.
status
));
this
.
_status
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
data
.
status
));
await
this
.
fixStep
();
await
this
.
fixStep
();
await
asyncDelay
(
2
);
this
.
roundEndCheck
(
true
);
this
.
roundEndCheck
(
true
);
}
else
if
(
item
.
data
.
type
==
"
SERVER_playerWrong
"
)
{
}
else
if
(
item
.
data
.
type
==
"
SERVER_playerWrong
"
)
{
...
@@ -937,6 +942,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -937,6 +942,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
{
}
else
{
await
this
.
pieceGoBack
();
await
this
.
pieceGoBack
();
}
}
await
asyncDelay
(
2
);
this
.
roundEndCheck
();
this
.
roundEndCheck
();
}
else
if
(
item
.
data
.
type
==
"
SERVER_playerWin
"
)
{
}
else
if
(
item
.
data
.
type
==
"
SERVER_playerWin
"
)
{
this
.
_status
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
data
.
status
));
this
.
_status
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
data
.
status
));
...
...
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