Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
boardgame_yyh
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
boardgame_yyh
Commits
bc84bf88
Commit
bc84bf88
authored
Sep 09, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加新功能
parent
a17019a7
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
320 additions
and
109 deletions
+320
-109
mao_ske_ske.json
assets/boardgame_yyh/dragonBones/mao_ske_ske.json
+1
-0
mao_ske_ske.json.meta
assets/boardgame_yyh/dragonBones/mao_ske_ske.json.meta
+5
-0
mao_ske_tex.json
assets/boardgame_yyh/dragonBones/mao_ske_tex.json
+1
-0
mao_ske_tex.json.meta
assets/boardgame_yyh/dragonBones/mao_ske_tex.json.meta
+5
-0
mao_ske_tex.png
assets/boardgame_yyh/dragonBones/mao_ske_tex.png
+0
-0
mao_ske_tex.png.meta
assets/boardgame_yyh/dragonBones/mao_ske_tex.png.meta
+36
-0
boardgame_yyh.fire
assets/boardgame_yyh/scene/boardgame_yyh.fire
+246
-108
boardgame_yyh.ts
assets/boardgame_yyh/scene/boardgame_yyh.ts
+19
-1
form.component.html
form_angular/src/app/form/form.component.html
+6
-0
form.component.ts
form_angular/src/app/form/form.component.ts
+1
-0
No files found.
assets/boardgame_yyh/dragonBones/mao_ske_ske.json
0 → 100755
View file @
bc84bf88
This diff is collapsed.
Click to expand it.
assets/boardgame_yyh/dragonBones/mao_ske_ske.json.meta
0 → 100644
View file @
bc84bf88
{
"ver": "1.0.1",
"uuid": "2241d503-736a-48c3-b0cb-ce0cb42379f3",
"subMetas": {}
}
\ No newline at end of file
assets/boardgame_yyh/dragonBones/mao_ske_tex.json
0 → 100755
View file @
bc84bf88
{
"width"
:
256
,
"imagePath"
:
"mao_ske_tex.png"
,
"height"
:
512
,
"name"
:
"mao_ske"
,
"SubTexture"
:[{
"width"
:
169
,
"y"
:
175
,
"height"
:
33
,
"name"
:
"猫01/影子"
,
"x"
:
64
},{
"width"
:
88
,
"y"
:
299
,
"height"
:
55
,
"name"
:
"猫01/尾巴"
,
"x"
:
1
},{
"width"
:
52
,
"y"
:
210
,
"height"
:
59
,
"name"
:
"猫01/右腿"
,
"x"
:
126
},{
"width"
:
32
,
"y"
:
249
,
"height"
:
58
,
"name"
:
"猫01/左腿"
,
"x"
:
181
},{
"width"
:
35
,
"y"
:
335
,
"height"
:
61
,
"name"
:
"猫01/右手"
,
"x"
:
178
},{
"width"
:
62
,
"y"
:
210
,
"height"
:
37
,
"name"
:
"猫01/左手"
,
"x"
:
180
},{
"width"
:
84
,
"y"
:
1
,
"height"
:
85
,
"name"
:
"猫01伸/左手伸直"
,
"x"
:
151
},{
"width"
:
84
,
"y"
:
88
,
"height"
:
85
,
"name"
:
"猫01伸/右手伸直"
,
"x"
:
151
},{
"width"
:
61
,
"y"
:
207
,
"height"
:
90
,
"name"
:
"猫01/身体"
,
"x"
:
1
},{
"width"
:
60
,
"y"
:
210
,
"height"
:
78
,
"name"
:
"猫01/领带"
,
"x"
:
64
},{
"width"
:
45
,
"y"
:
369
,
"height"
:
38
,
"name"
:
"猫01/右耳"
,
"x"
:
46
},{
"width"
:
43
,
"y"
:
356
,
"height"
:
43
,
"name"
:
"猫01/左耳"
,
"x"
:
1
},{
"width"
:
148
,
"y"
:
1
,
"height"
:
93
,
"name"
:
"猫01/组_1"
,
"x"
:
1
},{
"width"
:
30
,
"y"
:
249
,
"height"
:
30
,
"name"
:
"猫01/右眼"
,
"x"
:
215
},{
"width"
:
17
,
"y"
:
285
,
"height"
:
3
,
"name"
:
"猫01/右眉毛"
,
"x"
:
161
},{
"width"
:
30
,
"y"
:
401
,
"height"
:
30
,
"name"
:
"猫01/左眼"
,
"x"
:
1
},{
"width"
:
16
,
"y"
:
290
,
"height"
:
6
,
"name"
:
"猫01/左眉毛"
,
"x"
:
64
},{
"width"
:
85
,
"y"
:
335
,
"height"
:
32
,
"name"
:
"猫01/眼镜"
,
"x"
:
91
},{
"width"
:
88
,
"y"
:
290
,
"height"
:
43
,
"name"
:
"猫01/胡子"
,
"x"
:
91
},{
"width"
:
14
,
"y"
:
271
,
"height"
:
12
,
"name"
:
"猫01/鼻子"
,
"x"
:
161
},{
"width"
:
33
,
"y"
:
271
,
"height"
:
15
,
"name"
:
"猫01/嘴"
,
"x"
:
126
},{
"width"
:
79
,
"y"
:
96
,
"height"
:
51
,
"name"
:
"猫01/帽子"
,
"x"
:
64
},{
"width"
:
61
,
"y"
:
96
,
"height"
:
109
,
"name"
:
"猫拿话筒(1)/左小手"
,
"x"
:
1
}]}
\ No newline at end of file
assets/boardgame_yyh/dragonBones/mao_ske_tex.json.meta
0 → 100644
View file @
bc84bf88
{
"ver": "1.0.1",
"uuid": "8ec09651-e5e1-4946-bd0a-226590f5cd22",
"subMetas": {}
}
\ No newline at end of file
assets/boardgame_yyh/dragonBones/mao_ske_tex.png
0 → 100755
View file @
bc84bf88
56.1 KB
assets/boardgame_yyh/dragonBones/mao_ske_tex.png.meta
0 → 100644
View file @
bc84bf88
{
"ver": "2.3.5",
"uuid": "a51632dd-73b8-42bd-9ab2-d2b15164086a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 512,
"platformSettings": {},
"subMetas": {
"mao_ske_tex": {
"ver": "1.0.4",
"uuid": "44fef234-0c33-4a45-97ee-da0241385b79",
"rawTextureUuid": "a51632dd-73b8-42bd-9ab2-d2b15164086a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -5,
"offsetY": 40,
"trimX": 1,
"trimY": 1,
"width": 244,
"height": 430,
"rawWidth": 256,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/boardgame_yyh/scene/boardgame_yyh.fire
View file @
bc84bf88
This diff is collapsed.
Click to expand it.
assets/boardgame_yyh/scene/boardgame_yyh.ts
View file @
bc84bf88
...
...
@@ -18,7 +18,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
cat
=
null
@
property
(
cc
.
Node
)
cover
=
null
@
property
(
cc
.
Node
)
recordCat
=
null
_cardList
:
Array
<
cc
.
Node
>
=
[];
private
_isRolling
:
any
;
...
...
@@ -31,6 +32,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
_blueOriginPos
:
any
;
private
_playingAudio
:
boolean
;
private
_canClick
:
any
;
private
_recordBefore
:
boolean
=
false
;
addPreloadImage
()
{
...
...
@@ -45,6 +47,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
_audioResList
.
push
({
url
:
this
.
data
.
waitingWheel
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
waitingPiece
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
waitingTurn
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
recordTip
});
}
addPreloadAnima
()
{
}
...
...
@@ -488,6 +491,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
probar
.
getComponent
(
cc
.
ProgressBar
).
unscheduleAllCallbacks
();
let
total
=
1
;
probar
.
getComponent
(
cc
.
ProgressBar
).
progress
=
total
;
if
(
!
this
.
_recordBefore
&&
this
.
data
.
recordTip
)
{
//
this
.
_recordBefore
=
true
;
await
new
Promise
((
resolve
)
=>
{
this
.
recordCat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
normal
"
,
0
);
this
.
playAudioByUrl
(
this
.
data
.
recordTip
,
()
=>
{
this
.
recordCat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
record
"
,
0
);
console
.
log
(
"
record audio done==============
"
);
resolve
(
""
)
});
})
}
else
{
this
.
recordCat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
record
"
,
0
);
}
this
.
_startCourseware
(
word
);
await
asyncDelay
(
0.5
);
probar
.
getComponent
(
cc
.
ProgressBar
).
schedule
(()
=>
{
...
...
form_angular/src/app/form/form.component.html
View file @
bc84bf88
...
...
@@ -31,5 +31,11 @@
<app-audio-recorder
[
audioUrl
]="
item
.
waitingTurn
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
waitingTurn
')"
>
</app-audio-recorder>
</div>
<div
style=
"margin-bottom: 20px;"
>
<span
style=
"font-size: 20px;"
><b>
录音提示音频
</b>
:
</span>
<app-audio-recorder
[
audioUrl
]="
item
.
recordTip
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
recordTip
')"
>
</app-audio-recorder>
</div>
</div>
</div>
\ No newline at end of file
form_angular/src/app/form/form.component.ts
View file @
bc84bf88
...
...
@@ -26,6 +26,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
waitingWheel
:
''
,
waitingPiece
:
''
,
waitingTurn
:
''
,
recordTip
:
''
,
};
// 获取存储的数据
...
...
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