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
4d671167
Commit
4d671167
authored
Jun 27, 2023
by
WangFan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分显示效果
parent
0fa4f01c
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1412 additions
and
1038 deletions
+1412
-1038
layer_ending_hy17_hds.prefab
...hy17_hds/common/layer_ending/layer_ending_hy17_hds.prefab
+175
-3
layer_ending_hy17_hds.ts
assets/hy17_hds/common/layer_ending/layer_ending_hy17_hds.ts
+4
-1
res.meta
assets/hy17_hds/common/layer_ending/textures/res.meta
+12
-0
ending.mp3
assets/hy17_hds/common/layer_ending/textures/res/ending.mp3
+0
-0
ending.mp3.meta
...hy17_hds/common/layer_ending/textures/res/ending.mp3.meta
+7
-0
hy17_hds.fire
assets/hy17_hds/scene/hy17_hds.fire
+1206
-1034
hy17_hds.ts
assets/hy17_hds/scene/hy17_hds.ts
+6
-0
defaultData_hy17_hds.ts
assets/hy17_hds/script/defaultData_hy17_hds.ts
+2
-0
No files found.
assets/hy17_hds/common/layer_ending/layer_ending_hy17_hds.prefab
View file @
4d671167
...
@@ -19,16 +19,19 @@
...
@@ -19,16 +19,19 @@
"_children": [
"_children": [
{
{
"__id__": 2
"__id__": 2
},
{
"__id__": 33
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 3
3
"__id__": 3
8
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 3
4
"__id__": 3
9
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -107,7 +110,7 @@
...
@@ -107,7 +110,7 @@
"__id__": 20
"__id__": 20
}
}
],
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__": 32
"__id__": 32
...
@@ -1226,6 +1229,175 @@
...
@@ -1226,6 +1229,175 @@
"fileId": "7cG7U7lH9Ie5/sK83LZUCP",
"fileId": "7cG7U7lH9Ie5/sK83LZUCP",
"sync": false
"sync": false
},
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 34
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 37
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "ending",
"_objFlags": 0,
"_parent": {
"__id__": 33
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
}
],
"_prefab": {
"__id__": 36
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
},
"_enabled": true,
"_clip": {
"__uuid__": "78fa786c-cb39-47d2-a4a8-c6325aa156bb"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "f9vxaSJK5EpYuRQDkXL09t",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "4cGmarm1NKC6LGDcWWF/bS",
"sync": false
},
{
{
"__type__": "8aa900+eYBD775dNwfvQqgE",
"__type__": "8aa900+eYBD775dNwfvQqgE",
"_name": "",
"_name": "",
...
...
assets/hy17_hds/common/layer_ending/layer_ending_hy17_hds.ts
View file @
4d671167
...
@@ -14,8 +14,10 @@ export default class LayerEnding extends cc.Component {
...
@@ -14,8 +14,10 @@ export default class LayerEnding extends cc.Component {
private
layer_center
:
cc
.
Node
;
private
layer_center
:
cc
.
Node
;
private
replay_btn
:
cc
.
Node
;
private
replay_btn
:
cc
.
Node
;
private
next_btn
:
cc
.
Node
;
private
next_btn
:
cc
.
Node
;
private
res
:
cc
.
Node
;
onLoad
()
{
onLoad
()
{
this
.
layer_center
=
pg
.
view
.
find
(
this
.
node
,
"
layer_center
"
)
this
.
layer_center
=
pg
.
view
.
find
(
this
.
node
,
"
layer_center
"
)
this
.
res
=
pg
.
view
.
find
(
this
.
node
,
"
res
"
)
pg
.
view
.
visible
(
this
.
layer_center
,
false
);
pg
.
view
.
visible
(
this
.
layer_center
,
false
);
this
.
replay_btn
=
pg
.
view
.
find
(
this
.
layer_center
,
"
replay_btn
"
)
this
.
replay_btn
=
pg
.
view
.
find
(
this
.
layer_center
,
"
replay_btn
"
)
this
.
next_btn
=
pg
.
view
.
find
(
this
.
layer_center
,
"
next_btn
"
)
this
.
next_btn
=
pg
.
view
.
find
(
this
.
layer_center
,
"
next_btn
"
)
...
@@ -26,9 +28,10 @@ export default class LayerEnding extends cc.Component {
...
@@ -26,9 +28,10 @@ export default class LayerEnding extends cc.Component {
})
})
}
}
showLayer
(
data
)
{
showLayer
(
data
)
{
let
ending
=
pg
.
view
.
find
(
this
.
res
,
"
ending
"
)
pg
.
audio
.
playLocalAudio
(
ending
)
pg
.
view
.
visible
(
this
.
layer_center
,
true
)
pg
.
view
.
visible
(
this
.
layer_center
,
true
)
pg
.
view
.
setString
(
pg
.
view
.
find
(
this
.
layer_center
,
'
finish_box/coin_num
'
),
'
X
'
+
data
.
coin
);
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
"
)
let
finish_cat
=
pg
.
view
.
find
(
this
.
layer_center
,
"
finish_cat
"
)
pg
.
view
.
playDBAnimation
(
finish_cat
,
"
finish
"
,
1
);
pg
.
view
.
playDBAnimation
(
finish_cat
,
"
finish
"
,
1
);
let
bg_light
=
pg
.
view
.
find
(
this
.
layer_center
,
"
bg_light
"
)
let
bg_light
=
pg
.
view
.
find
(
this
.
layer_center
,
"
bg_light
"
)
...
...
assets/hy17_hds/common/layer_ending/textures/res.meta
0 → 100644
View file @
4d671167
{
"ver": "1.1.2",
"uuid": "d05ee77e-7d87-4d5a-b953-c0d649f3ed2e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/hy17_hds/common/layer_ending/textures/res/ending.mp3
0 → 100644
View file @
4d671167
File added
assets/hy17_hds/common/layer_ending/textures/res/ending.mp3.meta
0 → 100644
View file @
4d671167
{
"ver": "2.0.1",
"uuid": "78fa786c-cb39-47d2-a4a8-c6325aa156bb",
"downloadMode": 0,
"duration": 4.04898,
"subMetas": {}
}
\ No newline at end of file
assets/hy17_hds/scene/hy17_hds.fire
View file @
4d671167
This diff is collapsed.
Click to expand it.
assets/hy17_hds/scene/hy17_hds.ts
View file @
4d671167
...
@@ -132,12 +132,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -132,12 +132,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
onTouchReplay
()
{
onTouchReplay
()
{
this
.
playBtnAudio
()
this
.
initGame
()
this
.
initGame
()
}
}
onTouchNext
()
{
onTouchNext
()
{
this
.
playBtnAudio
()
this
.
initGame
()
this
.
initGame
()
}
}
playBtnAudio
(){
let
btn_audio
=
pg
.
view
.
find
(
this
.
res
,
"
audio/btn
"
)
pg
.
audio
.
playLocalAudio
(
btn_audio
)
}
//--------------------------------Record-----------------------------
//--------------------------------Record-----------------------------
private
letter
:
string
;
private
letter
:
string
;
...
...
assets/hy17_hds/script/defaultData_hy17_hds.ts
View file @
4d671167
...
@@ -2,6 +2,8 @@ export const defaultData =
...
@@ -2,6 +2,8 @@ export const defaultData =
{
{
"
recordFlag
"
:
false
,
"
title
"
:
""
,
"
questionText
"
:
""
,
"
questionTextAudio
"
:
""
,
"
questions
"
:
[
"
recordFlag
"
:
false
,
"
title
"
:
""
,
"
questionText
"
:
""
,
"
questionTextAudio
"
:
""
,
"
questions
"
:
[
{
"
text
"
:
"
apple
"
,
"
time
"
:
2
},
{
"
text
"
:
"
apple
"
,
"
time
"
:
2
},
{
"
text
"
:
"
pear
"
,
"
time
"
:
2
},
{
"
text
"
:
"
pencil
"
,
"
time
"
:
2
},
{
"
text
"
:
"
While there is life there is hope
"
,
"
time
"
:
2
}],
"
bgAudio
"
:
""
,
"
bgAudioName
"
:
""
,
"
audioName
"
:
""
{
"
text
"
:
"
While there is life there is hope
"
,
"
time
"
:
2
}],
"
bgAudio
"
:
""
,
"
bgAudioName
"
:
""
,
"
audioName
"
:
""
}
}
// {
// {
...
...
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