Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy17_hds
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
hy17_hds
Commits
0fa4f01c
Commit
0fa4f01c
authored
Jun 27, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
效果调整
parent
c3b52237
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1174 additions
and
200 deletions
+1174
-200
layer_ending_hy17_hds.ts
assets/hy17_hds/common/layer_ending/layer_ending_hy17_hds.ts
+4
-4
hy17_hds.fire
assets/hy17_hds/scene/hy17_hds.fire
+1159
-195
hy17_hds.ts
assets/hy17_hds/scene/hy17_hds.ts
+11
-1
No files found.
assets/hy17_hds/common/layer_ending/layer_ending_hy17_hds.ts
View file @
0fa4f01c
...
...
@@ -21,13 +21,13 @@ export default class LayerEnding extends cc.Component {
this
.
next_btn
=
pg
.
view
.
find
(
this
.
layer_center
,
"
next_btn
"
)
pg
.
view
.
touchOn
(
this
.
replay_btn
,
this
.
onTouchReplay
,
this
)
pg
.
view
.
touchOn
(
this
.
next_btn
,
this
.
onTouchNext
,
this
)
pg
.
event
.
on
(
'
layer_ending_show
'
,
()
=>
{
this
.
showLayer
();
pg
.
event
.
on
(
'
layer_ending_show
'
,
(
data
)
=>
{
this
.
showLayer
(
data
);
})
}
showLayer
()
{
showLayer
(
data
)
{
pg
.
view
.
visible
(
this
.
layer_center
,
true
)
pg
.
view
.
setString
(
pg
.
view
.
find
(
this
,
'
coin_num
'
),
'
X3
'
);
pg
.
view
.
setString
(
pg
.
view
.
find
(
this
.
layer_center
,
'
finish_box/coin_num
'
),
'
X
'
+
data
.
coin
);
let
finish_cat
=
pg
.
view
.
find
(
this
.
layer_center
,
"
finish_cat
"
)
pg
.
view
.
playDBAnimation
(
finish_cat
,
"
finish
"
,
1
);
...
...
assets/hy17_hds/scene/hy17_hds.fire
View file @
0fa4f01c
This diff is collapsed.
Click to expand it.
assets/hy17_hds/scene/hy17_hds.ts
View file @
0fa4f01c
...
...
@@ -43,6 +43,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
content
:
question
.
text
}
})
this
.
sentence_list
.
sort
((
A
,
B
)
=>
Math
.
random
()
-
0.5
)
.
sort
((
A
,
B
)
=>
Math
.
random
()
-
0.5
)
.
sort
((
A
,
B
)
=>
Math
.
random
()
-
0.5
)
.
sort
((
A
,
B
)
=>
Math
.
random
()
-
0.5
);
}
private
layer_bg
:
cc
.
Node
;
...
...
@@ -79,6 +83,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
initGame
()
{
this
.
current
=
-
1
;
this
.
sentence_list
.
sort
((
A
,
B
)
=>
Math
.
random
()
-
0.5
)
.
sort
((
A
,
B
)
=>
Math
.
random
()
-
0.5
)
.
sort
((
A
,
B
)
=>
Math
.
random
()
-
0.5
)
.
sort
((
A
,
B
)
=>
Math
.
random
()
-
0.5
);
this
.
initSentence
();
}
get
currentQuestion
()
{
...
...
@@ -312,7 +320,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
gameOver
()
{
pg
.
view
.
visible
(
this
.
sentence_box
,
false
)
pg
.
event
.
emit
(
'
layer_ending_show
'
)
pg
.
event
.
emit
(
'
layer_ending_show
'
,
{
coin
:
this
.
sentence_list
.
length
*
3
})
}
}
...
...
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