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
dc523366
Commit
dc523366
authored
Nov 28, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
66221ebf
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1563 additions
and
311 deletions
+1563
-311
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+538
-254
propNum.png
assets/Bundles/MainGame/png/UI/propNum.png
+0
-0
propNum.png.meta
assets/Bundles/MainGame/png/UI/propNum.png.meta
+134
-0
卡A.prefab
assets/Bundles/MainGame/prefab/卡A.prefab
+278
-15
卡B.prefab
assets/Bundles/MainGame/prefab/卡B.prefab
+278
-15
卡C.prefab
assets/Bundles/MainGame/prefab/卡C.prefab
+278
-15
福袋.prefab
assets/Bundles/MainGame/prefab/福袋.prefab
+2
-0
PreCd.ts
assets/Scripts/Scenes/MainGame/Components/PreCd.ts
+5
-1
PropBtn.ts
assets/Scripts/Scenes/MainGame/Components/PropBtn.ts
+20
-4
Target.ts
assets/Scripts/Scenes/MainGame/Components/Target.ts
+6
-1
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+5
-1
CardManager.ts
assets/Scripts/Scenes/MainGame/Manager/CardManager.ts
+5
-1
FoodManger.ts
assets/Scripts/Scenes/MainGame/Manager/FoodManger.ts
+6
-2
LuckyBagManager.ts
assets/Scripts/Scenes/MainGame/Manager/LuckyBagManager.ts
+5
-1
SpeedPropBtn.ts
assets/Scripts/Scenes/MainGame/PropBtn/SpeedPropBtn.ts
+3
-1
No files found.
assets/Bundles/MainGame/MainGame.scene
View file @
dc523366
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/png/UI/propNum.png
0 → 100644
View file @
dc523366
860 Bytes
assets/Bundles/MainGame/png/UI/propNum.png.meta
0 → 100644
View file @
dc523366
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "96ddc659-7450-4f8e-a83b-de04481e8e59",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "96ddc659-7450-4f8e-a83b-de04481e8e59@6c48a",
"displayName": "propNum",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "96ddc659-7450-4f8e-a83b-de04481e8e59",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "96ddc659-7450-4f8e-a83b-de04481e8e59@f9941",
"displayName": "propNum",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 32,
"rawWidth": 32,
"rawHeight": 32,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16,
-16,
0,
16,
-16,
0,
-16,
16,
0,
16,
16,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
32,
32,
32,
0,
0,
32,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16,
-16,
0
],
"maxPos": [
16,
16,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "96ddc659-7450-4f8e-a83b-de04481e8e59@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "96ddc659-7450-4f8e-a83b-de04481e8e59@6c48a"
}
}
assets/Bundles/MainGame/prefab/卡A.prefab
View file @
dc523366
...
@@ -17,27 +17,84 @@
...
@@ -17,27 +17,84 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"_parent": null,
"_parent": null,
"_children": [],
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
2
"__id__":
16
},
},
{
{
"__id__":
4
"__id__":
18
},
},
{
{
"__id__":
6
"__id__":
20
},
},
{
{
"__id__": 8
"__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__": 10
"__id__": 5
},
{
"__id__": 7
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
12
"__id__":
9
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
...
@@ -74,11 +131,176 @@
...
@@ -74,11 +131,176 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"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": "a9m0zFlAVMTolbJJyHStnD"
},
{
"__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": "63pxYfYalJV7q/FL1IcSkH"
},
{
"__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": "d6D0xQbklDfLA7CluGRD3P"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "d6pw+sFUdBPrHDo8LQnwe3",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "card",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
"__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,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
3
"__id__":
12
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
...
@@ -94,7 +316,7 @@
...
@@ -94,7 +316,7 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
f36Gjr/cxA5bosiEnf90lC
"
"fileId": "
d1CqVezb5CTq8E0iTrZfnx
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -102,11 +324,11 @@
...
@@ -102,11 +324,11 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 1
"__id__": 1
0
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
5
"__id__":
14
},
},
"_customMaterial": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_srcBlendFactor": 2,
...
@@ -139,7 +361,48 @@
...
@@ -139,7 +361,48 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "79U2Z8PihDCKpj25KchRMz"
"fileId": "28Jyp/LdhOv4Sv8MjO8OC+"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "00kFVa8FBOo59BjrcYSa8m",
"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": 32,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f36Gjr/cxA5bosiEnf90lC"
},
},
{
{
"__type__": "cc.RigidBody2D",
"__type__": "cc.RigidBody2D",
...
@@ -151,7 +414,7 @@
...
@@ -151,7 +414,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
7
"__id__":
19
},
},
"enabledContactListener": true,
"enabledContactListener": true,
"bullet": false,
"bullet": false,
...
@@ -185,7 +448,7 @@
...
@@ -185,7 +448,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
9
"__id__":
21
},
},
"tag": 0,
"tag": 0,
"_group": 4,
"_group": 4,
...
@@ -219,7 +482,7 @@
...
@@ -219,7 +482,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
11
"__id__":
23
},
},
"tag": 2,
"tag": 2,
"_id": ""
"_id": ""
...
...
assets/Bundles/MainGame/prefab/卡B.prefab
View file @
dc523366
...
@@ -17,27 +17,84 @@
...
@@ -17,27 +17,84 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"_parent": null,
"_parent": null,
"_children": [],
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
2
"__id__":
16
},
},
{
{
"__id__":
4
"__id__":
18
},
},
{
{
"__id__":
6
"__id__":
20
},
},
{
{
"__id__": 8
"__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__": 10
"__id__": 5
},
{
"__id__": 7
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
12
"__id__":
9
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
...
@@ -74,11 +131,176 @@
...
@@ -74,11 +131,176 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"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": "b9ojSDLKJM+LLnlYx+jIiz"
},
{
"__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": "f6sp/rCfdDw5k9bAi0vsuK"
},
{
"__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": "22vMU9Y8ZL2KoblHMdgz0m"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c7nKaRpblL/o26rw4n29AL",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "card",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
"__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,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
3
"__id__":
12
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
...
@@ -94,7 +316,7 @@
...
@@ -94,7 +316,7 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
f36Gjr/cxA5bosiEnf90lC
"
"fileId": "
d1/z6rqHVAfaj+WSO/D1xN
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -102,11 +324,11 @@
...
@@ -102,11 +324,11 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 1
"__id__": 1
0
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
5
"__id__":
14
},
},
"_customMaterial": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_srcBlendFactor": 2,
...
@@ -139,7 +361,48 @@
...
@@ -139,7 +361,48 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "79U2Z8PihDCKpj25KchRMz"
"fileId": "07phbCLtlM/KAW+D7CWZnl"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b3CplpSPxBFYkOZrXZK2F9",
"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": 32,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f36Gjr/cxA5bosiEnf90lC"
},
},
{
{
"__type__": "cc.RigidBody2D",
"__type__": "cc.RigidBody2D",
...
@@ -151,7 +414,7 @@
...
@@ -151,7 +414,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
7
"__id__":
19
},
},
"enabledContactListener": true,
"enabledContactListener": true,
"bullet": false,
"bullet": false,
...
@@ -185,7 +448,7 @@
...
@@ -185,7 +448,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
9
"__id__":
21
},
},
"tag": 0,
"tag": 0,
"_group": 4,
"_group": 4,
...
@@ -219,7 +482,7 @@
...
@@ -219,7 +482,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
11
"__id__":
23
},
},
"tag": 3,
"tag": 3,
"_id": ""
"_id": ""
...
...
assets/Bundles/MainGame/prefab/卡C.prefab
View file @
dc523366
...
@@ -17,27 +17,84 @@
...
@@ -17,27 +17,84 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"_parent": null,
"_parent": null,
"_children": [],
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
2
"__id__":
16
},
},
{
{
"__id__":
4
"__id__":
18
},
},
{
{
"__id__":
6
"__id__":
20
},
},
{
{
"__id__": 8
"__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__": 10
"__id__": 5
},
{
"__id__": 7
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
12
"__id__":
9
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
...
@@ -74,11 +131,176 @@
...
@@ -74,11 +131,176 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"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": "40INKyKr5Lz6YJNaCx6bwR"
},
{
"__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": "b1eAO0hgxD6IhmY3HHWXXw"
},
{
"__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": "825XjckfRLCJ3P6QGZwoNq"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "63Mto562FB0pIicSH3zivv",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "card",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
"__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,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
3
"__id__":
12
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
...
@@ -94,7 +316,7 @@
...
@@ -94,7 +316,7 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
f36Gjr/cxA5bosiEnf90lC
"
"fileId": "
c7CLYhNVFJ2q6v3LeGxbzd
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -102,11 +324,11 @@
...
@@ -102,11 +324,11 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 1
"__id__": 1
0
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
5
"__id__":
14
},
},
"_customMaterial": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_srcBlendFactor": 2,
...
@@ -139,7 +361,48 @@
...
@@ -139,7 +361,48 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "79U2Z8PihDCKpj25KchRMz"
"fileId": "e0byy6R19NaYeYRD4S4vjQ"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "63bNL8dRFHjqs4lq8F77Yq",
"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": 32,
"height": 42
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f36Gjr/cxA5bosiEnf90lC"
},
},
{
{
"__type__": "cc.RigidBody2D",
"__type__": "cc.RigidBody2D",
...
@@ -151,7 +414,7 @@
...
@@ -151,7 +414,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
7
"__id__":
19
},
},
"enabledContactListener": true,
"enabledContactListener": true,
"bullet": false,
"bullet": false,
...
@@ -185,7 +448,7 @@
...
@@ -185,7 +448,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
9
"__id__":
21
},
},
"tag": 0,
"tag": 0,
"_group": 4,
"_group": 4,
...
@@ -219,7 +482,7 @@
...
@@ -219,7 +482,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
11
"__id__":
23
},
},
"tag": 4,
"tag": 4,
"_id": ""
"_id": ""
...
...
assets/Bundles/MainGame/prefab/福袋.prefab
View file @
dc523366
...
@@ -495,6 +495,7 @@
...
@@ -495,6 +495,7 @@
"__id__": 0
"__id__": 0
},
},
"fileId": "95QVeGhHxFHYdTtrbtkAQN",
"fileId": "95QVeGhHxFHYdTtrbtkAQN",
"instance": null,
"targetOverrides": null
"targetOverrides": null
}
}
]
]
\ No newline at end of file
assets/Scripts/Scenes/MainGame/Components/PreCd.ts
View file @
dc523366
...
@@ -12,8 +12,12 @@ export class PreCd extends Component {
...
@@ -12,8 +12,12 @@ export class PreCd extends Component {
animation
:
Animation
=
null
;
animation
:
Animation
=
null
;
protected
onLoad
()
{
constructor
()
{
super
();
PreCd
.
_ins
=
this
;
PreCd
.
_ins
=
this
;
}
protected
onLoad
()
{
this
.
node
.
active
=
false
;
this
.
node
.
active
=
false
;
this
.
animation
=
this
.
getComponent
(
Animation
);
this
.
animation
=
this
.
getComponent
(
Animation
);
}
}
...
...
assets/Scripts/Scenes/MainGame/Components/PropBtn.ts
View file @
dc523366
...
@@ -14,10 +14,26 @@ export class PropBtn extends Component {
...
@@ -14,10 +14,26 @@ export class PropBtn extends Component {
cdTxt
:
Label
;
cdTxt
:
Label
;
numTxt
:
Label
;
private
_propNum
=
0
;
get
propNum
()
{
return
this
.
_propNum
;
}
set
propNum
(
value
:
number
)
{
this
.
_propNum
=
value
;
this
.
numTxt
.
string
=
`
${
value
}
`
;
}
onLoad
()
{
onLoad
()
{
this
.
img
=
this
.
node
.
getChildByName
(
"img"
).
getComponent
(
Sprite
);
this
.
img
=
this
.
node
.
getChildByName
(
"img"
).
getComponent
(
Sprite
);
this
.
nameTxt
=
this
.
node
.
getChildByName
(
"name"
).
getComponent
(
Label
);
this
.
nameTxt
=
this
.
node
.
getChildByName
(
"name"
).
getComponent
(
Label
);
this
.
numTxt
=
this
.
node
.
getChildByPath
(
"propNum/num"
)
.
getComponent
(
Label
);
const
cd
=
this
.
node
.
getChildByName
(
"cd"
);
const
cd
=
this
.
node
.
getChildByName
(
"cd"
);
this
.
cdMask
=
cd
.
getChildByName
(
"mask"
).
getComponent
(
Graphics
);
this
.
cdMask
=
cd
.
getChildByName
(
"mask"
).
getComponent
(
Graphics
);
...
@@ -33,6 +49,10 @@ export class PropBtn extends Component {
...
@@ -33,6 +49,10 @@ export class PropBtn extends Component {
}
}
start
()
{
}
doUse
()
{
doUse
()
{
}
}
...
@@ -82,10 +102,6 @@ export class PropBtn extends Component {
...
@@ -82,10 +102,6 @@ export class PropBtn extends Component {
});
});
}
}
start
()
{
}
}
}
assets/Scripts/Scenes/MainGame/Components/Target.ts
View file @
dc523366
...
@@ -20,10 +20,15 @@ export class Target extends Component {
...
@@ -20,10 +20,15 @@ export class Target extends Component {
@
property
(
Node
)
mask
:
Node
=
null
;
@
property
(
Node
)
mask
:
Node
=
null
;
@
property
(
Node
)
banner3
:
Node
=
null
;
@
property
(
Node
)
banner3
:
Node
=
null
;
protected
onLoad
()
{
constructor
()
{
super
();
Target
.
_ins
=
this
;
Target
.
_ins
=
this
;
}
}
protected
onLoad
()
{
this
.
node
.
active
=
true
;
}
onDestroy
()
{
onDestroy
()
{
Target
.
_ins
=
null
;
Target
.
_ins
=
null
;
}
}
...
...
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
dc523366
...
@@ -73,8 +73,12 @@ export class MainGame extends Scene {
...
@@ -73,8 +73,12 @@ export class MainGame extends Scene {
return
MainGame
.
_ins
;
return
MainGame
.
_ins
;
}
}
async
onLoad
()
{
constructor
()
{
super
();
MainGame
.
_ins
=
this
;
MainGame
.
_ins
=
this
;
}
async
onLoad
()
{
PhysicsSystem2D
.
instance
.
enable
=
true
;
PhysicsSystem2D
.
instance
.
enable
=
true
;
// PhysicsSystem2D.instance.gravity = math.Vec2.ZERO;
// PhysicsSystem2D.instance.gravity = math.Vec2.ZERO;
...
...
assets/Scripts/Scenes/MainGame/Manager/CardManager.ts
View file @
dc523366
...
@@ -26,10 +26,14 @@ export class CardManager extends Component {
...
@@ -26,10 +26,14 @@ export class CardManager extends Component {
maxCard
:
number
=
10
;
maxCard
:
number
=
10
;
onLoad
()
{
constructor
()
{
super
();
CardManager
.
_ins
=
this
;
CardManager
.
_ins
=
this
;
}
}
onLoad
()
{
}
onDestroy
()
{
onDestroy
()
{
CardManager
.
_ins
=
null
;
CardManager
.
_ins
=
null
;
}
}
...
...
assets/Scripts/Scenes/MainGame/Manager/FoodManger.ts
View file @
dc523366
...
@@ -24,7 +24,7 @@ export class FoodManger extends Component {
...
@@ -24,7 +24,7 @@ export class FoodManger extends Component {
private
static
_ins
:
FoodManger
=
null
;
private
static
_ins
:
FoodManger
=
null
;
static
get
ins
()
{
static
get
ins
()
{
return
this
.
_ins
;
return
FoodManger
.
_ins
;
}
}
@
property
({
type
:
[
SpriteFrame
]
})
@
property
({
type
:
[
SpriteFrame
]
})
...
@@ -35,10 +35,14 @@ export class FoodManger extends Component {
...
@@ -35,10 +35,14 @@ export class FoodManger extends Component {
maxFood
:
number
=
100
;
maxFood
:
number
=
100
;
onLoad
()
{
constructor
()
{
super
();
FoodManger
.
_ins
=
this
;
FoodManger
.
_ins
=
this
;
}
}
onLoad
()
{
}
onDestroy
()
{
onDestroy
()
{
FoodManger
.
_ins
=
null
;
FoodManger
.
_ins
=
null
;
}
}
...
...
assets/Scripts/Scenes/MainGame/Manager/LuckyBagManager.ts
View file @
dc523366
...
@@ -26,9 +26,13 @@ export class LuckyBagManager extends Component {
...
@@ -26,9 +26,13 @@ export class LuckyBagManager extends Component {
@
property
(
Prefab
)
@
property
(
Prefab
)
luckyBagPrefab
:
Prefab
=
null
;
luckyBagPrefab
:
Prefab
=
null
;
onLoad
()
{
constructor
()
{
super
();
LuckyBagManager
.
_ins
=
this
;
LuckyBagManager
.
_ins
=
this
;
}
}
onLoad
()
{
}
onDestroy
()
{
onDestroy
()
{
LuckyBagManager
.
_ins
=
null
;
LuckyBagManager
.
_ins
=
null
;
...
...
assets/Scripts/Scenes/MainGame/PropBtn/SpeedPropBtn.ts
View file @
dc523366
...
@@ -7,9 +7,11 @@ const { ccclass, property } = _decorator;
...
@@ -7,9 +7,11 @@ const { ccclass, property } = _decorator;
export
class
SpeedPropBtn
extends
PropBtn
{
export
class
SpeedPropBtn
extends
PropBtn
{
start
()
{
start
()
{
super
.
start
();
// this.propNum = 10;
}
}
doUse
()
{
doUse
()
{
super
.
doUse
();
super
.
doUse
();
...
...
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