Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg28_drag
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
dg28_drag
Commits
d0130aa2
Commit
d0130aa2
authored
Dec 16, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音效增加
parent
e6a89b70
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
26 deletions
+27
-26
dg28_drag.fire
assets/dg28_drag/scene/dg28_drag.fire
+22
-22
dg28_drag.ts
assets/dg28_drag/scene/dg28_drag.ts
+5
-4
No files found.
assets/dg28_drag/scene/dg28_drag.fire
View file @
d0130aa2
...
...
@@ -1970,7 +1970,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
73ZnEP4FJMVaWcshSwMy35
"
"_id": "
fbzRyXxD9OwLKO+6qWtnY4
"
},
{
"__type__": "cc.Label",
...
...
@@ -2003,7 +2003,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
d7AW/cSWdIUbNnujzQlKg8
"
"_id": "
06/oZ5Kc5BbqL0/dGm17Wl
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -2066,7 +2066,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
6163ZJ0VlFd4SKIJuAWVxd
"
"_id": "
90vW9AJoNFhILPqxz4k/b+
"
},
{
"__type__": "cc.Label",
...
...
@@ -2099,7 +2099,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
4b6Q98uaVArYmslDmxFtPS
"
"_id": "
84LXwoWyRIy5Xxj1UW3qiZ
"
},
{
"__type__": "cc.RichText",
...
...
@@ -2670,7 +2670,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "6
b25fshBdAcZ925W8rw5+Z
"
"_id": "6
fLe5dJr5LWLu6y7uYkOtY
"
},
{
"__type__": "cc.Label",
...
...
@@ -2703,7 +2703,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
b2xnNVtpdKW5sVkcuuhn6A
"
"_id": "
494WYP6clOeacseQqfFlKm
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -2766,7 +2766,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
19Ll3MbxJEIJFugc7C1KiZ
"
"_id": "
fajdqkN/9I7Lr3ZR1tcmZ6
"
},
{
"__type__": "cc.Label",
...
...
@@ -2799,7 +2799,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
70Hy0l+HlLL6jv4Oa/VGnQ
"
"_id": "
3cFSU1eX9P/ojUUXJsQXjY
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -2862,7 +2862,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
e1fr/H00RM7KVEqIH3G4d/
"
"_id": "
dcVvq/8WJBsrll74ls+XH3
"
},
{
"__type__": "cc.Label",
...
...
@@ -2895,7 +2895,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
f3up8mDHBEZp5ywvqP5dsa
"
"_id": "
dexZo3OtBEiI719yPt6YEn
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -2958,7 +2958,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
04FBRKuCdLG4OU4HCnIcWA
"
"_id": "
192Ddvt8RCAJ3L4XcwG1xC
"
},
{
"__type__": "cc.Label",
...
...
@@ -2991,7 +2991,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
f2dotnXQhL77vqB93/LjKd
"
"_id": "
9fxA6pNK9KDKP8OPzfwVOG
"
},
{
"__type__": "cc.RichText",
...
...
@@ -3994,7 +3994,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "8
0WAH5fCtIQIq7PXEAb4Vc
"
"_id": "8
7hdH/W59JNJmW2BDgCyPz
"
},
{
"__type__": "cc.Label",
...
...
@@ -4027,7 +4027,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
4916d62wtIsKHym/+iAjTM
"
"_id": "
2dsP3ifcZJG6pU4ESnokDO
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -4090,7 +4090,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
099oYJ7a5MUI1RQSuTTjCD
"
"_id": "
e7DkeTIp5DaZwy6kyQ1eM7
"
},
{
"__type__": "cc.Label",
...
...
@@ -4123,7 +4123,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
21THjUVipHqaR5HNe3rqdJ
"
"_id": "
b9PIrbBeBLtb9PY0xTF+dl
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -4186,7 +4186,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
23ACx9nSBITrg7kKxwaHNt
"
"_id": "
f3RzN75tVJ3aEnKe1iZHcU
"
},
{
"__type__": "cc.Label",
...
...
@@ -4219,7 +4219,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
4bVeqIdTtN/5vQHNX2Vegq
"
"_id": "
03cHa3vwNJPqpxg1lILPIV
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -4282,7 +4282,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
7eW3Nsl1RC/6emGLmGgWUu
"
"_id": "
c2EXPzH8NOLa9RS9c3nw62
"
},
{
"__type__": "cc.Label",
...
...
@@ -4315,7 +4315,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
8atYUeTilNj7v4MuBkGe1B
"
"_id": "
28D8ELJfxPSpVXgKkQNWS/
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -4378,7 +4378,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
eeXSTCroZKzYT7CcIMR6G2
"
"_id": "
d8ac+vZOFPubMJrc1F01pU
"
},
{
"__type__": "cc.Label",
...
...
@@ -4411,7 +4411,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
a3CN09Tb1JAqYB3+qLH32v
"
"_id": "
ebVKniHQ9N4bKN9LZsLM6R
"
},
{
"__type__": "cc.RichText",
...
...
assets/dg28_drag/scene/dg28_drag.ts
View file @
d0130aa2
...
...
@@ -28,8 +28,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
initData
();
this
.
initView
();
this
.
initEvent
();
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
).
getComponent
(
dg_xiaodi
).
playEnter
(
this
.
data
.
npcAudio
)
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
).
getComponent
(
dg_xiaodi
).
playEnter
(
this
.
data
.
npcAudio
)
.
then
(()
=>
{
this
.
initGame
();
})
}
_cantouch
=
null
;
...
...
@@ -463,7 +464,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
node
=
this
.
createItemMain
(
data
);
node
.
x
=
SceneComponent
.
mainStartPos
.
x
;
node
.
y
=
SceneComponent
.
mainStartPos
.
y
;
cc
.
tween
(
node
).
to
(
1
,
{
x
:
SceneComponent
.
mainDefaultPos
.
x
,
y
:
SceneComponent
.
mainDefaultPos
.
y
}).
start
();
cc
.
tween
(
node
).
to
(
0.3
,
{
x
:
SceneComponent
.
mainDefaultPos
.
x
,
y
:
SceneComponent
.
mainDefaultPos
.
y
}).
start
();
return
node
;
}
createItemMain
(
data
)
{
...
...
@@ -528,7 +529,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 两边丢弃
this
.
discardCurrent
();
// 中间移出
cc
.
tween
(
this
.
currentMain
).
by
(
1
,
{
y
:
-
1800
}).
start
();
cc
.
tween
(
this
.
currentMain
).
by
(
0.3
,
{
y
:
-
1800
}).
start
();
this
.
playLocalAudio
(
'
nextgame
'
)
// 中间移入
let
node
=
this
.
nextLayoutMain
(
this
.
nextQuestion
);
...
...
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