Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
l4_boardgame_space
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
l4_boardgame_space
Commits
3c3c0257
Commit
3c3c0257
authored
Nov 04, 2022
by
liubing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加音效。
parent
76037eec
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
197 additions
and
12 deletions
+197
-12
otherTurn.mp3
assets/l4_boardgame_space/audios/otherTurn.mp3
+0
-0
otherTurn.mp3.meta
assets/l4_boardgame_space/audios/otherTurn.mp3.meta
+7
-0
wrong.mp3
assets/l4_boardgame_space/audios/wrong.mp3
+0
-0
wrong.mp3.meta
assets/l4_boardgame_space/audios/wrong.mp3.meta
+1
-1
yourTurn.mp3
assets/l4_boardgame_space/audios/yourTurn.mp3
+0
-0
yourTurn.mp3.meta
assets/l4_boardgame_space/audios/yourTurn.mp3.meta
+7
-0
l4_boardgame_space.fire
assets/l4_boardgame_space/scene/l4_boardgame_space.fire
+177
-9
l4_boardgame_space.ts
assets/l4_boardgame_space/scene/l4_boardgame_space.ts
+5
-2
No files found.
assets/l4_boardgame_space/audios/otherTurn.mp3
0 → 100644
View file @
3c3c0257
File added
assets/l4_boardgame_space/audios/otherTurn.mp3.meta
0 → 100644
View file @
3c3c0257
{
"ver": "2.0.1",
"uuid": "8cf80515-8175-476b-b70e-ac7db195b004",
"downloadMode": 0,
"duration": 0.888163,
"subMetas": {}
}
\ No newline at end of file
assets/l4_boardgame_space/audios/wrong.mp3
View file @
3c3c0257
No preview for this file type
assets/l4_boardgame_space/audios/wrong.mp3.meta
View file @
3c3c0257
...
...
@@ -2,6 +2,6 @@
"ver": "2.0.1",
"uuid": "beeb5a7b-0e42-4910-985b-a099f10e328b",
"downloadMode": 0,
"duration": 0.6
818
,
"duration": 0.6
36667
,
"subMetas": {}
}
\ No newline at end of file
assets/l4_boardgame_space/audios/yourTurn.mp3
0 → 100644
View file @
3c3c0257
File added
assets/l4_boardgame_space/audios/yourTurn.mp3.meta
0 → 100644
View file @
3c3c0257
{
"ver": "2.0.1",
"uuid": "a99a5d70-5de9-4794-bd96-369d03aba1b8",
"downloadMode": 0,
"duration": 3.343673,
"subMetas": {}
}
\ No newline at end of file
assets/l4_boardgame_space/scene/l4_boardgame_space.fire
View file @
3c3c0257
...
...
@@ -23,7 +23,7 @@
"__id__": 260
},
{
"__id__": 27
3
"__id__": 27
7
}
],
"_active": false,
...
...
@@ -11729,6 +11729,12 @@
},
{
"__id__": 271
},
{
"__id__": 273
},
{
"__id__": 275
}
],
"_active": true,
...
...
@@ -12267,6 +12273,168 @@
"preload": false,
"_id": "dbccc2jl1Lw6v0V1Jts0W8"
},
{
"__type__": "cc.Node",
"_name": "yourTurn",
"_objFlags": 0,
"_parent": {
"__id__": 260
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 274
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "27g1weLrdIyqYo+kcsBMj7"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 273
},
"_enabled": true,
"_clip": {
"__uuid__": "a99a5d70-5de9-4794-bd96-369d03aba1b8"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "bf2aQP8dhEO5rprrlmK+kb"
},
{
"__type__": "cc.Node",
"_name": "otherTurn",
"_objFlags": 0,
"_parent": {
"__id__": 260
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 276
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9c9YVfAuRI4oMf8rii5gJc"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 275
},
"_enabled": true,
"_clip": {
"__uuid__": "8cf80515-8175-476b-b70e-ac7db195b004"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "587LqNLsNGKLid4SNGEAhy"
},
{
"__type__": "cc.Node",
"_name": "nodes",
...
...
@@ -12276,10 +12444,10 @@
},
"_children": [
{
"__id__": 27
4
"__id__": 27
8
},
{
"__id__": 2
76
"__id__": 2
80
}
],
"_active": true,
...
...
@@ -12337,13 +12505,13 @@
"_name": "light",
"_objFlags": 0,
"_parent": {
"__id__": 27
3
"__id__": 27
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
5
"__id__": 27
9
}
],
"_prefab": null,
...
...
@@ -12399,7 +12567,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
4
"__id__": 27
8
},
"_enabled": true,
"_materials": [
...
...
@@ -12431,13 +12599,13 @@
"_name": "star",
"_objFlags": 0,
"_parent": {
"__id__": 27
3
"__id__": 27
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
77
"__id__": 2
81
}
],
"_prefab": null,
...
...
@@ -12493,7 +12661,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
76
"__id__": 2
80
},
"_enabled": true,
"_materials": [
...
...
assets/l4_boardgame_space/scene/l4_boardgame_space.ts
View file @
3c3c0257
...
...
@@ -710,15 +710,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
playerMe
.
color
==
this
.
_status
.
current
)
{
this
.
stopGreyDice
();
if
(
this
.
_status
.
letter
==
""
)
{
await
this
.
playLocalAudio
(
"
yourTurn
"
);
this
.
showYourTurn
();
this
.
blinkTheDice
();
}
else
{
this
.
stopBlinkTheDice
();
this
.
rollPiece
(
this
.
getCurrentPiece
());
}
}
else
{
this
.
audioId
=
await
this
.
playAudioByUrl
(
this
.
data
.
otherTurn
);
if
(
this
.
_status
.
letter
==
""
)
{
await
this
.
playLocalAudio
(
"
otherTurn
"
);
}
// this.audioId = await this.playAudioByUrl(this.data.otherTurn);
// this.showOtherTurn();
this
.
greyDice
();
}
...
...
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