Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy02_paopao
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
hy02_paopao
Commits
aebd0f62
Commit
aebd0f62
authored
Jul 10, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5c7e4839
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
STYuantiSCBold03.ttf
assets/hy02_paopao/fonts/STYuantiSCBold03.ttf
+0
-0
STYuantiSCBold03.ttf.meta
assets/hy02_paopao/fonts/STYuantiSCBold03.ttf.meta
+5
-0
hy02_paopao.fire
assets/hy02_paopao/scene/hy02_paopao.fire
+2
-2
hy02_paopao.ts
assets/hy02_paopao/scene/hy02_paopao.ts
+10
-2
No files found.
assets/hy02_paopao/fonts/STYuantiSCBold03.ttf
0 → 100644
View file @
aebd0f62
File added
assets/hy02_paopao/fonts/STYuantiSCBold03.ttf.meta
0 → 100644
View file @
aebd0f62
{
"ver": "1.1.0",
"uuid": "675c915c-bf9b-4f5e-9ed2-3ce69214bfef",
"subMetas": {}
}
\ No newline at end of file
assets/hy02_paopao/scene/hy02_paopao.fire
View file @
aebd0f62
...
...
@@ -1833,7 +1833,7 @@
"_lineHeight": 100,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "
48969b30-fcda-4b40-958a-a59150c71e03
"
"__uuid__": "
675c915c-bf9b-4f5e-9ed2-3ce69214bfef
"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
...
...
@@ -2094,7 +2094,7 @@
"_lineHeight": 85,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "
48969b30-fcda-4b40-958a-a59150c71e03
"
"__uuid__": "
675c915c-bf9b-4f5e-9ed2-3ce69214bfef
"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
...
...
assets/hy02_paopao/scene/hy02_paopao.ts
View file @
aebd0f62
...
...
@@ -61,7 +61,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playOpAudio
();
})
pg
.
event
.
emit
(
'
npc_layer_back_init
'
,
this
.
data
)
pg
.
event
.
on
(
'
layer_ending_touch_replay
'
,
()
=>
{
this
.
replay
();
})
...
...
@@ -166,6 +166,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
item
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onItem
,
this
);
item
.
active
=
true
;
item
.
parent
=
this
.
layout_option
;
this
.
paopaoAction
(
item
);
})
cc
.
tween
(
this
.
layout_topic
).
to
(
0.5
,
{
y
:
this
.
topic
}).
start
();
...
...
@@ -187,11 +188,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
event
.
emit
(
"
img_voice_play_voice_end
"
);
})
}
private
async
paopaoAction
(
target
)
{
await
pg
.
time
.
delay
(
Math
.
random
()
*
1
);
cc
.
tween
(
target
).
repeatForever
(
cc
.
tween
().
to
(
1.5
+
Math
.
random
()
*
2
,
{
y
:
10
}).
to
(
1
,
{
y
:
-
10
})
).
start
();
}
private
onItem
(
e
)
{
if
(
!
this
.
touch
)
return
;
this
.
touch
=
false
;
let
target
=
e
.
target
;
cc
.
Tween
.
stopAllByTarget
(
target
);
let
data
=
target
.
data
;
if
(
!
data
.
right
)
{
this
.
playLocalAudio
(
"
error
"
);
...
...
@@ -209,7 +217,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
bg
.
active
=
false
;
pp
.
active
=
true
;
cc
.
tween
(
pp
).
to
(
0.7
,
{
opacity
:
0
}).
call
(()
=>
{
cc
.
tween
(
pp
).
to
(
0.7
,
{
opacity
:
0
}).
call
(()
=>
{
pg
.
event
.
emit
(
"
layer_coin_show_coin
"
,
3
);
}).
start
();
...
...
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