Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
extreme_skiing
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
extreme_skiing
Commits
07d69699
Commit
07d69699
authored
Aug 16, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8.16调整
parent
ae298c79
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
476 additions
and
240 deletions
+476
-240
extreme_skiing.fire
assets/extreme_skiing/scene/extreme_skiing.fire
+349
-134
extreme_skiing.ts
assets/extreme_skiing/scene/extreme_skiing.ts
+5
-24
layout_game.ts
assets/extreme_skiing/scene/game/layout_game.ts
+17
-9
Game.ts
assets/extreme_skiing/scene/tool/Game.ts
+11
-4
defaultData.ts
assets/extreme_skiing/script/defaultData.ts
+63
-56
form.component.html
form/src/app/form/form.component.html
+25
-9
form.component.ts
form/src/app/form/form.component.ts
+6
-4
No files found.
assets/extreme_skiing/scene/extreme_skiing.fire
View file @
07d69699
...
@@ -84,10 +84,13 @@
...
@@ -84,10 +84,13 @@
"__id__": 42
"__id__": 42
},
},
{
{
"__id__": 6
3
"__id__": 6
4
},
},
{
{
"__id__": 72
"__id__": 68
},
{
"__id__": 77
},
},
{
{
"__id__": 51
"__id__": 51
...
@@ -96,19 +99,19 @@
...
@@ -96,19 +99,19 @@
"__id__": 56
"__id__": 56
},
},
{
{
"__id__": 8
4
"__id__": 8
9
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
05
"__id__": 1
10
},
},
{
{
"__id__": 1
06
"__id__": 1
11
},
},
{
{
"__id__": 1
07
"__id__": 1
12
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1123,7 +1126,7 @@
...
@@ -1123,7 +1126,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1334,
"width": 1334,
"height":
750
"height":
433
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1135,7 +1138,7 @@
...
@@ -1135,7 +1138,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
0
,
158.5
,
0,
0,
0,
0,
0,
0,
...
@@ -1178,7 +1181,7 @@
...
@@ -1178,7 +1181,7 @@
"__uuid__": "4b66fb37-77c6-4376-ad2f-5da9505da166"
"__uuid__": "4b66fb37-77c6-4376-ad2f-5da9505da166"
},
},
"_type": 0,
"_type": 0,
"_sizeMode":
0
,
"_sizeMode":
2
,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1187,7 +1190,7 @@
...
@@ -1187,7 +1190,7 @@
},
},
"_fillStart": 0,
"_fillStart": 0,
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode":
tru
e,
"_isTrimmedMode":
fals
e,
"_atlas": null,
"_atlas": null,
"_id": "94KlrsudpKgJEDlwUGWViB"
"_id": "94KlrsudpKgJEDlwUGWViB"
},
},
...
@@ -1201,11 +1204,11 @@
...
@@ -1201,11 +1204,11 @@
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
"_target": null,
"_target": null,
"_alignFlags":
1
,
"_alignFlags":
45
,
"_left": 0,
"_left": 0,
"_right": 0,
"_right": 0,
"_top": 0,
"_top": 0,
"_bottom":
0
,
"_bottom":
317
,
"_verticalCenter": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsLeft": true,
...
@@ -1215,7 +1218,7 @@
...
@@ -1215,7 +1218,7 @@
"_isAbsHorizontalCenter": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1334,
"_originalWidth": 1334,
"_originalHeight":
750
,
"_originalHeight":
433
,
"_id": "b0iwk+/zBI7otScOzNm5aX"
"_id": "b0iwk+/zBI7otScOzNm5aX"
},
},
{
{
...
@@ -1473,7 +1476,7 @@
...
@@ -1473,7 +1476,7 @@
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
img_player
",
"_name": "
startPos
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
"__id__": 25
...
@@ -1496,8 +1499,8 @@
...
@@ -1496,8 +1499,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
21
0,
"width": 0,
"height":
391
"height":
0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1509,7 +1512,7 @@
...
@@ -1509,7 +1512,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
-2
60.215
,
-2
77.804
,
0,
0,
0,
0,
0,
0,
...
@@ -1531,39 +1534,34 @@
...
@@ -1531,39 +1534,34 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
bfgcMOHs9NnZIGb4OdfDzY
"
"_id": "
04pcOBh95OUpqjQbME9p2F
"
},
},
{
{
"__type__": "cc.
Sprite
",
"__type__": "cc.
Widget
",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 30
"__id__": 30
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"alignMode": 1,
{
"_target": null,
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"_alignFlags": 4,
}
"_left": 0,
],
"_right": 0,
"_srcBlendFactor": 770,
"_top": 0,
"_dstBlendFactor": 771,
"_bottom": 47.196000000000026,
"_spriteFrame": {
"_verticalCenter": 0,
"__uuid__": "c12ebc34-57fd-4f84-af02-916d60c8efda"
"_horizontalCenter": 0,
},
"_isAbsLeft": true,
"_type": 0,
"_isAbsRight": true,
"_sizeMode": 1,
"_isAbsTop": true,
"_fillType": 0,
"_isAbsBottom": true,
"_fillCenter": {
"_isAbsHorizontalCenter": true,
"__type__": "cc.Vec2",
"_isAbsVerticalCenter": true,
"x": 0,
"_originalWidth": 0,
"y": 0
"_originalHeight": 0,
},
"_id": "14q69aQd5EDIcasNFJzpfT"
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e9X6deHlRMgJCPPwOag5Lb"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -1584,7 +1582,7 @@
...
@@ -1584,7 +1582,7 @@
"__uuid__": "5306260e-cb0d-45fc-bc01-5a120b7c9f41"
"__uuid__": "5306260e-cb0d-45fc-bc01-5a120b7c9f41"
},
},
"_type": 0,
"_type": 0,
"_sizeMode":
1
,
"_sizeMode":
2
,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1761,7 +1759,7 @@
...
@@ -1761,7 +1759,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
401
,
-
383
,
319.5,
319.5,
0,
0,
0,
0,
...
@@ -1924,7 +1922,7 @@
...
@@ -1924,7 +1922,7 @@
"alignMode": 1,
"alignMode": 1,
"_target": null,
"_target": null,
"_alignFlags": 9,
"_alignFlags": 9,
"_left":
92
,
"_left":
110
,
"_right": 0,
"_right": 0,
"_top": 0,
"_top": 0,
"_bottom": 0,
"_bottom": 0,
...
@@ -2369,7 +2367,7 @@
...
@@ -2369,7 +2367,7 @@
"__id__": 47
"__id__": 47
},
},
"img_player": {
"img_player": {
"__id__":
30
"__id__":
63
},
},
"_id": "caiNpeoI5OraK468WiV2vn"
"_id": "caiNpeoI5OraK468WiV2vn"
},
},
...
@@ -2550,9 +2548,9 @@
...
@@ -2550,9 +2548,9 @@
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r":
255
,
"r":
14
,
"g":
255
,
"g":
68
,
"b":
255
,
"b":
83
,
"a": 255
"a": 255
},
},
"_contentSize": {
"_contentSize": {
...
@@ -2661,7 +2659,7 @@
...
@@ -2661,7 +2659,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 580,
"width": 580,
"height": 1
27
"height": 1
60
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3015,6 +3013,223 @@
...
@@ -3015,6 +3013,223 @@
"_N$target": null,
"_N$target": null,
"_id": "dcoPqmhWNM46SsPzQ+ga76"
"_id": "dcoPqmhWNM46SsPzQ+ga76"
},
},
{
"__type__": "cc.Node",
"_name": "img_player",
"_objFlags": 0,
"_parent": {
"__id__": 64
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
},
{
"__id__": 67
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 210,
"height": 391
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-280,
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": "bfgcMOHs9NnZIGb4OdfDzY"
},
{
"__type__": "cc.Node",
"_name": "player",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 63
}
],
"_active": true,
"_components": [
{
"__id__": 65
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 650
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-50,
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": "55uoYoH+NHMaezRdGeOejC"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "48mWBiWLdOYrlZmuXqDDyg"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c12ebc34-57fd-4f84-af02-916d60c8efda"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e9X6deHlRMgJCPPwOag5Lb"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 4,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": -150.5,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "71bOldEP5B3Z6uHM7w8Eqh"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "btn_laba",
"_name": "btn_laba",
...
@@ -3024,22 +3239,22 @@
...
@@ -3024,22 +3239,22 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 6
4
"__id__": 6
9
},
},
{
{
"__id__":
66
"__id__":
71
},
},
{
{
"__id__":
68
"__id__":
73
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 7
0
"__id__": 7
5
},
},
{
{
"__id__": 7
1
"__id__": 7
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3065,7 +3280,7 @@
...
@@ -3065,7 +3280,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
5
65.759
,
5
56
,
-295.698,
-295.698,
0,
0,
0,
0,
...
@@ -3095,13 +3310,13 @@
...
@@ -3095,13 +3310,13 @@
"_name": "btn_laba",
"_name": "btn_laba",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
3
"__id__": 6
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
65
"__id__":
70
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3157,7 +3372,7 @@
...
@@ -3157,7 +3372,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
4
"__id__": 6
9
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3189,13 +3404,13 @@
...
@@ -3189,13 +3404,13 @@
"_name": "btn_laba2",
"_name": "btn_laba2",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
3
"__id__": 6
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
67
"__id__":
72
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3251,7 +3466,7 @@
...
@@ -3251,7 +3466,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
66
"__id__":
71
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3283,13 +3498,13 @@
...
@@ -3283,13 +3498,13 @@
"_name": "btn_laba3",
"_name": "btn_laba3",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
3
"__id__": 6
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
69
"__id__":
74
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3345,7 +3560,7 @@
...
@@ -3345,7 +3560,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
68
"__id__":
73
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3377,14 +3592,14 @@
...
@@ -3377,14 +3592,14 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
3
"__id__": 6
8
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
"_target": null,
"_target": null,
"_alignFlags":
4
,
"_alignFlags":
36
,
"_left": 0,
"_left": 0,
"_right": 0,
"_right":
6
0,
"_top": 0,
"_top": 0,
"_bottom": 30.30200000000002,
"_bottom": 30.30200000000002,
"_verticalCenter": 0,
"_verticalCenter": 0,
...
@@ -3404,7 +3619,7 @@
...
@@ -3404,7 +3619,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
3
"__id__": 6
8
},
},
"_enabled": true,
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": null,
...
@@ -3476,19 +3691,19 @@
...
@@ -3476,19 +3691,19 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 7
3
"__id__": 7
8
},
},
{
{
"__id__":
75
"__id__":
80
},
},
{
{
"__id__":
77
"__id__":
82
},
},
{
{
"__id__":
79
"__id__":
84
},
},
{
{
"__id__": 8
2
"__id__": 8
7
}
}
],
],
"_active": false,
"_active": false,
...
@@ -3546,13 +3761,13 @@
...
@@ -3546,13 +3761,13 @@
"_name": "New Sprite(Splash)",
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 7
2
"__id__": 7
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 7
4
"__id__": 7
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3608,7 +3823,7 @@
...
@@ -3608,7 +3823,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 7
3
"__id__": 7
8
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3640,13 +3855,13 @@
...
@@ -3640,13 +3855,13 @@
"_name": "bg_instructions",
"_name": "bg_instructions",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 7
2
"__id__": 7
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
76
"__id__":
81
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3702,7 +3917,7 @@
...
@@ -3702,7 +3917,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
75
"__id__":
80
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3734,13 +3949,13 @@
...
@@ -3734,13 +3949,13 @@
"_name": "desc",
"_name": "desc",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 7
2
"__id__": 7
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
78
"__id__":
83
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3754,7 +3969,7 @@
...
@@ -3754,7 +3969,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
80
0,
"width":
76
0,
"height": 250.39999999999998
"height": 250.39999999999998
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -3796,7 +4011,7 @@
...
@@ -3796,7 +4011,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
77
"__id__":
82
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3831,16 +4046,16 @@
...
@@ -3831,16 +4046,16 @@
"_name": "btn_start",
"_name": "btn_start",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 7
2
"__id__": 7
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
0
"__id__": 8
5
},
},
{
{
"__id__": 8
1
"__id__": 8
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3896,7 +4111,7 @@
...
@@ -3896,7 +4111,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
79
"__id__":
84
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3928,7 +4143,7 @@
...
@@ -3928,7 +4143,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
79
"__id__":
84
},
},
"_enabled": true,
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": null,
...
@@ -3989,7 +4204,7 @@
...
@@ -3989,7 +4204,7 @@
"hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"_N$target": {
"__id__":
79
"__id__":
84
},
},
"_id": "7095HuemhJQ40wHbz5jlAy"
"_id": "7095HuemhJQ40wHbz5jlAy"
},
},
...
@@ -3998,13 +4213,13 @@
...
@@ -3998,13 +4213,13 @@
"_name": "touch",
"_name": "touch",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 7
2
"__id__": 7
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
3
"__id__": 8
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4060,7 +4275,7 @@
...
@@ -4060,7 +4275,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 8
2
"__id__": 8
7
},
},
"_enabled": true,
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": null,
...
@@ -4132,19 +4347,19 @@
...
@@ -4132,19 +4347,19 @@
},
},
"_children": [
"_children": [
{
{
"__id__":
85
"__id__":
90
},
},
{
{
"__id__":
89
"__id__":
94
},
},
{
{
"__id__": 9
3
"__id__": 9
8
},
},
{
{
"__id__":
97
"__id__":
102
},
},
{
{
"__id__": 10
1
"__id__": 10
6
}
}
],
],
"_active": true,
"_active": true,
...
@@ -4202,11 +4417,11 @@
...
@@ -4202,11 +4417,11 @@
"_name": "quadBase",
"_name": "quadBase",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 8
4
"__id__": 8
9
},
},
"_children": [
"_children": [
{
{
"__id__":
86
"__id__":
91
}
}
],
],
"_active": true,
"_active": true,
...
@@ -4264,11 +4479,11 @@
...
@@ -4264,11 +4479,11 @@
"_name": "quad",
"_name": "quad",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
85
"__id__":
90
},
},
"_children": [
"_children": [
{
{
"__id__":
87
"__id__":
92
}
}
],
],
"_active": true,
"_active": true,
...
@@ -4326,13 +4541,13 @@
...
@@ -4326,13 +4541,13 @@
"_name": "paper",
"_name": "paper",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
86
"__id__":
91
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
88
"__id__":
93
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4388,7 +4603,7 @@
...
@@ -4388,7 +4603,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
87
"__id__":
92
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4420,11 +4635,11 @@
...
@@ -4420,11 +4635,11 @@
"_name": "quadBase",
"_name": "quadBase",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 8
4
"__id__": 8
9
},
},
"_children": [
"_children": [
{
{
"__id__": 9
0
"__id__": 9
5
}
}
],
],
"_active": true,
"_active": true,
...
@@ -4482,11 +4697,11 @@
...
@@ -4482,11 +4697,11 @@
"_name": "quad",
"_name": "quad",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
89
"__id__":
94
},
},
"_children": [
"_children": [
{
{
"__id__": 9
1
"__id__": 9
6
}
}
],
],
"_active": true,
"_active": true,
...
@@ -4544,13 +4759,13 @@
...
@@ -4544,13 +4759,13 @@
"_name": "paper",
"_name": "paper",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 9
0
"__id__": 9
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
2
"__id__": 9
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4606,7 +4821,7 @@
...
@@ -4606,7 +4821,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
1
"__id__": 9
6
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4638,11 +4853,11 @@
...
@@ -4638,11 +4853,11 @@
"_name": "quadBase",
"_name": "quadBase",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 8
4
"__id__": 8
9
},
},
"_children": [
"_children": [
{
{
"__id__": 9
4
"__id__": 9
9
}
}
],
],
"_active": true,
"_active": true,
...
@@ -4700,11 +4915,11 @@
...
@@ -4700,11 +4915,11 @@
"_name": "quad",
"_name": "quad",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 9
3
"__id__": 9
8
},
},
"_children": [
"_children": [
{
{
"__id__":
95
"__id__":
100
}
}
],
],
"_active": true,
"_active": true,
...
@@ -4762,13 +4977,13 @@
...
@@ -4762,13 +4977,13 @@
"_name": "paper",
"_name": "paper",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 9
4
"__id__": 9
9
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
96
"__id__":
101
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4824,7 +5039,7 @@
...
@@ -4824,7 +5039,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
95
"__id__":
100
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4856,11 +5071,11 @@
...
@@ -4856,11 +5071,11 @@
"_name": "quadBase",
"_name": "quadBase",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 8
4
"__id__": 8
9
},
},
"_children": [
"_children": [
{
{
"__id__":
98
"__id__":
103
}
}
],
],
"_active": true,
"_active": true,
...
@@ -4918,11 +5133,11 @@
...
@@ -4918,11 +5133,11 @@
"_name": "quad",
"_name": "quad",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
97
"__id__":
102
},
},
"_children": [
"_children": [
{
{
"__id__":
99
"__id__":
104
}
}
],
],
"_active": true,
"_active": true,
...
@@ -4980,13 +5195,13 @@
...
@@ -4980,13 +5195,13 @@
"_name": "paper",
"_name": "paper",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
98
"__id__":
103
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
0
"__id__": 10
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5042,7 +5257,7 @@
...
@@ -5042,7 +5257,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
99
"__id__":
104
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5074,11 +5289,11 @@
...
@@ -5074,11 +5289,11 @@
"_name": "quadBase",
"_name": "quadBase",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 8
4
"__id__": 8
9
},
},
"_children": [
"_children": [
{
{
"__id__": 10
2
"__id__": 10
7
}
}
],
],
"_active": true,
"_active": true,
...
@@ -5136,11 +5351,11 @@
...
@@ -5136,11 +5351,11 @@
"_name": "quad",
"_name": "quad",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 10
1
"__id__": 10
6
},
},
"_children": [
"_children": [
{
{
"__id__": 10
3
"__id__": 10
8
}
}
],
],
"_active": true,
"_active": true,
...
@@ -5198,13 +5413,13 @@
...
@@ -5198,13 +5413,13 @@
"_name": "paper",
"_name": "paper",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 10
2
"__id__": 10
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
4
"__id__": 10
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5260,7 +5475,7 @@
...
@@ -5260,7 +5475,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
3
"__id__": 10
8
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5344,7 +5559,7 @@
...
@@ -5344,7 +5559,7 @@
"layout_balloon": null,
"layout_balloon": null,
"layout_cannon": null,
"layout_cannon": null,
"btn_laba": {
"btn_laba": {
"__id__": 6
3
"__id__": 6
8
},
},
"_id": "5aci41ohNDvaH6JXqrDEGR"
"_id": "5aci41ohNDvaH6JXqrDEGR"
}
}
...
...
assets/extreme_skiing/scene/extreme_skiing.ts
View file @
07d69699
...
@@ -144,7 +144,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -144,7 +144,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
data
.
total
=
Game
.
getIns
().
getTotla
;
data
.
total
=
Game
.
getIns
().
getTotla
;
data
.
right
=
Game
.
getIns
().
player
.
right
;
data
.
right
=
Game
.
getIns
().
player
.
right
;
data
.
scores
=
Game
.
getIns
().
player
.
voices
;
data
.
scores
=
Game
.
getIns
().
player
.
voices
;
this
.
log
(
"
total:
"
+
data
.
total
+
"
right:
"
+
data
.
right
);
data
.
stone
=
Math
.
floor
(
10
*
data
.
right
/
data
.
total
);
this
.
log
(
"
total:
"
+
data
.
total
+
"
right:
"
+
data
.
right
+
"
stone:
"
+
data
.
stone
);
onHomeworkFinish
(
data
)
onHomeworkFinish
(
data
)
})
})
}
}
...
@@ -155,8 +156,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -155,8 +156,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
count
:
number
;
private
count
:
number
;
private
list
:
Option
[];
private
fishs
:
cc
.
Node
[];
gameStart
()
{
gameStart
()
{
Game
.
getIns
().
state
=
GAME_STATE
.
RUNNING
;
Game
.
getIns
().
state
=
GAME_STATE
.
RUNNING
;
//游戏开始小鱼出现等等
//游戏开始小鱼出现等等
...
@@ -166,29 +165,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -166,29 +165,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
audio
.
stopAudio
(
this
.
audioId
);
pg
.
audio
.
stopAudio
(
this
.
audioId
);
}
}
//开始
//开始
// //根据数据随机热气球
// let page = Game.getIns().getCurrentPage();
// let list = page.optionList.concat();
// list = JSON.parse(JSON.stringify(list));
// list.sort((A, B) => { return Math.random() < 0.5 });
// Game.getIns().player.addScore(this.list.length);
this
.
count
=
0
;
this
.
count
=
0
;
this
.
lastCount
=
null
;
this
.
fishs
=
[];
this
.
viewFishs
=
[];
this
.
touchFishs
=
[];
//根据顺序生成对应的鱼。
//顺序根据时间来进行跳动。当顺序跳动之后,就会产生新的鱼。
}
}
private
lastCount
:
number
;
private
viewFishs
:
Option
[];
private
touchFishs
:
Option
[];
update
(
dt
)
{
update
(
dt
)
{
if
(
Game
.
getIns
().
state
!=
GAME_STATE
.
RUNNING
)
return
;
// if (this.fishLen < 5) this.count++;
// let fish = this.getFishByCount(this.count);
// if (fish) this.fishs.push(fish);
}
}
playLocalAudio
(
audioName
)
{
playLocalAudio
(
audioName
)
{
...
@@ -215,7 +194,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -215,7 +194,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
stop
&&
count
%
3
==
2
)
clearInterval
(
this
.
intervalId
);
if
(
stop
&&
count
%
3
==
2
)
clearInterval
(
this
.
intervalId
);
},
150
)
},
150
)
pg
.
audio
.
playAudioByUrl
(
Game
.
getIns
().
getCurrentPage
().
audio
).
then
(()
=>
{
stop
=
true
;
})
pg
.
audio
.
playAudioByUrl
(
Game
.
getIns
().
getCurrentPage
().
audio
,
(()
=>
{
stop
=
true
;
}))
}
}
...
...
assets/extreme_skiing/scene/game/layout_game.ts
View file @
07d69699
...
@@ -41,6 +41,10 @@ export default class layout_game extends cc.Component {
...
@@ -41,6 +41,10 @@ export default class layout_game extends cc.Component {
this
.
rightNum
=
0
;
this
.
rightNum
=
0
;
this
.
initEvent
();
this
.
initEvent
();
}
}
protected
onDestroy
():
void
{
cc
.
Tween
.
stopAll
();
cc
.
audioEngine
.
stopAll
();
}
private
initEvent
()
{
private
initEvent
()
{
pg
.
event
.
on
(
"
game_start
"
,
()
=>
{
pg
.
event
.
on
(
"
game_start
"
,
()
=>
{
...
@@ -60,7 +64,7 @@ export default class layout_game extends cc.Component {
...
@@ -60,7 +64,7 @@ export default class layout_game extends cc.Component {
list
=
JSON
.
parse
(
JSON
.
stringify
(
list
));
list
=
JSON
.
parse
(
JSON
.
stringify
(
list
));
list
.
sort
((
A
,
B
)
=>
{
return
Math
.
random
()
<
0.5
});
list
.
sort
((
A
,
B
)
=>
{
return
Math
.
random
()
<
0.5
});
this
.
layout_same
.
removeAllChildren
();
this
.
layout_same
.
removeAllChildren
();
let
isPic
=
this
.
checkIsAllPic
(
list
);
let
isPic
=
this
.
checkIsAllPic
(
list
)
&&
list
.
length
==
4
;
list
.
forEach
((
data
,
idx
)
=>
{
list
.
forEach
((
data
,
idx
)
=>
{
data
.
id
=
idx
;
data
.
id
=
idx
;
if
(
data
.
type
==
"
txt
"
)
{
if
(
data
.
type
==
"
txt
"
)
{
...
@@ -79,8 +83,9 @@ export default class layout_game extends cc.Component {
...
@@ -79,8 +83,9 @@ export default class layout_game extends cc.Component {
this
.
layout_same
.
getComponent
(
cc
.
Layout
).
paddingLeft
=
isPic
?
30
:
0
;
this
.
layout_same
.
getComponent
(
cc
.
Layout
).
paddingLeft
=
isPic
?
30
:
0
;
cc
.
find
(
"
bg_ornament
"
,
this
.
node
).
active
=
isPic
;
cc
.
find
(
"
bg_ornament
"
,
this
.
node
).
active
=
isPic
;
cc
.
find
(
"
bg_ornament2
"
,
this
.
node
).
active
=
!
isPic
;
cc
.
find
(
"
bg_ornament2
"
,
this
.
node
).
active
=
!
isPic
;
let
img_player
=
cc
.
find
(
"
Canvas/bg/bg_could/img_player
"
);
let
img_player
=
cc
.
find
(
"
Canvas/player/img_player
"
);
img_player
.
y
=
-
260
;
let
start
=
cc
.
find
(
"
Canvas/bg/bg_could/startPos
"
);
img_player
.
y
=
-
330
;
img_player
.
scale
=
1
;
img_player
.
scale
=
1
;
}
}
private
initWordItem
(
item
,
data
)
{
private
initWordItem
(
item
,
data
)
{
...
@@ -113,6 +118,7 @@ export default class layout_game extends cc.Component {
...
@@ -113,6 +118,7 @@ export default class layout_game extends cc.Component {
pg
.
audio
.
playAudioByUrl
(
data
.
audioUrl
,
()
=>
{
pg
.
audio
.
playAudioByUrl
(
data
.
audioUrl
,
()
=>
{
let
pag
=
Game
.
getIns
().
getCurrentPage
()
let
pag
=
Game
.
getIns
().
getCurrentPage
()
if
(
!
pag
.
checkMore
||
this
.
rightNum
>
1
)
{
if
(
!
pag
.
checkMore
||
this
.
rightNum
>
1
)
{
this
.
layout_same
.
removeAllChildren
();
this
.
clickRight
().
then
(()
=>
{
this
.
clickRight
().
then
(()
=>
{
pg
.
event
.
emit
(
"
game_time_over
"
);
pg
.
event
.
emit
(
"
game_time_over
"
);
});
});
...
@@ -152,28 +158,30 @@ export default class layout_game extends cc.Component {
...
@@ -152,28 +158,30 @@ export default class layout_game extends cc.Component {
}
}
private
clickRight
()
{
private
clickRight
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
img_player
=
cc
.
find
(
"
Canvas/
bg/bg_could
/img_player
"
);
let
img_player
=
cc
.
find
(
"
Canvas/
player
/img_player
"
);
let
endPos
=
cc
.
find
(
"
Canvas/bg/bg_could/endPos
"
);
let
endPos
=
cc
.
find
(
"
Canvas/bg/bg_could/endPos
"
);
let
start
=
cc
.
find
(
"
Canvas/bg/bg_could/startPos
"
);
cc
.
tween
(
img_player
)
cc
.
tween
(
img_player
)
.
delay
(
0.1
)
.
delay
(
0.1
)
.
call
(()
=>
{
this
.
playLocalAudio
(
"
huaxue
"
);
})
.
call
(()
=>
{
this
.
playLocalAudio
(
"
huaxue
"
);
})
.
to
(
1
,
{
x
:
img_player
.
x
,
y
:
endPos
.
y
,
scale
:
0.16
})
.
to
(
1
,
{
y
:
endPos
.
y
,
scale
:
0.16
})
.
call
(()
=>
{
pg
.
event
.
emit
(
"
skiing_show_firework
"
)
})
.
call
(()
=>
{
pg
.
event
.
emit
(
"
skiing_show_firework
"
)
})
.
delay
(
1
)
.
delay
(
3
)
.
call
(()
=>
{
return
resolve
(
''
)
})
.
call
(()
=>
{
return
resolve
(
''
)
})
.
start
();
.
start
();
})
})
}
}
private
clickError
()
{
private
clickError
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
img_player
=
cc
.
find
(
"
Canvas/
bg/bg_could
/img_player
"
);
let
img_player
=
cc
.
find
(
"
Canvas/
player
/img_player
"
);
let
errorPos
=
cc
.
find
(
"
Canvas/bg/bg_could/errorPos
"
);
let
errorPos
=
cc
.
find
(
"
Canvas/bg/bg_could/errorPos
"
);
let
startPos
=
img_player
.
getPosition
();
let
start
=
cc
.
find
(
"
Canvas/bg/bg_could/startPos
"
);
let
startPos
=
start
.
getPosition
();
cc
.
tween
(
img_player
).
to
(
1
,
{
y
:
errorPos
.
y
,
scale
:
0.65
})
cc
.
tween
(
img_player
).
to
(
1
,
{
y
:
errorPos
.
y
,
scale
:
0.65
})
.
delay
(
1
)
.
delay
(
1
)
.
call
(()
=>
{
this
.
playLocalAudio
(
"
error
"
);
})
.
to
(
1
,
{
y
:
startPos
.
y
,
scale
:
1
})
.
to
(
1
,
{
y
:
startPos
.
y
,
scale
:
1
})
.
call
(()
=>
{
.
call
(()
=>
{
this
.
playLocalAudio
(
"
error
"
);
return
resolve
(
''
)
return
resolve
(
''
)
})
})
.
start
();
.
start
();
...
...
assets/extreme_skiing/scene/tool/Game.ts
View file @
07d69699
...
@@ -46,6 +46,7 @@ export class Item {
...
@@ -46,6 +46,7 @@ export class Item {
public
duration
;
public
duration
;
public
optionList
;
public
optionList
;
public
checkMore
:
boolean
;
public
checkMore
:
boolean
;
public
rNum
:
number
;
constructor
(
data
,
page
)
{
constructor
(
data
,
page
)
{
this
.
audio
=
data
.
questionAudio
;
this
.
audio
=
data
.
questionAudio
;
this
.
duration
=
data
.
duration
;
this
.
duration
=
data
.
duration
;
...
@@ -58,11 +59,11 @@ export class Item {
...
@@ -58,11 +59,11 @@ export class Item {
this
.
optionList
.
sort
(
function
()
{
this
.
optionList
.
sort
(
function
()
{
return
(
0.5
-
Math
.
random
());
return
(
0.5
-
Math
.
random
());
});
});
let
rNum
=
0
;
this
.
rNum
=
0
;
for
(
let
i
=
0
;
i
<
this
.
optionList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
optionList
.
length
;
i
++
)
{
if
(
this
.
optionList
[
i
].
right
)
rNum
++
;
if
(
this
.
optionList
[
i
].
right
)
this
.
rNum
++
;
}
}
this
.
checkMore
=
rNum
>
1
;
this
.
checkMore
=
this
.
rNum
>
1
;
this
.
page
=
page
;
this
.
page
=
page
;
}
}
}
}
...
@@ -128,6 +129,7 @@ export default class Game {
...
@@ -128,6 +129,7 @@ export default class Game {
public
player
:
Player
;
public
player
:
Player
;
public
robot
:
Robot
;
public
robot
:
Robot
;
public
state
:
GAME_STATE
;
public
state
:
GAME_STATE
;
public
total
:
number
;
constructor
()
{
constructor
()
{
this
.
start
=
false
;
this
.
start
=
false
;
...
@@ -160,6 +162,7 @@ export default class Game {
...
@@ -160,6 +162,7 @@ export default class Game {
this
.
page
=
1
;
this
.
page
=
1
;
this
.
start
=
true
;
this
.
start
=
true
;
this
.
lists
=
[];
this
.
lists
=
[];
this
.
total
=
0
;
for
(
let
i
=
0
;
i
<
this
.
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
data
.
length
;
i
++
)
{
let
data
=
this
.
data
[
i
];
let
data
=
this
.
data
[
i
];
this
.
lists
.
push
(
new
Item
(
data
,
i
+
1
));
this
.
lists
.
push
(
new
Item
(
data
,
i
+
1
));
...
@@ -196,7 +199,11 @@ export default class Game {
...
@@ -196,7 +199,11 @@ export default class Game {
this
.
page
+=
1
;
this
.
page
+=
1
;
}
}
get
getTotla
()
{
get
getTotla
()
{
return
this
.
data
.
length
;
this
.
total
=
0
;
this
.
lists
.
forEach
((
item
)
=>
{
this
.
total
+=
item
.
rNum
;
})
return
this
.
total
;
}
}
get
isOver
()
{
get
isOver
()
{
return
this
.
page
>
this
.
lists
.
length
;
return
this
.
page
>
this
.
lists
.
length
;
...
...
assets/extreme_skiing/script/defaultData.ts
View file @
07d69699
export
const
defaultData
=
{
export
const
defaultData
=
{
"
title
"
:
"
急速滑雪
"
,
"
title
"
:
"
急速滑雪
"
,
"
questionText
"
:
"
可恶的小偷将魔法卡牌藏在热气球里,准备偷走!快击落热气球,夺回魔法卡牌。游戏开始,请点击弹弓,发射小球,击落热气球,魔法卡牌就会掉落下来。请仔细观察魔法卡牌,并大声说出魔法咒语。魔法咒语正确,你将获得该张魔法卡牌。游戏结束后,根据获得的魔法卡牌数量,你将获得相应的能量石奖励
!开始挑战吧!
"
,
"
questionText
"
:
"
雪地里有许多不同的指示牌,运动员要选择哪一个呢?亲爱的小玩家,请你认真听游戏指令,帮助运动员选择正确的指示牌吧!游戏结束后,根据收集到的指示牌数量,你将获得相应的能量石奖励哟
!开始挑战吧!
"
,
"
questionTextAudio
"
:
"
http
s://staging-teach.cdn.ireadabc.com/3152e0ea17b07406a002b2c05028b0cc
.mp3
"
,
"
questionTextAudio
"
:
"
http
://staging-teach.cdn.ireadabc.com/c3b69ad3d51385eac7d4195773ef59f7_l
.mp3
"
,
"
questions
"
:
[
"
questions
"
:
[
{
{
"
questionAudio
"
:
"
https://teach.cdn.ireadabc.com/73dae647c4099fe65bc28f568e351e96.mp3
"
,
"
options
"
:
[
"
options
"
:
[
{
{
"
type
"
:
"
img
"
,
"
type
"
:
"
img
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/1832bc553f77f876e0bba64062bd6b38.jpg
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/0af1f16b7143f5027c8efcea56c4d8fb.png
"
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/7c18e0838dcf0707f885842ed09e1579.mp3
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/416b6d52f024005d31898ef1da23daa7_l.mp3
"
,
"
text
"
:
"
Please apple
"
,
"
text
"
:
""
,
"
right
"
:
false
"
time
"
:
""
,
"
right
"
:
true
,
"
audioName
"
:
"
sahua.mp3
"
},
},
{
{
"
type
"
:
"
img
"
,
"
type
"
:
"
txt
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/52e8f2868ab7ea8b584bf6beb6b9672d.png
"
,
"
image
"
:
""
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/6b3846cee6afa2ae450234aeec835beb.mp3
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/5f5d6834729bb822158a4c9a70cc955d_l.mp3
"
,
"
text
"
:
"
Please take some Bag
"
,
"
text
"
:
"
good
"
,
"
right
"
:
false
"
time
"
:
""
,
"
right
"
:
true
,
"
audioName
"
:
"
huaxue.mp3
"
},
},
// {
// "type": "txt",
// "image": "https://staging-teach.cdn.ireadabc.com/8c6fef67a0095c2564e8df4b536fc540.png",
// "audio": "https://staging-teach.cdn.ireadabc.com/b44fa51172b19b555fda30717c773027.mp3",
// "text": "take cat",
// "right": true
// },
// {
// "type": "txt",
// "image": "",
// "audio": "https://staging-teach.cdn.ireadabc.com/7c18e0838dcf0707f885842ed09e1579.mp3",
// "text": "Please take some cookies",
// "right": false
// },
{
{
"
type
"
:
"
img
"
,
"
type
"
:
"
txt
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/7b315ba7227294d63933cd659d5372fb.png
"
,
"
image
"
:
""
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/a6a5c388c636bc6d063946e91b4bd21a.mp3
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/0913981cdeb2c6bc785de1054e80a500_l.mp3
"
,
"
text
"
:
"
egg
"
,
"
text
"
:
"
ghnggfgf
"
,
"
right
"
:
true
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
error.mp3
"
},
},
{
{
"
type
"
:
"
img
"
,
"
type
"
:
"
txt
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/1410f63265ca58cb612df0ee2911b287.png
"
,
"
image
"
:
""
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/a6a5c388c636bc6d063946e91b4bd21a.mp3
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/f7fb9f71ab7d460ac2f78c85efba7610_l.mp3
"
,
"
text
"
:
"
egg
"
,
"
text
"
:
"
gfdgdf
"
,
"
right
"
:
true
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
btn.mp3
"
}
}
]
],
"
type
"
:
""
,
"
questionAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/cdc41b6682e155c385093c52d2a4adff_l.mp3
"
,
"
audioName
"
:
"
完成-全部答题完成或点击了答题完成按钮.mp3
"
},
},
{
{
"
questionAudio
"
:
"
https://teach.cdn.ireadabc.com/73dae647c4099fe65bc28f568e351e96.mp3
"
,
"
options
"
:
[
"
options
"
:
[
{
{
"
type
"
:
"
txt
"
,
"
type
"
:
"
img
"
,
"
image
"
:
""
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/2bc20ac5b284dd8cf379bb1e1c75848a.png
"
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/d948ef84a50e6ac36bc31110f9062878.mp3
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/b004c86f1a26a367cfa329b11e365f0f_l.mp3
"
,
"
text
"
:
"
umbrella
"
,
"
text
"
:
""
,
"
right
"
:
true
"
time
"
:
""
,
"
right
"
:
true
,
"
audioName
"
:
"
选项被选择(该音效指选项属性无对错概念时候用的).mp3
"
},
},
{
{
"
type
"
:
"
txt
"
,
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
image
"
:
""
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/8d6a8d7764011afb0ef537d5a44d1d10.mp3
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/0913981cdeb2c6bc785de1054e80a500_l.mp3
"
,
"
text
"
:
"
key
"
,
"
text
"
:
"
ame
"
,
"
right
"
:
true
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
error.mp3
"
},
},
{
{
"
type
"
:
"
txt
"
,
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
image
"
:
""
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/6b3846cee6afa2ae450234aeec835beb.mp3
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/5f5d6834729bb822158a4c9a70cc955d_l.mp3
"
,
"
text
"
:
"
bag
"
,
"
text
"
:
"
chilce
"
,
"
right
"
:
false
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
huaxue.mp3
"
},
},
{
{
"
type
"
:
"
img
"
,
"
type
"
:
"
txt
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/7b315ba7227294d63933cd659d5372fb.png
"
,
"
image
"
:
""
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/a6a5c388c636bc6d063946e91b4bd21a.mp3
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/416b6d52f024005d31898ef1da23daa7_l.mp3
"
,
"
text
"
:
"
egg
"
,
"
text
"
:
"
xnory
"
,
"
right
"
:
true
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
sahua.mp3
"
}
}
]
],
"
type
"
:
""
,
"
questionAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/fb08783926362bf64232e2ec6966011d_l.mp3
"
,
"
audioName
"
:
"
选择正确.mp3
"
}
}
]
],
"
audioName
"
:
"
极速滑雪 游戏说明.MP3
"
}
}
\ No newline at end of file
form/src/app/form/form.component.html
View file @
07d69699
...
@@ -99,6 +99,23 @@
...
@@ -99,6 +99,23 @@
<div
class=
"word-type-title"
>
<div
class=
"word-type-title"
>
题目{{i+1}}
题目{{i+1}}
</div>
</div>
<div
class=
"option-audio"
>
<div
class=
"word-input-title"
>
题目音频:
</div>
<div
style=
"display: flex"
>
<div>
<app-audio-recorder
[
audioUrl
]="
question
.
questionAudio
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
questionAudio
',
question
)"
>
</app-audio-recorder>
</div>
<div
style=
"margin: 5px"
>
<span>
{{ question.audioName}}
</span>
</div>
</div>
</div>
<div
class=
"word-type-option-title"
style=
"margin-top:20px;"
>
<div
class=
"word-type-option-title"
style=
"margin-top:20px;"
>
选项内容:
选项内容:
</div>
</div>
...
@@ -163,33 +180,32 @@
...
@@ -163,33 +180,32 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"option-text"
>
<div
*
ngIf=
"option.type=='txt'"
class=
"option-text"
>
<div
class=
"word-input-title"
>
<div
class=
"word-input-title"
>
<
span
style=
"color:red;margin-left:-15px"
>
*
</span
>
<
!-- <span style="color:red;margin-left:-15px">* </span> --
>
<span>
文本:
</span>
<span>
文本:
</span>
</div>
</div>
<input
class=
"input-place-red"
type=
"text"
placeholder=
"必填,语音评测是根据文本内容去对比打分的"
nz-input
<input
class=
"input-place-red"
type=
"text"
nz-input
[(
ngModel
)]="
option
.
text
"
(
blur
)="
save
()"
>
[(
ngModel
)]="
option
.
text
"
(
blur
)="
save
()"
>
</div>
</div>
<div
class=
"option-time"
>
<
!-- <
div class="option-time">
<div class="word-input-title">
<div class="word-input-title">
<span>录音时间: </span>
<span>录音时间: </span>
</div>
</div>
<input type="number" placeholder="录音超过时间将自动提交成绩" nz-input [(ngModel)]="option.time"
<input type="number" placeholder="录音超过时间将自动提交成绩" nz-input [(ngModel)]="option.time"
(blur)="save()">
(blur)="save()">
</div>
</div>
-->
</div>
</div>
</div>
</div>
<div
class=
"option-btns"
>
<div
class=
"option-btns"
>
<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>
<button
class=
"btn-blue"
style=
"margin-top: 10px;"
nz-button
nzType=
"default"
nzDanger
<button
*
ngIf=
"question.options.length <4"
class=
"btn-blue"
style=
"margin-top: 10px;"
nz-button
(
click
)="
copyoption
(
i
,
j
)"
>
复制选项
</button>
nzType=
"default"
nzDanger
(
click
)="
copyoption
(
i
,
j
)"
>
复制选项
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div
style=
"margin-left: 69px;margin-top: 15px;"
>
<div
*
ngIf=
"question.options.length <4"
style=
"margin-left: 69px;margin-top: 15px;"
>
<button
class=
"btn-blue"
nz-button
nzType=
"default"
nzDanger
(
click
)="
addoption
(
i
)"
>
+增加选项
</button>
<button
class=
"btn-blue"
nz-button
nzType=
"default"
nzDanger
(
click
)="
addoption
(
i
)"
>
+增加选项
</button>
</div>
</div>
</div>
</div>
...
...
form/src/app/form/form.component.ts
View file @
07d69699
...
@@ -13,8 +13,8 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -13,8 +13,8 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
item
=
{
item
=
{
title
:
"
急速滑雪
"
,
title
:
"
急速滑雪
"
,
questionText
:
"
可恶的小偷将魔法卡牌藏在热气球里,准备偷走!快来夺回魔法卡牌吧!只要击落热气球,魔法卡牌就会掉落下来。请仔细观察魔法卡牌,并大声说出魔法咒语。魔法咒语正确,你将获得该张魔法卡牌。游戏结束后,根据获得的魔法卡牌数量,你将获得相应的能量石奖励
!开始挑战吧!
"
,
questionText
:
"
雪地里有许多不同的指示牌,运动员要选择哪一个呢?亲爱的小玩家,请你认真听游戏指令,帮助运动员选择正确的指示牌吧!游戏结束后,根据收集到的指示牌数量,你将获得相应的能量石奖励哟
!开始挑战吧!
"
,
questionTextAudio
:
"
http://staging-teach.cdn.ireadabc.com/
d60710f8580f77d494a6ab95d5cc46c5
.mp3
"
,
questionTextAudio
:
"
http://staging-teach.cdn.ireadabc.com/
c3b69ad3d51385eac7d4195773ef59f7_l
.mp3
"
,
questions
:
[],
questions
:
[],
audioName
:
""
audioName
:
""
};
};
...
@@ -52,7 +52,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -52,7 +52,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
addoption
(
i
)
{
addoption
(
i
)
{
this
.
item
.
questions
[
i
].
options
.
push
({
this
.
item
.
questions
[
i
].
options
.
push
({
type
:
""
,
type
:
"
txt
"
,
image
:
""
,
image
:
""
,
audio
:
""
,
audio
:
""
,
text
:
""
,
text
:
""
,
...
@@ -72,7 +72,9 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -72,7 +72,9 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
addquestion
()
{
addquestion
()
{
this
.
item
.
questions
.
push
({
this
.
item
.
questions
.
push
({
options
:
[],
options
:
[],
type
:
""
type
:
""
,
questionAudio
:
""
,
audioName
:
""
,
});
});
this
.
save
();
this
.
save
();
}
}
...
...
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