Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jj15_zww
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
jj15_zww
Commits
d2409335
Commit
d2409335
authored
Apr 11, 2024
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
爪子流程完毕
parent
4cba23aa
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
646 additions
and
364 deletions
+646
-364
jj16_lianci.fire
assets/jj16_lianci/scene/jj16_lianci.fire
+519
-352
jj16_lianci.ts
assets/jj16_lianci/scene/jj16_lianci.ts
+56
-10
pg_jj16_lianci.ts
assets/jj16_lianci/scene/pg_jj16_lianci.ts
+1
-1
zhua_zi_dong_hua.meta
assets/jj16_lianci/textures/jj15/zhua_zi_dong_hua.meta
+12
-0
zhua_zi_ske.json
...16_lianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_ske.json
+1
-0
zhua_zi_ske.json.meta
...anci/textures/jj15/zhua_zi_dong_hua/zhua_zi_ske.json.meta
+5
-0
zhua_zi_tex.json
...16_lianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_tex.json
+1
-0
zhua_zi_tex.json.meta
...anci/textures/jj15/zhua_zi_dong_hua/zhua_zi_tex.json.meta
+5
-0
zhua_zi_tex.png
...j16_lianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_tex.png
+0
-0
zhua_zi_tex.png.meta
...ianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_tex.png.meta
+36
-0
form.component.html
form/src/app/form/form.component.html
+10
-1
No files found.
assets/jj16_lianci/scene/jj16_lianci.fire
View file @
d2409335
This diff is collapsed.
Click to expand it.
assets/jj16_lianci/scene/jj16_lianci.ts
View file @
d2409335
...
...
@@ -126,6 +126,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
count
=
0
;
this
.
touchForbid
=
true
;
this
.
voiceTouchForbid
=
true
;
this
.
gou_node
.
orgPos
=
cc
.
v2
(
this
.
gou_node
)
let
currentLayer
=
this
.
createLayer
();
this
.
updateLayer
(
currentLayer
,
this
.
CurrentData
,
this
.
count
)
this
.
layers
.
push
(
currentLayer
)
...
...
@@ -426,6 +427,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
gameOver
()
{
if
(
!
this
.
showFires
)
this
.
showFires
=
{};
if
(
!
this
.
showFires
[
`
${
this
.
count
}
`
])
{
this
.
showFires
[
`
${
this
.
count
}
`
]
=
true
;
hw
.
util
.
playEndTrebleFirework
();
}
this
.
sendData
().
then
(()
=>
{
if
(
!
cc
.
find
(
'
middleLayer
'
))
return
;
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
...
...
@@ -550,14 +556,39 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
currentDt
=
data
;
this
.
touchForbid
=
true
;
// 移动钩子过来 然后弹出面板
cc
.
tween
(
this
.
gou_node
)
.
to
(
1
,
{
x
:
item
.
x
})
.
to
(
0.5
,
{
y
:
item
.
y
})
// 移动钩子
.
to
(
0.5
,
{
x
:
item
.
x
})
// 下钩
.
to
(
0.5
,
{
y
:
item
.
y
+
item
.
height
/
2
})
// 播放钩子动画
.
call
(()
=>
{
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
gou_node
,
'
img
'
),
false
);
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
gou_node
,
'
ani
'
),
true
);
let
ani
=
pg
.
view
.
playDBAnimation
(
pg
.
view
.
find
(
this
.
gou_node
,
'
ani
'
),
'
newAnimation
'
,
1
);
ani
.
timeScale
=
1
;
})
// 等待动画
.
delay
(
1
)
// 获取图片坐标后隐藏
.
call
(()
=>
{
let
ani
=
pg
.
view
.
playDBAnimation
(
pg
.
view
.
find
(
this
.
gou_node
,
'
ani
'
),
'
newAnimation
'
,
1
);
ani
.
timeScale
=
-
1
;
this
.
touchForbid
=
false
;
// showRecord 传递坐标 执行内部动画效果
this
.
showRecord
(
item
);
})
.
delay
(
1
)
.
call
(()
=>
{
pg
.
view
.
playDBAnimation
(
pg
.
view
.
find
(
this
.
gou_node
,
'
ani
'
),
'
newAnimation
'
,
1
);
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
gou_node
,
'
img
'
),
true
);
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
gou_node
,
'
ani
'
),
false
);
})
// 钩子移动回去
.
to
(
0.5
,
{
y
:
this
.
gou_node
.
orgPos
.
y
})
.
to
(
0.5
,
{
x
:
this
.
gou_node
.
orgPos
.
x
})
.
start
();
}
...
...
@@ -566,14 +597,31 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
(
cc
.
Node
)
private
btn_close
:
cc
.
Node
=
null
;
showRecord
(
item
)
{
item
.
active
=
false
;
this
.
layout_record
.
active
=
true
;
// 卡片显示
let
bg
=
pg
.
view
.
find
(
this
.
layout_record
,
'
bg
'
)
bg
.
opacity
=
0
;
cc
.
tween
(
bg
).
to
(
0.5
,
{
opacity
:
155
}).
start
();
let
card
=
pg
.
view
.
find
(
this
.
layout_record
,
'
card
'
)
this
.
updateCard
(
card
,
this
.
currentDt
)
let
startPos
=
cc
.
v2
(
item
);
let
endPos
=
cc
.
v2
(
card
);
let
startScale
=
item
.
width
/
card
.
width
card
.
scale
=
startScale
;
card
.
x
=
startPos
.
x
;
card
.
y
=
startPos
.
y
;
cc
.
tween
(
card
).
to
(
0.5
,
{
x
:
endPos
.
x
,
y
:
endPos
.
y
,
scale
:
1
}).
start
();
// 音频处理
let
btn_voice
=
pg
.
view
.
find
(
this
.
layout_record
,
'
btn_voice
'
)
btn_voice
.
data
=
this
.
currentDt
;
// 展示待录音内容
let
normal
=
pg
.
view
.
find
(
btn_voice
,
'
normal
'
)
let
ing
=
pg
.
view
.
find
(
btn_voice
,
'
ing
'
)
...
...
@@ -610,6 +658,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
onTouchRecordClose
()
{
this
.
layout_record
.
active
=
false
;
this
.
currentItem
.
active
=
true
;
}
// current 和 currentCard
btn_voice_time_id
:
any
;
...
...
@@ -675,15 +724,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
recordExcellent
()
{
if
(
!
this
.
showFires
)
this
.
showFires
=
{};
if
(
!
this
.
showFires
[
`
${
this
.
count
}
`
])
{
this
.
showFires
[
`
${
this
.
count
}
`
]
=
true
;
hw
.
util
.
playEndTrebleFirework
();
}
this
.
currentItem
.
parent
=
null
;
this
.
currentItem
=
null
;
this
.
onTouchRecordClose
();
}
recordTryAgain
()
{
// this.onTouchRecordClose();
}
private
currentPlayAudioId
:
any
;
...
...
assets/jj16_lianci/scene/pg_jj16_lianci.ts
View file @
d2409335
...
...
@@ -533,7 +533,7 @@ let pg = {
});
return
skl
;
},
playDBAnimation
(
item
,
aniName
,
loop
=
-
1
)
{
playDBAnimation
(
item
,
aniName
,
loop
=
-
1
)
:
dragonBones
.
ArmatureDisplay
{
if
(
!
item
||
!
cc
.
isValid
(
item
))
return
pg
.
logger
.
w
(
"
动画播放失败,传入了错误的item
"
);
if
(
!
aniName
)
return
pg
.
logger
.
w
(
"
动画播放失败,传入了错误的aniName
"
);
let
node
=
item
.
node
?
item
.
node
:
item
;
...
...
assets/jj16_lianci/textures/jj15/zhua_zi_dong_hua.meta
0 → 100644
View file @
d2409335
{
"ver": "1.1.2",
"uuid": "39d66892-a12d-4c81-86ca-464ae43979c3",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/jj16_lianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_ske.json
0 → 100644
View file @
d2409335
{
"frameRate"
:
24
,
"name"
:
"zhua_zi"
,
"version"
:
"5.5"
,
"compatibleVersion"
:
"5.5"
,
"armature"
:[{
"type"
:
"Armature"
,
"frameRate"
:
24
,
"name"
:
"Armature"
,
"aabb"
:{
"x"
:
-101
,
"y"
:
-0.45
,
"width"
:
202
,
"height"
:
228
},
"bone"
:[{
"name"
:
"root"
},{
"length"
:
86
,
"name"
:
"爪子"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
0.25
,
"skX"
:
89.8008
,
"skY"
:
89.8008
}},{
"length"
:
91
,
"name"
:
"左指_1"
,
"parent"
:
"爪子"
,
"transform"
:{
"x"
:
87.098
,
"y"
:
8.9676
,
"skX"
:
48.0202
,
"skY"
:
48.0202
}},{
"length"
:
80
,
"name"
:
"中指_1"
,
"parent"
:
"爪子"
,
"transform"
:{
"x"
:
85.7505
,
"y"
:
-0.0019
,
"skX"
:
0.5887
,
"skY"
:
0.5887
}},{
"length"
:
91
,
"name"
:
"右指_1"
,
"parent"
:
"爪子"
,
"transform"
:{
"x"
:
86.6289
,
"y"
:
-8.1489
,
"skX"
:
-47.3328
,
"skY"
:
-47.3328
}},{
"length"
:
84
,
"name"
:
"左指_2"
,
"parent"
:
"左指_1"
,
"transform"
:{
"x"
:
92.2204
,
"y"
:
0.0673
,
"skX"
:
-83.138
,
"skY"
:
-83.138
}},{
"length"
:
84
,
"name"
:
"右指_2"
,
"parent"
:
"右指_1"
,
"transform"
:{
"x"
:
91.5721
,
"y"
:
1.1828
,
"skX"
:
80.0058
,
"skY"
:
80.0058
}},{
"length"
:
50
,
"name"
:
"中指_2"
,
"parent"
:
"中指_1"
,
"transform"
:{
"x"
:
80.9019
,
"skX"
:
-0.6746
,
"skY"
:
-0.6746
}}],
"slot"
:[{
"name"
:
"图层_4"
,
"parent"
:
"右指_2"
},{
"name"
:
"图层_5"
,
"parent"
:
"左指_2"
},{
"name"
:
"图层_3"
,
"parent"
:
"中指_2"
},{
"name"
:
"图层_7"
,
"parent"
:
"右指_1"
},{
"name"
:
"图层_6"
,
"parent"
:
"左指_1"
},{
"name"
:
"爪子_拷贝"
,
"parent"
:
"中指_1"
}],
"skin"
:[{
"slot"
:[{
"name"
:
"图层_4"
,
"display"
:[{
"name"
:
"zhuazi/图层_4"
,
"transform"
:{
"x"
:
33.82
,
"y"
:
-3.21
,
"skX"
:
-122.47
,
"skY"
:
-122.47
}}]},{
"name"
:
"图层_5"
,
"display"
:[{
"name"
:
"zhuazi/图层_5"
,
"transform"
:{
"x"
:
32.6
,
"y"
:
2.51
,
"skX"
:
-54.68
,
"skY"
:
-54.68
}}]},{
"name"
:
"图层_3"
,
"display"
:[{
"name"
:
"zhuazi/图层_3"
,
"transform"
:{
"x"
:
25.4
,
"y"
:
0.13
,
"skX"
:
-89.71
,
"skY"
:
-89.71
}}]},{
"name"
:
"图层_7"
,
"display"
:[{
"type"
:
"mesh"
,
"name"
:
"zhuazi/图层_7"
,
"width"
:
93
,
"height"
:
87
,
"vertices"
:[
16.78
,
-24.91
,
100.83
,
-26.54
,
122.07
,
-3.34
,
93.38
,
22.78
,
23.66
,
26.88
,
-5.27
,
-4.73
,
32.76
,
-25.22
,
37.82
,
26.05
,
52.5
,
25.19
,
53.22
,
-25.62
],
"uvs"
:[
0.32151
,
0
,
1
,
0.63851
,
1
,
1
,
0.5828
,
0.99885
,
0
,
0.49253
,
0
,
0
,
0.45045
,
0.12135
,
0.11837
,
0.59537
,
0.24112
,
0.70201
,
0.61561
,
0.27677
],
"triangles"
:[
9
,
3
,
1
,
1
,
3
,
2
,
6
,
7
,
9
,
7
,
8
,
9
,
8
,
3
,
9
,
0
,
4
,
6
,
4
,
7
,
6
,
5
,
4
,
0
],
"edges"
:[
1
,
2
,
2
,
3
,
4
,
5
,
5
,
0
,
0
,
6
,
7
,
4
,
3
,
8
,
8
,
7
,
6
,
9
,
9
,
1
],
"userEdges"
:[]}]},{
"name"
:
"图层_6"
,
"display"
:[{
"type"
:
"mesh"
,
"name"
:
"zhuazi/图层_6"
,
"width"
:
92
,
"height"
:
86
,
"vertices"
:[
17.73
,
24.94
,
102.03
,
25.28
,
121.94
,
3.31
,
95.6
,
-20.56
,
23.92
,
-25.53
,
-3.98
,
5.27
,
51.9
,
-23.58
,
53.03
,
25.08
,
37.44
,
25.02
,
38.19
,
-24.54
],
"uvs"
:[
0.68152
,
0
,
0
,
0.65523
,
0
,
1
,
0.38641
,
1
,
1
,
0.48314
,
1
,
0
,
0.76046
,
0.68492
,
0.39615
,
0.27437
,
0.52218
,
0.15319
,
0.8778
,
0.58608
],
"triangles"
:[
8
,
9
,
4
,
0
,
8
,
4
,
0
,
4
,
5
,
8
,
7
,
6
,
8
,
6
,
9
,
7
,
3
,
6
,
7
,
1
,
3
,
1
,
2
,
3
],
"edges"
:[
1
,
2
,
2
,
3
,
4
,
5
,
5
,
0
,
3
,
6
,
7
,
1
,
0
,
8
,
8
,
7
,
6
,
9
,
9
,
4
],
"userEdges"
:[]}]},{
"name"
:
"爪子_拷贝"
,
"display"
:[{
"name"
:
"zhuazi/爪子_拷贝"
,
"transform"
:{
"x"
:
-0.2
,
"y"
:
0.05
,
"skX"
:
-90.39
,
"skY"
:
-90.39
}}]}]}],
"animation"
:[{
"duration"
:
16
,
"playTimes"
:
0
,
"name"
:
"newAnimation"
,
"bone"
:[{
"name"
:
"左指_1"
,
"translateFrame"
:[{
"duration"
:
12
,
"tweenEasing"
:
0
},{
"duration"
:
4
,
"x"
:
20
,
"y"
:
70
}],
"rotateFrame"
:[{
"duration"
:
12
,
"tweenEasing"
:
0
},{
"duration"
:
4
,
"rotate"
:
30
}]},{
"name"
:
"右指_1"
,
"translateFrame"
:[{
"duration"
:
12
,
"tweenEasing"
:
0
},{
"duration"
:
4
,
"x"
:
20
,
"y"
:
-70
}],
"rotateFrame"
:[{
"duration"
:
12
,
"tweenEasing"
:
0
},{
"duration"
:
4
,
"rotate"
:
-30
}]},{
"name"
:
"右指_2"
,
"rotateFrame"
:[{
"duration"
:
12
,
"tweenEasing"
:
0
},{
"duration"
:
4
,
"curve"
:[
0
,
0
,
0.6926829268292684
,
0.5564271588661833
],
"rotate"
:
-20
},{
"duration"
:
0
,
"rotate"
:
20
}]},{
"name"
:
"左指_2"
,
"rotateFrame"
:[{
"duration"
:
12
,
"tweenEasing"
:
0
},{
"duration"
:
4
,
"curve"
:[
0
,
0
,
1
,
0.4208965062623602
],
"rotate"
:
20
},{
"duration"
:
0
,
"rotate"
:
-20
}]}],
"ffd"
:[{
"name"
:
"zhuazi/图层_7"
,
"slot"
:
"图层_7"
,
"frame"
:[{
"duration"
:
12
,
"tweenEasing"
:
0
},{
"duration"
:
4
,
"vertices"
:[
-90.42
,
3.51
,
0
,
0
,
0
,
0
,
0
,
0
,
-96.66
,
2.22
,
-86.61
,
3.38
]}]},{
"name"
:
"zhuazi/图层_6"
,
"slot"
:
"图层_6"
,
"frame"
:[{
"duration"
:
12
,
"tweenEasing"
:
0
},{
"duration"
:
4
,
"vertices"
:[
-123.19
,
-9.14
,
0
,
0
,
0
,
0
,
0
,
0
,
-119.71
,
-0.42
,
-95.81
,
-7.07
]}]}]}],
"defaultActions"
:[{
"gotoAndPlay"
:
"newAnimation"
}]}]}
\ No newline at end of file
assets/jj16_lianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_ske.json.meta
0 → 100644
View file @
d2409335
{
"ver": "1.0.1",
"uuid": "5ea62525-dedc-4341-bcd3-40e236741149",
"subMetas": {}
}
\ No newline at end of file
assets/jj16_lianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_tex.json
0 → 100644
View file @
d2409335
{
"name"
:
"zhua_zi"
,
"SubTexture"
:[{
"name"
:
"zhuazi/图层_4"
,
"x"
:
164
,
"height"
:
96
,
"y"
:
90
,
"width"
:
82
},{
"name"
:
"zhuazi/图层_5"
,
"x"
:
248
,
"height"
:
95
,
"y"
:
90
,
"width"
:
82
},{
"name"
:
"zhuazi/图层_3"
,
"x"
:
1
,
"height"
:
67
,
"y"
:
175
,
"width"
:
32
},{
"name"
:
"zhuazi/图层_7"
,
"x"
:
70
,
"height"
:
87
,
"y"
:
1
,
"width"
:
93
},{
"name"
:
"zhuazi/图层_6"
,
"x"
:
70
,
"height"
:
86
,
"y"
:
90
,
"width"
:
92
},{
"name"
:
"zhuazi/爪子_拷贝"
,
"x"
:
1
,
"height"
:
172
,
"y"
:
1
,
"width"
:
67
}],
"imagePath"
:
"zhua_zi_tex.png"
,
"height"
:
256
,
"width"
:
512
}
\ No newline at end of file
assets/jj16_lianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_tex.json.meta
0 → 100644
View file @
d2409335
{
"ver": "1.0.1",
"uuid": "5ccd4b2c-5401-4873-9ab8-5cfddbb70a71",
"subMetas": {}
}
\ No newline at end of file
assets/jj16_lianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_tex.png
0 → 100644
View file @
d2409335
17 KB
assets/jj16_lianci/textures/jj15/zhua_zi_dong_hua/zhua_zi_tex.png.meta
0 → 100644
View file @
d2409335
{
"ver": "2.3.5",
"uuid": "394ad3bb-1c53-4300-b0b2-ac981224ff61",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 256,
"platformSettings": {},
"subMetas": {
"zhua_zi_tex": {
"ver": "1.0.4",
"uuid": "3d566e31-773c-4ad7-a0af-4a2e2d7dd4b3",
"rawTextureUuid": "394ad3bb-1c53-4300-b0b2-ac981224ff61",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -90.5,
"offsetY": 6.5,
"trimX": 1,
"trimY": 1,
"width": 329,
"height": 241,
"rawWidth": 512,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
form/src/app/form/form.component.html
View file @
d2409335
...
...
@@ -172,13 +172,22 @@
<input
type=
"text"
class=
"input-place-red"
nz-input
[(
ngModel
)]="
option
.
text
"
placeholder=
""
(
blur
)="
save
()"
>
</div>
<div
*
ngIf=
"option.type=='img'"
class=
" option-text"
>
<div
class=
"word-input-title"
>
<span
style=
"color:red;margin-left:-15px"
>
*
</span>
<span>
录音文本:
</span>
</div>
<input
type=
"text"
class=
"input-place-red"
nz-input
[(
ngModel
)]="
option
.
text
"
placeholder=
""
(
blur
)="
save
()"
>
</div>
</div>
<div
style=
"display: block;"
>
<div>
<button
class=
"btn-red"
nz-button
nzType=
"default"
nzDanger
(
click
)="
removeoption
(
i
,
j
)"
>
减少选项
</button>
<button
class=
"btn-red"
nz-button
nzType=
"default"
nzDanger
(
click
)="
removeoption
(
i
,
j
)"
>
减少选项
</button>
</div>
<button
class=
"btn-blue"
style=
"margin-top: 10px;"
nz-button
nzType=
"default"
nzDanger
(
click
)="
copyoption
(
i
,
j
)"
>
复制选项
</button>
...
...
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