Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
233ea1d7
Commit
233ea1d7
authored
Nov 26, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
accfd0ff
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
948 additions
and
474 deletions
+948
-474
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+359
-404
福袋.prefab
assets/Bundles/MainGame/prefab/福袋.prefab
+501
-0
福袋.prefab.meta
assets/Bundles/MainGame/prefab/福袋.prefab.meta
+13
-0
AIPerception.ts
assets/Scripts/Scenes/MainGame/AI/AIPerception.ts
+2
-1
AISnake.ts
assets/Scripts/Scenes/MainGame/AISnake.ts
+2
-1
AISnakeBack.ts
assets/Scripts/Scenes/MainGame/AISnakeBack.ts
+2
-1
Enums.ts
assets/Scripts/Scenes/MainGame/Common/Enums.ts
+2
-2
Target.ts
assets/Scripts/Scenes/MainGame/Components/Target.ts
+6
-5
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+2
-4
FoodManger.ts
assets/Scripts/Scenes/MainGame/Manager/FoodManger.ts
+18
-9
LuckyBagManager.ts
assets/Scripts/Scenes/MainGame/Manager/LuckyBagManager.ts
+37
-43
LuckyBag.ts
assets/Scripts/Scenes/MainGame/Props/LuckyBag.ts
+2
-2
Snake.ts
assets/Scripts/Scenes/MainGame/Snake.ts
+2
-2
No files found.
assets/Bundles/MainGame/MainGame.scene
View file @
233ea1d7
...
...
@@ -20,13 +20,13 @@
"__id__": 2
},
{
"__id__":
53
"__id__":
46
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 1
53
"__id__": 1
46
},
"_lpos": {
"__type__": "cc.Vec3",
...
...
@@ -57,7 +57,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 15
7
"__id__": 15
0
},
"_id": "53947ca7-3484-4b53-800d-509405063d68"
},
...
...
@@ -80,28 +80,28 @@
"__id__": 24
},
{
"__id__":
34
"__id__":
27
},
{
"__id__": 3
7
"__id__": 3
0
},
{
"__id__": 3
9
"__id__": 3
2
}
],
"_active": true,
"_components": [
{
"__id__": 14
9
"__id__": 14
2
},
{
"__id__": 1
50
"__id__": 1
43
},
{
"__id__": 1
51
"__id__": 1
44
},
{
"__id__": 1
52
"__id__": 1
45
}
],
"_prefab": null,
...
...
@@ -193,7 +193,7 @@
"_priority": 40000,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight":
582.5777777777778
,
"_orthoHeight":
617.8074074074075
,
"_near": 0,
"_far": 2000,
"_color": {
...
...
@@ -915,136 +915,6 @@
"_atlas": null,
"_id": "4bRyNFPpJGVa0DJhYHS84j"
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_prefab": {
"__id__": 25
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 24
},
"asset": {
"__uuid__": "a5f2b7c2-a3e8-4830-ba7a-97aa26c34486",
"__expectedType__": "cc.Prefab"
},
"fileId": "95QVeGhHxFHYdTtrbtkAQN",
"instance": {
"__id__": 26
},
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "b1Nq3XUIFD0JT4XKEiC2kl",
"prefabRootNode": null,
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 27
},
{
"__id__": 29
},
{
"__id__": 30
},
{
"__id__": 31
},
{
"__id__": 32
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 28
},
"propertyPath": [
"_name"
],
"value": "道具"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"95QVeGhHxFHYdTtrbtkAQN"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 28
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 28
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 28
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 33
},
"propertyPath": [
"playOnLoad"
],
"value": true
},
{
"__type__": "cc.TargetInfo",
"localID": [
"41IFKRClFAq4STk7UDKwB9"
]
},
{
"__type__": "cc.Node",
"_name": "foodNode",
...
...
@@ -1057,10 +927,10 @@
"_active": true,
"_components": [
{
"__id__":
3
5
"__id__":
2
5
},
{
"__id__":
3
6
"__id__":
2
6
}
],
"_prefab": null,
...
...
@@ -1099,7 +969,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
3
4
"__id__":
2
4
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1121,7 +991,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
3
4
"__id__":
2
4
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1333,6 +1203,92 @@
},
"_id": "9esMn6VP9O+rMphRXPE94i"
},
{
"__type__": "cc.Node",
"_name": "luckyBagNode",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 29
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "e5ZufX5wZF07Gw6IFirOHO"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 27
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "bc6xbWzgVC9J+xEkVZE9WX"
},
{
"__type__": "c6bf9hAYVpCebrObMvViAOX",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 27
},
"_enabled": true,
"__prefab": null,
"luckyBagPrefab": {
"__uuid__": "082dafb6-e18d-4d23-bfac-18b09cac9bc4",
"__expectedType__": "cc.Prefab"
},
"_id": "ecV8rM60JPDoMsu8jKt32Y"
},
{
"__type__": "cc.Node",
"_name": "animalNode",
...
...
@@ -1345,7 +1301,7 @@
"_active": true,
"_components": [
{
"__id__": 3
8
"__id__": 3
1
}
],
"_prefab": null,
...
...
@@ -1384,7 +1340,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
7
"__id__": 3
0
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1410,16 +1366,16 @@
},
"_children": [
{
"__id__":
40
"__id__":
33
}
],
"_active": true,
"_components": [
{
"__id__": 4
9
"__id__": 4
2
},
{
"__id__":
50
"__id__":
43
}
],
"_prefab": null,
...
...
@@ -1458,26 +1414,26 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 3
9
"__id__": 3
2
},
"_children": [
{
"__id__":
41
"__id__":
34
}
],
"_active": true,
"_components": [
{
"__id__":
45
"__id__":
38
},
{
"__id__":
46
"__id__":
39
},
{
"__id__": 4
7
"__id__": 4
0
},
{
"__id__": 4
8
"__id__": 4
1
}
],
"_prefab": null,
...
...
@@ -1516,19 +1472,19 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
40
"__id__":
33
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
42
"__id__":
35
},
{
"__id__":
43
"__id__":
36
},
{
"__id__":
44
"__id__":
37
}
],
"_prefab": null,
...
...
@@ -1567,7 +1523,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
41
"__id__":
34
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1589,7 +1545,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
41
"__id__":
34
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1617,7 +1573,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
41
"__id__":
34
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1641,7 +1597,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
40
"__id__":
33
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1663,7 +1619,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
40
"__id__":
33
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1699,7 +1655,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
40
"__id__":
33
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1727,7 +1683,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
40
"__id__":
33
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1751,7 +1707,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
9
"__id__": 3
2
},
"_enabled": true,
"__prefab": null,
...
...
@@ -1773,22 +1729,22 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
9
"__id__": 3
2
},
"_enabled": true,
"__prefab": null,
"head": {
"__id__":
40
"__id__":
33
},
"bodyPrefab": {
"__uuid__": "8c4f22c7-20c7-4868-88ea-dedb8004999f",
"__expectedType__": "cc.Prefab"
},
"joystick": {
"__id__":
51
"__id__":
44
},
"fastBtn": {
"__id__":
63
"__id__":
56
},
"camera": {
"__id__": 4
...
...
@@ -1801,15 +1757,15 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
52
"__id__":
45
},
"_enabled": true,
"__prefab": null,
"handle": {
"__id__": 1
43
"__id__": 1
36
},
"bg": {
"__id__": 14
7
"__id__": 14
0
},
"normalSp": {
"__uuid__": "7f413237-4b73-4bae-bca7-7ab9e9742ebc@f9941",
...
...
@@ -1827,26 +1783,26 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
53
"__id__":
46
},
"_children": [
{
"__id__": 1
43
"__id__": 1
36
}
],
"_active": true,
"_components": [
{
"__id__": 1
46
"__id__": 1
39
},
{
"__id__": 14
7
"__id__": 14
0
},
{
"__id__":
51
"__id__":
44
},
{
"__id__": 14
8
"__id__": 14
1
}
],
"_prefab": null,
...
...
@@ -1889,40 +1845,40 @@
},
"_children": [
{
"__id__":
54
"__id__":
47
},
{
"__id__":
56
"__id__":
49
},
{
"__id__":
60
"__id__":
53
},
{
"__id__":
52
"__id__":
45
},
{
"__id__":
66
"__id__":
59
},
{
"__id__": 8
7
"__id__": 8
0
},
{
"__id__":
106
"__id__":
99
},
{
"__id__": 1
13
"__id__": 1
06
}
],
"_active": true,
"_components": [
{
"__id__": 1
40
"__id__": 1
33
},
{
"__id__": 1
41
"__id__": 1
34
},
{
"__id__": 1
42
"__id__": 1
35
}
],
"_prefab": null,
...
...
@@ -1961,13 +1917,13 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
53
"__id__":
46
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
55
"__id__":
48
}
],
"_prefab": null,
...
...
@@ -2006,7 +1962,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
54
"__id__":
47
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2014,7 +1970,7 @@
"_priority": 50000,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight":
582.5777777777778
,
"_orthoHeight":
617.8074074074075
,
"_near": 1,
"_far": 2000,
"_color": {
...
...
@@ -2052,19 +2008,19 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
53
"__id__":
46
},
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
{
"__id__": 5
7
"__id__": 5
0
},
{
"__id__": 5
8
"__id__": 5
1
},
{
"__id__": 5
9
"__id__": 5
2
}
],
"_prefab": null,
...
...
@@ -2103,7 +2059,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
56
"__id__":
49
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2125,7 +2081,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
56
"__id__":
49
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2164,7 +2120,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
56
"__id__":
49
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2194,25 +2150,25 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
53
"__id__":
46
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
61
"__id__":
54
},
{
"__id__":
62
"__id__":
55
},
{
"__id__":
63
"__id__":
56
},
{
"__id__":
64
"__id__":
57
},
{
"__id__":
65
"__id__":
58
}
],
"_prefab": null,
...
...
@@ -2251,7 +2207,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
60
"__id__":
53
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2273,7 +2229,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
60
"__id__":
53
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2312,12 +2268,12 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
60
"__id__":
53
},
"_enabled": true,
"__prefab": null,
"sp": {
"__id__":
62
"__id__":
55
},
"_id": "cbuYoeJJBN/Z/dZ6F3l5A5"
},
...
...
@@ -2327,7 +2283,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
60
"__id__":
53
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2389,7 +2345,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
60
"__id__":
53
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2419,26 +2375,26 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
53
"__id__":
46
},
"_children": [
{
"__id__": 6
7
"__id__": 6
0
},
{
"__id__":
70
"__id__":
63
}
],
"_active": true,
"_components": [
{
"__id__":
84
"__id__":
77
},
{
"__id__":
85
"__id__":
78
},
{
"__id__":
86
"__id__":
79
}
],
"_prefab": null,
...
...
@@ -2477,16 +2433,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
66
"__id__":
59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
8
"__id__": 6
1
},
{
"__id__": 6
9
"__id__": 6
2
}
],
"_prefab": null,
...
...
@@ -2525,7 +2481,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 6
7
"__id__": 6
0
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2547,7 +2503,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 6
7
"__id__": 6
0
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2612,20 +2568,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
66
"__id__":
59
},
"_children": [
{
"__id__":
71
"__id__":
64
},
{
"__id__":
80
"__id__":
73
}
],
"_active": true,
"_components": [
{
"__id__":
83
"__id__":
76
}
],
"_prefab": null,
...
...
@@ -2664,23 +2620,23 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
70
"__id__":
63
},
"_children": [
{
"__id__":
72
"__id__":
65
},
{
"__id__":
75
"__id__":
68
}
],
"_active": true,
"_components": [
{
"__id__": 7
8
"__id__": 7
1
},
{
"__id__": 7
9
"__id__": 7
2
}
],
"_prefab": null,
...
...
@@ -2719,16 +2675,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
71
"__id__":
64
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
73
"__id__":
66
},
{
"__id__":
74
"__id__":
67
}
],
"_prefab": null,
...
...
@@ -2767,7 +2723,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
72
"__id__":
65
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2789,7 +2745,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
72
"__id__":
65
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2854,16 +2810,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
71
"__id__":
64
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
76
"__id__":
69
},
{
"__id__": 7
7
"__id__": 7
0
}
],
"_prefab": null,
...
...
@@ -2902,7 +2858,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
75
"__id__":
68
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2924,7 +2880,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
75
"__id__":
68
},
"_enabled": true,
"__prefab": null,
...
...
@@ -2989,7 +2945,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
71
"__id__":
64
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3011,7 +2967,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
71
"__id__":
64
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3043,16 +2999,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
70
"__id__":
63
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
81
"__id__":
74
},
{
"__id__":
82
"__id__":
75
}
],
"_prefab": null,
...
...
@@ -3091,7 +3047,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
80
"__id__":
73
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3113,7 +3069,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
80
"__id__":
73
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3178,7 +3134,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
70
"__id__":
63
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3200,7 +3156,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
66
"__id__":
59
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3222,7 +3178,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
66
"__id__":
59
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3252,7 +3208,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
66
"__id__":
59
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3284,23 +3240,23 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
53
"__id__":
46
},
"_children": [
{
"__id__": 8
8
"__id__": 8
1
}
],
"_active": true,
"_components": [
{
"__id__":
103
"__id__":
96
},
{
"__id__":
104
"__id__":
97
},
{
"__id__":
105
"__id__":
98
}
],
"_prefab": null,
...
...
@@ -3337,17 +3293,17 @@
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 8
7
"__id__": 8
0
},
"_prefab": {
"__id__": 8
9
"__id__": 8
2
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 8
8
"__id__": 8
1
},
"asset": {
"__uuid__": "279fb523-a195-4d19-9e7c-1a05f1af2c6b",
...
...
@@ -3355,7 +3311,7 @@
},
"fileId": "49A5rcXXVEt7bJwMc/vvkp",
"instance": {
"__id__":
90
"__id__":
83
},
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
...
...
@@ -3368,31 +3324,31 @@
"mountedComponents": [],
"propertyOverrides": [
{
"__id__":
91
"__id__":
84
},
{
"__id__":
93
"__id__":
86
},
{
"__id__":
94
"__id__":
87
},
{
"__id__":
95
"__id__":
88
},
{
"__id__":
96
"__id__":
89
},
{
"__id__": 9
8
"__id__": 9
1
},
{
"__id__":
100
"__id__":
93
},
{
"__id__":
101
"__id__":
94
},
{
"__id__":
102
"__id__":
95
}
],
"removedComponents": []
...
...
@@ -3400,7 +3356,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__":
92
"__id__":
85
},
"propertyPath": [
"_name"
...
...
@@ -3416,7 +3372,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__":
92
"__id__":
85
},
"propertyPath": [
"_lpos"
...
...
@@ -3431,7 +3387,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__":
92
"__id__":
85
},
"propertyPath": [
"_lrot"
...
...
@@ -3447,7 +3403,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__":
92
"__id__":
85
},
"propertyPath": [
"_euler"
...
...
@@ -3462,7 +3418,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 9
7
"__id__": 9
0
},
"propertyPath": [
"_enableOutline"
...
...
@@ -3478,7 +3434,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 9
9
"__id__": 9
2
},
"propertyPath": [
"_contentSize"
...
...
@@ -3498,7 +3454,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 9
7
"__id__": 9
0
},
"propertyPath": [
"_isItalic"
...
...
@@ -3508,7 +3464,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 9
7
"__id__": 9
0
},
"propertyPath": [
"_isBold"
...
...
@@ -3518,7 +3474,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 9
7
"__id__": 9
0
},
"propertyPath": [
"_cacheMode"
...
...
@@ -3531,7 +3487,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
7
"__id__": 8
0
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3553,7 +3509,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
7
"__id__": 8
0
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3583,7 +3539,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
7
"__id__": 8
0
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3596,7 +3552,7 @@
"__expectedType__": "cc.Prefab"
},
"selfNode": {
"__id__": 8
8
"__id__": 8
1
},
"_id": "d17UmC1cFCiY8DxwBXpbec"
},
...
...
@@ -3606,23 +3562,23 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
53
"__id__":
46
},
"_children": [
{
"__id__": 10
7
"__id__": 10
0
}
],
"_active": true,
"_components": [
{
"__id__": 1
10
"__id__": 1
03
},
{
"__id__": 1
11
"__id__": 1
04
},
{
"__id__": 1
12
"__id__": 1
05
}
],
"_prefab": null,
...
...
@@ -3661,16 +3617,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
106
"__id__":
99
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
8
"__id__": 10
1
},
{
"__id__": 10
9
"__id__": 10
2
}
],
"_prefab": null,
...
...
@@ -3709,7 +3665,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
7
"__id__": 10
0
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3731,7 +3687,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
7
"__id__": 10
0
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3796,7 +3752,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
106
"__id__":
99
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3818,7 +3774,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
106
"__id__":
99
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3857,7 +3813,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
106
"__id__":
99
},
"_enabled": true,
"__prefab": null,
...
...
@@ -3887,29 +3843,29 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
53
"__id__":
46
},
"_children": [
{
"__id__": 1
14
"__id__": 1
07
},
{
"__id__": 1
30
"__id__": 1
23
},
{
"__id__": 1
33
"__id__": 1
26
}
],
"_active": true,
"_components": [
{
"__id__": 13
7
"__id__": 13
0
},
{
"__id__": 13
8
"__id__": 13
1
},
{
"__id__": 13
9
"__id__": 13
2
}
],
"_prefab": null,
...
...
@@ -3948,20 +3904,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
13
"__id__": 1
06
},
"_children": [
{
"__id__": 1
15
"__id__": 1
08
}
],
"_active": true,
"_components": [
{
"__id__": 12
8
"__id__": 12
1
},
{
"__id__": 12
9
"__id__": 12
2
}
],
"_prefab": null,
...
...
@@ -4000,29 +3956,29 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
14
"__id__": 1
07
},
"_children": [
{
"__id__": 1
16
"__id__": 1
09
},
{
"__id__": 11
9
"__id__": 11
2
},
{
"__id__": 1
22
"__id__": 1
15
}
],
"_active": true,
"_components": [
{
"__id__": 1
25
"__id__": 1
18
},
{
"__id__": 1
26
"__id__": 1
19
},
{
"__id__": 12
7
"__id__": 12
0
}
],
"_prefab": null,
...
...
@@ -4061,23 +4017,23 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
15
"__id__": 1
08
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
7
"__id__": 11
0
},
{
"__id__": 11
8
"__id__": 11
1
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -36.
4
,
"y": -7.4
49999999999997
5,
"x": -36.
399993896484375
,
"y": -7.4
5000000000000
5,
"z": 0
},
"_lrot": {
...
...
@@ -4109,7 +4065,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
16
"__id__": 1
09
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4131,7 +4087,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
16
"__id__": 1
09
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4192,27 +4148,27 @@
},
{
"__type__": "cc.Node",
"_name": "
Label-001
",
"_name": "
cdNum
",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
15
"__id__": 1
08
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
20
"__id__": 1
13
},
{
"__id__": 1
21
"__id__": 1
14
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 10
.000000000000007
,
"y":
3.552713678800501e-15
,
"x": 10,
"y":
5.212999999999997
,
"z": 0
},
"_lrot": {
...
...
@@ -4244,14 +4200,14 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
9
"__id__": 11
2
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 28.
8
,
"height":
40.1
"width": 28.
79998779296875
,
"height":
50.526
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -4266,7 +4222,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
9
"__id__": 11
2
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4282,7 +4238,7 @@
},
"_string": "5",
"_horizontalAlign": 1,
"_verticalAlign":
1
,
"_verticalAlign":
0
,
"_actualFontSize": 50,
"_fontSize": 50,
"_fontFamily": "Arial",
...
...
@@ -4299,7 +4255,7 @@
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode":
2
,
"_cacheMode":
1
,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
...
...
@@ -4331,23 +4287,23 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
15
"__id__": 1
08
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
23
"__id__": 1
16
},
{
"__id__": 1
24
"__id__": 1
17
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 46.
4
,
"y": -7.4
49999999999997
5,
"x": 46.
399993896484375
,
"y": -7.4
5000000000000
5,
"z": 0
},
"_lrot": {
...
...
@@ -4379,7 +4335,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
22
"__id__": 1
15
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4401,7 +4357,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
22
"__id__": 1
15
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4466,13 +4422,13 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
15
"__id__": 1
08
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 112.
8
,
"width": 112.
79998779296875
,
"height": 40.10000000000001
},
"_anchorPoint": {
...
...
@@ -4488,7 +4444,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
15
"__id__": 1
08
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4520,7 +4476,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
15
"__id__": 1
08
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4550,7 +4506,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
14
"__id__": 1
07
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4572,7 +4528,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
14
"__id__": 1
07
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4611,16 +4567,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
13
"__id__": 1
06
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
31
"__id__": 1
24
},
{
"__id__": 1
32
"__id__": 1
25
}
],
"_prefab": null,
...
...
@@ -4659,7 +4615,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
30
"__id__": 1
23
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4681,7 +4637,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
30
"__id__": 1
23
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4721,19 +4677,19 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
13
"__id__": 1
06
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
34
"__id__": 1
27
},
{
"__id__": 1
35
"__id__": 1
28
},
{
"__id__": 1
36
"__id__": 1
29
}
],
"_prefab": null,
...
...
@@ -4772,7 +4728,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
33
"__id__": 1
26
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4794,7 +4750,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
33
"__id__": 1
26
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4859,7 +4815,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
33
"__id__": 1
26
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4889,7 +4845,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
13
"__id__": 1
06
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4911,7 +4867,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
13
"__id__": 1
06
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4941,13 +4897,15 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
13
"__id__": 1
06
},
"_enabled": true,
"__prefab": null,
"graphics": {
"__id__": 1
32
"__id__": 1
25
},
"cdTxt": null,
"goalTxt": null,
"_id": "dfl2fX641H3qOpggystLiY"
},
{
...
...
@@ -4956,7 +4914,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
53
"__id__":
46
},
"_enabled": true,
"__prefab": null,
...
...
@@ -4978,12 +4936,12 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
53
"__id__":
46
},
"_enabled": true,
"__prefab": null,
"_cameraComponent": {
"__id__":
55
"__id__":
48
},
"_alignCanvasWithScreen": true,
"_id": "34wxp/0vpKH4Wcp1ieFQOS"
...
...
@@ -4994,7 +4952,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
53
"__id__":
46
},
"_enabled": true,
"__prefab": null,
...
...
@@ -5024,16 +4982,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__":
52
"__id__":
45
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
44
"__id__": 1
37
},
{
"__id__": 1
45
"__id__": 1
38
}
],
"_prefab": null,
...
...
@@ -5072,7 +5030,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
43
"__id__": 1
36
},
"_enabled": true,
"__prefab": null,
...
...
@@ -5094,7 +5052,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
43
"__id__": 1
36
},
"_enabled": true,
"__prefab": null,
...
...
@@ -5133,7 +5091,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
52
"__id__":
45
},
"_enabled": true,
"__prefab": null,
...
...
@@ -5155,7 +5113,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
52
"__id__":
45
},
"_enabled": true,
"__prefab": null,
...
...
@@ -5194,7 +5152,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__":
52
"__id__":
45
},
"_enabled": true,
"__prefab": null,
...
...
@@ -5303,34 +5261,34 @@
"maxFood": 300,
"maxAnimal": 20,
"joystick": {
"__id__":
51
"__id__":
44
},
"fastBtn": {
"__id__":
63
"__id__":
56
},
"uiBg": {
"__id__": 5
},
"player": {
"__id__":
50
"__id__":
43
},
"fondManger": {
"__id__":
3
6
"__id__":
2
6
},
"animalNode": {
"__id__": 3
7
"__id__": 3
0
},
"camera": {
"__id__": 4
},
"killTxt": {
"__id__": 6
9
"__id__": 6
2
},
"lengthTxt": {
"__id__": 7
7
"__id__": 7
0
},
"luckyNum": {
"__id__": 10
9
"__id__": 10
2
},
"_id": "212vDeP7dNBZXi0fJjPuCy"
},
...
...
@@ -5342,34 +5300,31 @@
"instance": null,
"targetOverrides": [
{
"__id__": 1
54
"__id__": 1
47
}
],
"nestedPrefabInstanceRoots": [
{
"__id__": 24
},
{
"__id__": 88
"__id__": 81
}
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 3
9
"__id__": 3
2
},
"sourceInfo": {
"__id__": 1
55
"__id__": 1
48
},
"propertyPath": [
"head"
],
"target": {
"__id__": 3
9
"__id__": 3
2
},
"targetInfo": {
"__id__": 1
56
"__id__": 1
49
}
},
{
...
...
@@ -5387,28 +5342,28 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 15
8
"__id__": 15
1
},
"shadows": {
"__id__": 15
9
"__id__": 15
2
},
"_skybox": {
"__id__": 1
60
"__id__": 1
53
},
"fog": {
"__id__": 1
61
"__id__": 1
54
},
"octree": {
"__id__": 1
62
"__id__": 1
55
},
"skin": {
"__id__": 1
63
"__id__": 1
56
},
"lightProbeInfo": {
"__id__": 1
64
"__id__": 1
57
},
"postSettings": {
"__id__": 1
65
"__id__": 1
58
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
...
...
assets/Bundles/MainGame/prefab/福袋.prefab
0 → 100644
View file @
233ea1d7
[
{
"__type__": "cc.Prefab",
"_name": "福袋",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "福袋",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__id__": 18
},
{
"__id__": 20
},
{
"__id__": 22
}
],
"_prefab": {
"__id__": 24
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "光",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "66StAJqXFCaJ2ej3HlfBoS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "91e706a3-2b72-4aae-9409-b4ae87570f9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "90C/3naUdLTpUo0dap3pqi"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "41IFKRClFAq4STk7UDKwB9"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "64wwZ9uZZBB5gCQrFUdt98",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "图",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 61,
"height": 59
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5e6yk1hnhLtZvIiPTH+S/y"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "986f5ef8-b353-4dd9-90bd-ed5b536ee6a2@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "87+475Oh1E5JZyBvCWovfH"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b5udWGGdZFkr37lglnfJcy",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bdBolABn1LK44IChBt7j2O"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 4,
"_type": 2,
"_allowSleep": true,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6cxO6EcOZGIY2Mutu8PTpJ"
},
{
"__type__": "cc.CircleCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_radius": 30,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d4nguP1hRPj6hmP9ugayLT"
},
{
"__type__": "5da8aSqHYxAvaSUEz+0fvlM",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 23
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3e5kK27VpPMblCs9d+jIA3"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "95QVeGhHxFHYdTtrbtkAQN",
"targetOverrides": null
}
]
\ No newline at end of file
assets/Bundles/MainGame/prefab/福袋.prefab.meta
0 → 100644
View file @
233ea1d7
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "082dafb6-e18d-4d23-bfac-18b09cac9bc4",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "福袋"
}
}
assets/Scripts/Scenes/MainGame/AI/AIPerception.ts
View file @
233ea1d7
...
...
@@ -4,6 +4,7 @@ import { AIBehaviorParams } from "./AIBehaviorParams";
import
{
AISnake
}
from
"../AISnake"
;
import
{
MainGame
}
from
"../MainGame"
;
import
{
Global
}
from
"../Global"
;
import
{
FoodManger
}
from
"../Manager/FoodManger"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -100,7 +101,7 @@ export class AIPerception {
private
findOptimalFood
(
situation
:
any
):
Vec3
|
null
{
const
foods
=
MainGame
.
ins
.
fondManger
.
node
.
children
;
const
foods
=
FoodManger
.
ins
.
node
.
children
;
let
bestFood
=
null
;
let
bestScore
=
-
Infinity
;
const
myPos
=
this
.
snake
.
head
.
getPosition
();
...
...
assets/Scripts/Scenes/MainGame/AISnake.ts
View file @
233ea1d7
...
...
@@ -4,6 +4,7 @@ import { DirectionType } from "./Common/Enums";
import
{
Global
}
from
"./Global"
;
import
{
MainGame
}
from
"./MainGame"
;
import
{
aiPool
}
from
"./Manager/CommonPool"
;
import
{
FoodManger
}
from
"./Manager/FoodManger"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -792,7 +793,7 @@ export class AISnake extends Snake {
let
nearestFood
=
null
;
let
minDistance
=
this
.
difficultyParams
.
viewDistance
;
const
foods
=
MainGame
.
ins
.
fondManger
.
node
.
children
;
const
foods
=
FoodManger
.
ins
.
node
.
children
;
const
boundaryBuffer
=
this
.
ESCAPE_BOUNDARY
;
const
mapWidth
=
Global
.
MAP_WIDTH
;
const
mapHeight
=
Global
.
MAP_HEIGHT
;
...
...
assets/Scripts/Scenes/MainGame/AISnakeBack.ts
View file @
233ea1d7
...
...
@@ -4,6 +4,7 @@ import { DirectionType } from "./Common/Enums";
import
{
Global
}
from
"./Global"
;
import
{
MainGame
}
from
"./MainGame"
;
import
{
aiPool
}
from
"./Manager/CommonPool"
;
import
{
FoodManger
}
from
"./Manager/FoodManger"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -796,7 +797,7 @@ export class AISnake extends Snake {
let
nearestFood
=
null
;
let
minDistance
=
this
.
difficultyParams
.
viewDistance
;
const
foods
=
MainGame
.
ins
.
fondManger
.
node
.
children
;
const
foods
=
FoodManger
.
ins
.
node
.
children
;
const
boundaryBuffer
=
this
.
ESCAPE_BOUNDARY
;
const
mapWidth
=
Global
.
MAP_WIDTH
;
const
mapHeight
=
Global
.
MAP_HEIGHT
;
...
...
assets/Scripts/Scenes/MainGame/Common/Enums.ts
View file @
233ea1d7
...
...
@@ -8,12 +8,12 @@ export const Events = {
};
// 食物类型枚举
export
enum
Food
Type
{
export
enum
EProp
Type
{
FOOD
=
0
,
// 普通食物
LUCK_BAG
=
1
// 福袋
}
ccenum
(
Food
Type
);
ccenum
(
EProp
Type
);
// 移动方向枚举
export
enum
DirectionType
{
...
...
assets/Scripts/Scenes/MainGame/Components/Target.ts
View file @
233ea1d7
import
{
_decorator
,
Component
,
Graphics
,
math
,
misc
,
Node
}
from
"cc"
;
import
{
_decorator
,
Component
,
Graphics
,
Label
,
math
,
misc
,
Node
}
from
"cc"
;
const
{
ccclass
,
property
,
executeInEditMode
}
=
_decorator
;
...
...
@@ -8,6 +8,10 @@ export class Target extends Component {
@
property
(
Graphics
)
graphics
:
Graphics
=
null
;
@
property
(
Label
)
cdTxt
:
Label
=
null
;
@
property
(
Label
)
goalTxt
:
Label
=
null
;
start
()
{
// this.graphics.clear();
// this.graphics.moveTo(120, 0);
...
...
@@ -30,10 +34,7 @@ export class Target extends Component {
51
,
];
const
totalLength
=
phases
.
reduce
((
a
,
b
,
i
)
=>
{
phases
[
i
]
=
a
+
b
;
return
phases
[
i
];
},
0
);
const
totalLength
=
phases
.
reduce
((
a
,
b
,
i
)
=>
a
+
b
,
0
);
// Tip: 注意此时phases的结果
...
...
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
233ea1d7
...
...
@@ -56,8 +56,6 @@ export class MainGame extends Scene {
@
property
(
Player
)
player
:
Player
=
null
;
@
property
(
FoodManger
)
fondManger
:
FoodManger
=
null
;
@
property
(
Node
)
animalNode
:
Node
=
null
;
@
property
(
Camera
)
camera
:
Camera
=
null
;
...
...
@@ -94,7 +92,7 @@ export class MainGame extends Scene {
});
// 初始化食物和NPC
this
.
fondManger
.
init
(
this
.
maxFood
);
FoodManger
.
ins
.
init
(
this
.
maxFood
);
// this.fondManger.init(2000);
this
.
initAnimal
(
this
.
maxAnimal
);
// this.initAnimal(1);
...
...
@@ -118,7 +116,7 @@ export class MainGame extends Scene {
this
.
lengthTxt
.
string
=
`
${
length
}
`
;
this
.
killTxt
.
string
=
`
${
killNum
}
名`
;
this
.
luckyNum
.
string
=
`×
${
luckNum
}
`
;
this
.
luckyNum
.
string
=
`×
${
luckNum
+
gameStore
.
startInfo
?.
accumulateLuckNum
||
0
}
`;
}
...
...
assets/Scripts/Scenes/MainGame/Manager/FoodManger.ts
View file @
233ea1d7
...
...
@@ -8,7 +8,7 @@ import {
Prefab
,
instantiate
,
Vec2
}
from
"cc"
;
import
{
Food
Type
}
from
"db://assets/Scripts/Scenes/MainGame/Common/Enums"
;
import
{
EProp
Type
}
from
"db://assets/Scripts/Scenes/MainGame/Common/Enums"
;
import
{
Global
}
from
"db://assets/Scripts/Scenes/MainGame/Global"
;
import
{
executePreFrame
,
getItemGenerator
}
from
"db://assets/Scripts/Utils/ExecutePreFrame"
;
import
{
Food
}
from
"../Props/Food"
;
...
...
@@ -22,6 +22,11 @@ const { ccclass, property } = _decorator;
@
ccclass
(
"FoodManger"
)
export
class
FoodManger
extends
Component
{
private
static
_ins
:
FoodManger
=
null
;
static
get
ins
()
{
return
this
.
_ins
;
}
@
property
({
type
:
[
SpriteFrame
]
})
private
foods
:
SpriteFrame
[]
=
[];
...
...
@@ -31,6 +36,11 @@ export class FoodManger extends Component {
maxFood
:
number
=
100
;
onLoad
()
{
FoodManger
.
_ins
=
this
;
}
onDestroy
()
{
FoodManger
.
_ins
=
null
;
}
/**
...
...
@@ -63,13 +73,16 @@ export class FoodManger extends Component {
*/
addFood
(
x
?:
number
,
y
?:
number
,
energy
:
number
=
1
)
{
const
maxW
=
Global
.
MAP_HEIGHT
/
2
-
100
;
const
maxH
=
Global
.
MAP_HEIGHT
/
2
-
100
;
// 如果没有指定位置,随机生成位置
if
(
!
x
)
{
x
=
math
.
randomRange
Int
(
-
(
Global
.
MAP_WIDTH
/
2
-
50
),
Global
.
MAP_WIDTH
/
2
-
50
);
x
=
math
.
randomRange
(
-
maxW
,
maxW
);
}
if
(
!
y
)
{
y
=
math
.
randomRange
Int
(
-
(
Global
.
MAP_HEIGHT
/
2
-
50
),
Global
.
MAP_HEIGHT
/
2
-
50
);
y
=
math
.
randomRange
(
-
maxH
,
maxH
);
}
const
food
=
foodPool
.
get
()
||
instantiate
(
this
.
foodPrefab
);
...
...
@@ -87,7 +100,7 @@ export class FoodManger extends Component {
// 设置碰撞类型
const
collider
=
food
.
getComponent
(
Collider2D
);
if
(
collider
)
{
collider
.
tag
=
Food
Type
.
FOOD
;
collider
.
tag
=
EProp
Type
.
FOOD
;
}
food
.
active
=
true
;
...
...
@@ -97,11 +110,7 @@ export class FoodManger extends Component {
* 初始化单个食物
*/
initItem
=
(
_
:
number
)
=>
{
// 随机生成位置
const
x
=
math
.
randomRangeInt
(
-
(
Global
.
MAP_WIDTH
/
2
-
50
),
Global
.
MAP_WIDTH
/
2
-
50
);
const
y
=
math
.
randomRangeInt
(
-
(
Global
.
MAP_HEIGHT
/
2
-
50
),
Global
.
MAP_HEIGHT
/
2
-
50
);
this
.
addFood
(
x
,
y
);
this
.
addFood
();
};
async
initFoods
(
infoArr
:
{
x
:
number
,
y
:
number
,
energy
:
number
}[])
{
...
...
assets/Scripts/Scenes/MainGame/Manager/LuckyBagManager.ts
View file @
233ea1d7
...
...
@@ -6,9 +6,9 @@ import {
Prefab
,
instantiate
,
}
from
"cc"
;
import
{
Food
Type
}
from
"db://assets/Scripts/Scenes/MainGame/Common/Enums"
;
import
{
EProp
Type
}
from
"db://assets/Scripts/Scenes/MainGame/Common/Enums"
;
import
{
Global
}
from
"db://assets/Scripts/Scenes/MainGame/Global"
;
import
{
executePreFrame
,
getItemGenerator
}
from
"db://assets/Scripts/Utils/ExecutePreFram
e"
;
import
gameStore
from
"../../../store/gameStor
e"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -18,61 +18,55 @@ const { ccclass, property } = _decorator;
@
ccclass
(
"LuckyBagManager"
)
export
class
LuckyBagManager
extends
Component
{
@
property
(
Prefab
)
fuDaiPrefab
:
Prefab
=
null
;
private
static
_ins
:
LuckyBagManager
=
null
;
static
get
ins
()
{
return
this
.
_ins
;
}
maxFood
:
number
=
5
;
@
property
(
Prefab
)
luckyBagPrefab
:
Prefab
=
null
;
onLoad
()
{
LuckyBagManager
.
_ins
=
this
;
}
/**
* 初始化食物
*/
async
init
(
maxFood
:
number
=
100
)
{
this
.
maxFood
=
maxFood
;
await
executePreFrame
(
getItemGenerator
(
maxFood
,
this
.
initItem
),
1
,
this
);
onDestroy
()
{
LuckyBagManager
.
_ins
=
null
;
}
/**
* 设置食物
*/
add
(
x
?:
number
,
y
?:
number
)
{
start
()
{
this
.
flushItems
();
}
// 如果没有指定位置,随机生成位置
if
(
!
x
)
{
x
=
math
.
randomRangeInt
(
-
(
Global
.
MAP_WIDTH
/
2
-
50
),
Global
.
MAP_WIDTH
/
2
-
50
);
}
flushItems
()
{
const
{
luckNum
}
=
gameStore
.
gameInfo
||
{};
const
{
currentAcquireNum
}
=
gameStore
.
startInfo
||
{};
if
(
!
y
)
{
y
=
math
.
randomRangeInt
(
-
(
Global
.
MAP_HEIGHT
/
2
-
50
),
Global
.
MAP_HEIGHT
/
2
-
50
);
}
const
flushNum
=
Math
.
min
(
currentAcquireNum
-
luckNum
,
3
);
const
food
=
instantiate
(
this
.
fuDaiPrefab
);
this
.
add
(
flushNum
);
}
// 设置食物属性
food
.
setPosition
(
x
,
y
);
this
.
node
.
addChild
(
food
);
add
(
num
:
number
=
1
)
{
// 设置碰撞类型
const
collider
=
food
.
getComponent
(
Collider2D
);
if
(
collider
)
{
collider
.
tag
=
FoodType
.
LUCK_BAG
;
}
const
maxW
=
Global
.
MAP_HEIGHT
/
2
-
100
;
const
maxH
=
(
Global
.
MAP_HEIGHT
/
2
-
100
);
food
.
active
=
true
;
}
for
(
let
i
=
1
;
i
<=
num
;
i
++
)
{
const
x
=
math
.
randomRange
(
-
maxW
,
maxW
);
const
y
=
math
.
randomRange
(
-
maxH
,
maxH
);
const
node
=
instantiate
(
this
.
luckyBagPrefab
);
/**
* 初始化单个食物
*/
initItem
=
(
_
:
number
)
=>
{
// 随机生成位置
const
x
=
math
.
randomRangeInt
(
-
(
Global
.
MAP_WIDTH
/
2
-
50
),
Global
.
MAP_WIDTH
/
2
-
50
);
const
y
=
math
.
randomRangeInt
(
-
(
Global
.
MAP_HEIGHT
/
2
-
50
),
Global
.
MAP_HEIGHT
/
2
-
50
);
// 设置食物属性
node
.
setPosition
(
x
,
y
);
this
.
node
.
addChild
(
node
);
this
.
add
(
x
,
y
);
};
// 设置碰撞类型
const
collider
=
node
.
getComponent
(
Collider2D
);
if
(
collider
)
{
collider
.
tag
=
EPropType
.
LUCK_BAG
;
}
}
}
}
assets/Scripts/Scenes/MainGame/Props/LuckyBag.ts
View file @
233ea1d7
import
{
_decorator
}
from
"cc"
;
import
{
propPool
}
from
"../Manager/CommonPool"
;
import
{
PropBase
}
from
"./PropBase"
;
import
{
Snake
}
from
"../Snake"
;
...
...
@@ -14,7 +13,8 @@ export class LuckyBag extends PropBase {
recycle
()
{
this
.
node
.
removeFromParent
();
propPool
.
put
(
this
.
node
);
this
.
node
.
destroy
();
// propPool.put(this.node);
}
}
\ No newline at end of file
assets/Scripts/Scenes/MainGame/Snake.ts
View file @
233ea1d7
...
...
@@ -15,9 +15,9 @@ import {
}
from
"cc"
;
import
{
Global
}
from
"./Global"
;
import
{
isIntersect
,
loadSkin
}
from
"./utils/uitl"
;
import
{
MainGame
}
from
"./MainGame"
;
import
{
bodyPool
}
from
"./Manager/CommonPool"
;
import
{
PropBase
}
from
"./Props/PropBase"
;
import
{
FoodManger
}
from
"./Manager/FoodManger"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -382,7 +382,7 @@ export class Snake extends Component {
};
});
MainGame
.
ins
.
fondManger
.
initFoods
(
foodArr
);
FoodManger
.
ins
.
initFoods
(
foodArr
);
}
protected
getNewPos
(
angle
:
number
,
dt
:
number
,
currentPos
:
Vec3
,
speed
:
number
=
this
.
speed
):
Vec3
{
...
...
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