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
5cde1400
Commit
5cde1400
authored
Dec 24, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
0958ae10
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1020 additions
and
79 deletions
+1020
-79
241106_YOGURT_Snake.iml
.idea/241106_YOGURT_Snake.iml
+0
-1
PropPop.prefab
assets/Bundles/PropPop/PropPop.prefab
+714
-68
减.png
assets/Bundles/PropPop/png/减.png
+0
-0
减.png.meta
assets/Bundles/PropPop/png/减.png.meta
+134
-0
加.png
assets/Bundles/PropPop/png/加.png
+0
-0
加.png.meta
assets/Bundles/PropPop/png/加.png.meta
+134
-0
ProPop.ts
assets/Scripts/Panels/ProPop.ts
+33
-6
Global.ts
assets/Scripts/Scenes/MainGame/Global.ts
+2
-2
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+2
-2
queryExchangeList.do.json
preview-template/mock/exchange/queryExchangeList.do.json
+1
-0
No files found.
.idea/241106_YOGURT_Snake.iml
View file @
5cde1400
...
@@ -12,6 +12,5 @@
...
@@ -12,6 +12,5 @@
</content>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"rem"
level=
"application"
/>
</component>
</component>
</module>
</module>
\ No newline at end of file
assets/Bundles/PropPop/PropPop.prefab
View file @
5cde1400
...
@@ -32,25 +32,34 @@
...
@@ -32,25 +32,34 @@
},
},
{
{
"__id__": 42
"__id__": 42
},
{
"__id__": 48
},
{
"__id__": 56
},
{
"__id__": 64
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
48
"__id__":
70
},
},
{
{
"__id__":
50
"__id__":
72
},
},
{
{
"__id__":
52
"__id__":
74
},
},
{
{
"__id__":
54
"__id__":
76
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
57
"__id__":
83
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
...
@@ -387,8 +396,8 @@
...
@@ -387,8 +396,8 @@
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x":
33.45100000000002
,
"x":
210
,
"y": -
69.452
,
"y": -
70
,
"z": 0
"z": 0
},
},
"_lrot": {
"_lrot": {
...
@@ -1228,22 +1237,75 @@
...
@@ -1228,22 +1237,75 @@
"targetOverrides": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
"nestedPrefabInstanceRoots": null
},
},
{
"__type__": "cc.Node",
"_name": "加",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 49
},
{
"__id__": 51
},
{
"__id__": 53
}
],
"_prefab": {
"__id__": 55
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 80,
"y": -70,
"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": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
{
"__type__": "cc.UITransform",
"__type__": "cc.UITransform",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__":
1
"__id__":
48
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
49
"__id__":
50
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
1624
,
"width":
48
,
"height":
750
"height":
48
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1254,115 +1316,639 @@
...
@@ -1254,115 +1316,639 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
4fdKablv9N3KPo6a0KJYqG
"
"fileId": "
5dMVUwr3pJBpgiCdoirzIP
"
},
},
{
{
"__type__": "cc.
Widget
",
"__type__": "cc.
Sprite
",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__":
1
"__id__":
48
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 5
1
"__id__": 5
2
},
},
"_alignFlags": 45,
"_customMaterial": null,
"_target": null,
"_srcBlendFactor": 2,
"_left": 0,
"_dstBlendFactor": 4,
"_right": 0,
"_color": {
"_top": 0,
"__type__": "cc.Color",
"_bottom": 0,
"r": 255,
"_horizontalCenter": 0,
"g": 255,
"_verticalCenter": 0,
"b": 255,
"_isAbsLeft": true,
"a": 255
"_isAbsRight": true,
},
"_isAbsTop": true,
"_spriteFrame": {
"_isAbsBottom": true,
"__uuid__": "0fd20aff-b339-4a94-bb30-ce1975a7c805@f9941",
"_isAbsHorizontalCenter": true,
"__expectedType__": "cc.SpriteFrame"
"_isAbsVerticalCenter": true,
},
"_originalWidth": 100,
"_type": 0,
"_originalHeight": 100,
"_fillType": 0,
"_alignMode": 2,
"_sizeMode": 1,
"_lockFlags": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
"_id": ""
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
cd+4wPXj1HvLk30seu5z2Q
"
"fileId": "
59dAWOwO5M8rNj1kfMwo+g
"
},
},
{
{
"__type__": "
3520dOfaC9PtqD/m/wFQFer
",
"__type__": "
cc.Button
",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__":
1
"__id__":
48
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 53
"__id__": 54
},
"prizeName": {
"__id__": 39
},
},
"closeBtn": {
"clickEvents": [],
"__id__": 28
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
},
"btn": {
"_hoverColor": {
"__id__": 14
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
},
"prize": {
"_pressedColor": {
"__id__": 6
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
},
"explanation": {
"_disabledColor": {
"__id__": 45
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
},
"num": {
"_normalSprite": null,
"__id__": 18
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.05,
"_zoomScale": 0.9,
"_target": {
"__id__": 48
},
},
"_id": ""
"_id": ""
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
d8kkHPSRhJgY/dkn3JOai4
"
"fileId": "
8fW4z7Y+xO2qMyKiiUair7
"
},
},
{
{
"__type__": "057b4KT4QZKeoxpS+8IVX1z",
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "27WOCJ5PJPK6tDoJmFPk86",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "减",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 57
},
{
"__id__": 59
},
{
"__id__": 61
}
],
"_prefab": {
"__id__": 63
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -27,
"y": -70,
"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": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__":
1
"__id__":
56
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 55
"__id__": 58
},
"_contentSize": {
"__type__": "cc.Size",
"width": 48,
"height": 48
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
},
"skinNodeArr": [
{
"__id__": 56
}
],
"_genSkinNode": true,
"_id": ""
"_id": ""
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "f
4hilUuIBBT5bP2gkOU7Gt
"
"fileId": "f
3MX2fT/RCjqYn3OrouL9O
"
},
},
{
{
"__type__": "SkinNode",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"node": {
"__id__":
28
"__id__":
56
},
},
"type": 0,
"_enabled": true,
"color1": {
"__prefab": {
"__id__": 60
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r": 0,
"r": 255,
"g": 0,
"g": 255,
"b": 0,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "2f6698ad-1617-4e04-a3b8-c65e9f3957f0@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": "96YSRbQttFHah4SxSgLwv/"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 56
},
"_enabled": true,
"__prefab": {
"__id__": 62
},
"clickEvents": [],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.05,
"_zoomScale": 0.9,
"_target": {
"__id__": 56
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6dTaHLid5Kmpwv83hfvEGx"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b6US/7c39Drp4X8MRpQnvv",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "num",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 65
},
{
"__id__": 67
}
],
"_prefab": {
"__id__": 69
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 26.5,
"y": -70,
"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": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 64
},
"_enabled": true,
"__prefab": {
"__id__": 66
},
"_contentSize": {
"__type__": "cc.Size",
"width": 12.031997680664062,
"height": 40.32
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "47F88YLQJALI7rFkrrUoWp"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 64
},
"_enabled": true,
"__prefab": {
"__id__": 68
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"a": 255
},
"_string": "1",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 32,
"_fontSize": 32,
"_fontFamily": "Arial",
"_lineHeight": 32,
"_overflow": 0,
"_enableWrapText": true,
"_font": {
"__uuid__": "51c12289-a516-4991-8323-ac98cee8b520",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "07JgMs3gJL5b3zoPeCw7oh"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "25Y9J/nv1CoIsIHyUX3bT1",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 71
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1624,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4fdKablv9N3KPo6a0KJYqG"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 73
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "cd+4wPXj1HvLk30seu5z2Q"
},
{
"__type__": "3520dOfaC9PtqD/m/wFQFer",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 75
},
"prizeName": {
"__id__": 39
},
"closeBtn": {
"__id__": 28
},
"btn": {
"__id__": 14
},
"prize": {
"__id__": 6
},
"explanation": {
"__id__": 45
},
"num": {
"__id__": 18
},
"add": {
"__id__": 48
},
"sub": {
"__id__": 56
},
"numTxt": {
"__id__": 67
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d8kkHPSRhJgY/dkn3JOai4"
},
{
"__type__": "057b4KT4QZKeoxpS+8IVX1z",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 77
},
"skinNodeArr": [
{
"__id__": 78
},
{
"__id__": 79
},
{
"__id__": 80
},
{
"__id__": 81
},
{
"__id__": 82
}
],
"_genSkinNode": true,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f4hilUuIBBT5bP2gkOU7Gt"
},
{
"__type__": "SkinNode",
"node": {
"__id__": 28
},
"type": 0,
"color1": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
"a": 255
},
},
"color2": {
"color2": {
...
@@ -1383,6 +1969,66 @@
...
@@ -1383,6 +1969,66 @@
"node1": null,
"node1": null,
"node2": null
"node2": null
},
},
{
"__type__": "SkinNode",
"node": {
"__id__": 2
},
"type": 0,
"skin1": {
"__uuid__": "bfa0572c-c9f1-4c14-9bcf-122221f05735@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"skin2": null,
"node1": null,
"node2": null
},
{
"__type__": "SkinNode",
"node": {
"__id__": 3
},
"type": 0,
"skin1": {
"__uuid__": "cdd6083a-9c8e-42ee-bf6f-1cb644b72109@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"skin2": null,
"node1": null,
"node2": null
},
{
"__type__": "SkinNode",
"node": {
"__id__": 14
},
"type": 0,
"skin1": {
"__uuid__": "920d5605-e706-4595-b898-7e68fb4a54f0@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"skin2": null,
"node1": null,
"node2": null
},
{
"__type__": "SkinNode",
"node": {
"__id__": 15
},
"type": 1,
"color1": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"skin1": null,
"skin2": null,
"node1": null,
"node2": null
},
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
...
...
assets/Bundles/PropPop/png/减.png
0 → 100644
View file @
5cde1400
1.6 KB
assets/Bundles/PropPop/png/减.png.meta
0 → 100644
View file @
5cde1400
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "2f6698ad-1617-4e04-a3b8-c65e9f3957f0",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2f6698ad-1617-4e04-a3b8-c65e9f3957f0@6c48a",
"displayName": "减",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "2f6698ad-1617-4e04-a3b8-c65e9f3957f0",
"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": "2f6698ad-1617-4e04-a3b8-c65e9f3957f0@f9941",
"displayName": "减",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 48,
"height": 48,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-24,
-24,
0,
24,
-24,
0,
-24,
24,
0,
24,
24,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
48,
48,
48,
0,
0,
48,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-24,
-24,
0
],
"maxPos": [
24,
24,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2f6698ad-1617-4e04-a3b8-c65e9f3957f0@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "2f6698ad-1617-4e04-a3b8-c65e9f3957f0@6c48a"
}
}
assets/Bundles/PropPop/png/加.png
0 → 100644
View file @
5cde1400
1.69 KB
assets/Bundles/PropPop/png/加.png.meta
0 → 100644
View file @
5cde1400
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "0fd20aff-b339-4a94-bb30-ce1975a7c805",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "0fd20aff-b339-4a94-bb30-ce1975a7c805@6c48a",
"displayName": "加",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "0fd20aff-b339-4a94-bb30-ce1975a7c805",
"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": "0fd20aff-b339-4a94-bb30-ce1975a7c805@f9941",
"displayName": "加",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 48,
"height": 48,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-24,
-24,
0,
24,
-24,
0,
-24,
24,
0,
24,
24,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
48,
48,
48,
0,
0,
48,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-24,
-24,
0
],
"maxPos": [
24,
24,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "0fd20aff-b339-4a94-bb30-ce1975a7c805@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "0fd20aff-b339-4a94-bb30-ce1975a7c805@6c48a"
}
}
assets/Scripts/Panels/ProPop.ts
View file @
5cde1400
import
Panel
from
"../../Module/Panel"
;
import
Panel
from
"../../Module/Panel"
;
import
{
_decorator
,
Button
,
Node
,
Sprite
,
Label
}
from
"cc"
;
import
{
_decorator
,
Button
,
Node
,
Sprite
,
Label
,
math
}
from
"cc"
;
import
{
observer
}
from
"../store/decorators"
;
import
{
observer
}
from
"../store/decorators"
;
import
{
showPanel
,
showToast
}
from
"db://assets/Module/UIFast"
;
import
{
showPanel
,
showToast
}
from
"db://assets/Module/UIFast"
;
import
ExchangeSuccess
from
"db://assets/Scripts/Panels/ExchangeSuccess"
;
import
ExchangeSuccess
from
"db://assets/Scripts/Panels/ExchangeSuccess"
;
import
{
creditsCost
,
sendWebNetWithToken
,
WebNetName
}
from
"db://assets/Scripts/Utils/WebNet/WebNet"
;
import
{
creditsCost
,
sendWebNetWithToken
,
WebNetName
}
from
"db://assets/Scripts/Utils/WebNet/WebNet"
;
import
{
_asyncThrottle
}
from
"../Utils/Utils"
;
import
{
_asyncThrottle
}
from
"../Utils/Utils"
;
import
store
from
"../store/store"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -22,9 +23,26 @@ export default class ProPop extends Panel {
...
@@ -22,9 +23,26 @@ export default class ProPop extends Panel {
@
property
(
Label
)
explanation
:
Label
=
null
;
@
property
(
Label
)
explanation
:
Label
=
null
;
@
property
(
Label
)
num
:
Label
=
null
;
@
property
(
Label
)
num
:
Label
=
null
;
@
property
(
Node
)
add
:
Node
=
null
;
@
property
(
Node
)
sub
:
Node
=
null
;
@
property
(
Label
)
numTxt
:
Label
=
null
;
private
_buyNum
:
number
=
1
;
get
buyNum
()
{
return
this
.
_buyNum
;
}
set
buyNum
(
val
)
{
val
=
math
.
clamp
(
1
,
99
,
val
);
this
.
_buyNum
=
val
;
this
.
numTxt
.
string
=
`
${
val
}
`
;
}
onLoad
()
{
onLoad
()
{
this
.
closeBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickClose
);
this
.
closeBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickClose
);
this
.
btn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickExchange
);
this
.
btn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickExchange
);
this
.
add
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickAdd
);
this
.
sub
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickSub
);
}
}
start
()
{
start
()
{
...
@@ -49,14 +67,19 @@ export default class ProPop extends Panel {
...
@@ -49,14 +67,19 @@ export default class ProPop extends Panel {
this
.
prizeName
.
string
=
optionName
;
this
.
prizeName
.
string
=
optionName
;
}
}
clickAdd
=
()
=>
{
this
.
buyNum
++
;
};
clickSub
=
()
=>
{
this
.
buyNum
--
;
};
clickClose
=
()
=>
{
clickClose
=
()
=>
{
this
.
hidePanel
();
this
.
hidePanel
();
};
};
clickExchange
=
_asyncThrottle
(
async
()
=>
{
clickExchange
=
_asyncThrottle
(
async
()
=>
{
const
num
=
1
;
const
{
const
{
id
,
id
,
optionName
,
optionName
,
...
@@ -68,10 +91,14 @@ export default class ProPop extends Panel {
...
@@ -68,10 +91,14 @@ export default class ProPop extends Panel {
consumeCreditsNum
consumeCreditsNum
}
=
this
.
data
;
}
=
this
.
data
;
if
((
+
consumeCreditsNum
)
*
this
.
buyNum
>
store
.
exchangeInfo
.
remainCredits
){
return
showToast
(
"积分数量不足"
);
}
const
{
const
{
success
:
costSuc
,
success
:
costSuc
,
ticket
ticket
}
=
await
creditsCost
(
"exchange"
,
"exchangeSp"
,
`sp_deduct_desc`
,
(
+
consumeCreditsNum
)
*
n
um
);
}
=
await
creditsCost
(
"exchange"
,
"exchangeSp"
,
`sp_deduct_desc`
,
(
+
consumeCreditsNum
)
*
this
.
buyN
um
);
if
(
!
costSuc
)
{
if
(
!
costSuc
)
{
showToast
(
"网络异常,请稍后重试~"
);
showToast
(
"网络异常,请稍后重试~"
);
...
@@ -82,7 +109,7 @@ export default class ProPop extends Panel {
...
@@ -82,7 +109,7 @@ export default class ProPop extends Panel {
const
{
success
,
data
}
=
await
sendWebNetWithToken
(
WebNetName
.
propExchange
,
{
const
{
success
,
data
}
=
await
sendWebNetWithToken
(
WebNetName
.
propExchange
,
{
id
,
id
,
ticketNum
:
ticket
,
ticketNum
:
ticket
,
num
:
n
um
,
num
:
this
.
buyN
um
,
// ruId: item.ruleId,
// ruId: item.ruleId,
});
});
...
...
assets/Scripts/Scenes/MainGame/Global.ts
View file @
5cde1400
...
@@ -32,10 +32,10 @@ export class Global {
...
@@ -32,10 +32,10 @@ export class Global {
/** 磁吸道具持续时间 */
/** 磁吸道具持续时间 */
static
PROP_MAGNET_DUR_TIME
:
number
=
10
;
static
PROP_MAGNET_DUR_TIME
:
number
=
10
;
/** 磁吸吸取半径 */
/** 磁吸吸取半径 */
static
PROP_MAGNET_RADIUS
:
number
=
2
00
;
static
PROP_MAGNET_RADIUS
:
number
=
1
00
;
/** 加长道具增加能量值百分比 */
/** 加长道具增加能量值百分比 */
static
PROP_ADD_LENGTH
:
number
=
.
1
;
static
PROP_ADD_LENGTH
:
number
=
.
05
;
/** 双倍经验持续时间 */
/** 双倍经验持续时间 */
...
...
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
5cde1400
...
@@ -259,8 +259,8 @@ export class MainGame extends Scene {
...
@@ -259,8 +259,8 @@ export class MainGame extends Scene {
if (!currentStage || currentStage == 3) {
if (!currentStage || currentStage == 3) {
PropManager.ins.init(gameStore.startInfo?.barrierFlag ?
2 : 5
);
PropManager.ins.init(gameStore.startInfo?.barrierFlag ?
1 : 2
);
CardManager.ins.init(gameStore.startInfo?.barrierFlag ?
2 : 5
);
CardManager.ins.init(gameStore.startInfo?.barrierFlag ?
1 : 2
);
LuckyBagManager.ins.init();
LuckyBagManager.ins.init();
await Target.ins.showTarget3();
await Target.ins.showTarget3();
// await PreCd.ins.startCd();
// await PreCd.ins.startCd();
...
...
preview-template/mock/exchange/queryExchangeList.do.json
View file @
5cde1400
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
"optionName"
:
"optionName1"
,
"optionName"
:
"optionName1"
,
"optionImg"
:
"optionImg1"
,
"optionImg"
:
"optionImg1"
,
"prizeId"
:
"prizeId1"
,
"prizeId"
:
"prizeId1"
,
"spDetail"
:
"spDetail1"
,
"alreadyUserCount"
:
21
,
"alreadyUserCount"
:
21
,
"userLimitCount"
:
121
,
"userLimitCount"
:
121
,
"consumeCreditsNum"
:
123
"consumeCreditsNum"
:
123
...
...
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