Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tx_find_match
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
tx_find_match
Commits
ee678ce8
Commit
ee678ce8
authored
Mar 10, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
006a312e
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
584 additions
and
234 deletions
+584
-234
light.meta
assets/tx_find_match/anim/light.meta
+1
-1
light_ske.json
assets/tx_find_match/anim/light/light_ske.json
+1
-0
light_ske.json.meta
assets/tx_find_match/anim/light/light_ske.json.meta
+5
-0
light_tex.json
assets/tx_find_match/anim/light/light_tex.json
+1
-0
light_tex.json.meta
assets/tx_find_match/anim/light/light_tex.json.meta
+5
-0
light_tex.png
assets/tx_find_match/anim/light/light_tex.png
+0
-0
light_tex.png.meta
assets/tx_find_match/anim/light/light_tex.png.meta
+12
-12
icon_right_ske.json
assets/tx_find_match/anim/rightIcon/icon_right_ske.json
+0
-1
icon_right_ske.json.meta
assets/tx_find_match/anim/rightIcon/icon_right_ske.json.meta
+0
-5
icon_right_tex.json
assets/tx_find_match/anim/rightIcon/icon_right_tex.json
+0
-1
icon_right_tex.png
assets/tx_find_match/anim/rightIcon/icon_right_tex.png
+0
-0
wrongIcon.meta
assets/tx_find_match/anim/wrongIcon.meta
+0
-12
icon_wrong_ske.json
assets/tx_find_match/anim/wrongIcon/icon_wrong_ske.json
+0
-1
icon_wrong_tex.json
assets/tx_find_match/anim/wrongIcon/icon_wrong_tex.json
+0
-1
icon_wrong_tex.json.meta
assets/tx_find_match/anim/wrongIcon/icon_wrong_tex.json.meta
+0
-5
icon_wrong_tex.png
assets/tx_find_match/anim/wrongIcon/icon_wrong_tex.png
+0
-0
icon_wrong_tex.png.meta
assets/tx_find_match/anim/wrongIcon/icon_wrong_tex.png.meta
+0
-36
tx_find_match.fire
assets/tx_find_match/scene/tx_find_match.fire
+428
-140
tx_find_match.js
assets/tx_find_match/scene/tx_find_match.js
+131
-19
No files found.
assets/tx_find_match/anim/
rightIcon
.meta
→
assets/tx_find_match/anim/
light
.meta
View file @
ee678ce8
{
"ver": "1.1.2",
"uuid": "
463795c7-6f6e-4d27-8bcf-27b2876e4575
",
"uuid": "
d5bf0364-b19a-4b66-afa8-f564d13eb46c
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/tx_find_match/anim/light/light_ske.json
0 → 100644
View file @
ee678ce8
{
"frameRate"
:
24
,
"name"
:
"light"
,
"version"
:
"5.5"
,
"compatibleVersion"
:
"5.5"
,
"armature"
:[{
"type"
:
"Armature"
,
"frameRate"
:
24
,
"name"
:
"light"
,
"aabb"
:{
"x"
:
-730.22
,
"y"
:
-554.31
,
"width"
:
1479
,
"height"
:
805.5
},
"bone"
:[{
"name"
:
"root"
,
"transform"
:{
"x"
:
-6.7051
,
"y"
:
-84.9317
}},{
"name"
:
"light2"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
2.7633
,
"y"
:
-111.7
}},{
"name"
:
"light1"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
1.0725
,
"y"
:
-103.2
}},{
"name"
:
"star"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
229.2949
,
"y"
:
-81.1148
}},{
"name"
:
"star1"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
243.9637
,
"y"
:
-132.7511
,
"scX"
:
0.6
,
"scY"
:
0.6
}},{
"name"
:
"star11"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
171.9631
,
"y"
:
-140.2735
,
"scX"
:
1.2
,
"scY"
:
1.2
}},{
"name"
:
"star111"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-154.6585
,
"y"
:
-140.2735
,
"scX"
:
1.2
,
"scY"
:
1.2
}},{
"name"
:
"star2"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-112.6119
,
"y"
:
-81.1148
}},{
"name"
:
"star12"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-225.2377
,
"y"
:
-132.7511
,
"scX"
:
0.6
,
"scY"
:
0.6
}}],
"slot"
:[{
"blendMode"
:
"add"
,
"name"
:
"light1"
,
"parent"
:
"light1"
},{
"name"
:
"light2"
,
"parent"
:
"light2"
},{
"blendMode"
:
"add"
,
"name"
:
"star"
,
"parent"
:
"star"
},{
"name"
:
"star1"
,
"parent"
:
"star1"
},{
"name"
:
"star11"
,
"parent"
:
"star11"
},{
"name"
:
"star111"
,
"parent"
:
"star111"
},{
"name"
:
"star2"
,
"parent"
:
"star2"
},{
"blendMode"
:
"add"
,
"name"
:
"star12"
,
"parent"
:
"star12"
}],
"skin"
:[{
"slot"
:[{
"name"
:
"star2"
,
"display"
:[{
"name"
:
"star"
,
"transform"
:{
"x"
:
1.89
,
"y"
:
5.19
}}]},{
"name"
:
"star12"
,
"display"
:[{
"name"
:
"star"
,
"transform"
:{
"x"
:
1.89
,
"y"
:
5.19
}}]},{
"name"
:
"light1"
,
"display"
:[{
"name"
:
"light1"
,
"transform"
:{
"x"
:
14.91
,
"y"
:
42.83
}}]},{
"name"
:
"light2"
,
"display"
:[{
"name"
:
"light2"
,
"transform"
:{
"x"
:
11.16
,
"y"
:
38.83
}}]},{
"name"
:
"star"
,
"display"
:[{
"name"
:
"star"
,
"transform"
:{
"x"
:
34.28
,
"y"
:
5.19
}}]},{
"name"
:
"star1"
,
"display"
:[{
"name"
:
"star"
,
"transform"
:{
"x"
:
1.89
,
"y"
:
5.19
}}]},{
"name"
:
"star11"
,
"display"
:[{
"name"
:
"star"
,
"transform"
:{
"x"
:
1.89
,
"y"
:
5.19
}}]},{
"name"
:
"star111"
,
"display"
:[{
"name"
:
"star"
,
"transform"
:{
"x"
:
1.89
,
"y"
:
5.19
}}]}]}],
"animation"
:[{
"duration"
:
24
,
"playTimes"
:
0
,
"name"
:
"newAnimation"
,
"frame"
:[{
"duration"
:
8
},{
"duration"
:
0
,
"events"
:[{
"strings"
:[
"divide"
],
"name"
:
"divide"
,
"bone"
:
"root"
}]}],
"bone"
:[{
"name"
:
"light2"
,
"translateFrame"
:[{
"duration"
:
8
,
"curve"
:[
0.5
,
0
,
0.5
,
1
],
"x"
:
2036.33
},{
"duration"
:
16
}]},{
"name"
:
"light1"
,
"translateFrame"
:[{
"duration"
:
8
,
"curve"
:[
0.5
,
0
,
0.5
,
1
],
"x"
:
-2040.72
},{
"duration"
:
16
}]}],
"slot"
:[{
"name"
:
"light1"
,
"colorFrame"
:[{
"duration"
:
7
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
37
}},{
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
66
}},{
"duration"
:
7
,
"tweenEasing"
:
0
},{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
0
,
"value"
:{
"aM"
:
0
}}]},{
"name"
:
"light2"
,
"colorFrame"
:[{
"duration"
:
7
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
35
}},{
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
65
}},{
"duration"
:
7
,
"tweenEasing"
:
0
},{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
0
,
"value"
:{
"aM"
:
0
}}]},{
"name"
:
"star"
,
"colorFrame"
:[{
"duration"
:
7
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
7
,
"value"
:{
"aM"
:
0
}}]},{
"name"
:
"star1"
,
"colorFrame"
:[{
"duration"
:
7
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
8
,
"tweenEasing"
:
0
},{
"duration"
:
8
,
"value"
:{
"aM"
:
0
}}]},{
"name"
:
"star11"
,
"colorFrame"
:[{
"duration"
:
7
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
5
,
"tweenEasing"
:
0
},{
"duration"
:
5
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
6
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
69
}},{
"duration"
:
0
,
"value"
:{
"aM"
:
0
}}]},{
"name"
:
"star111"
,
"colorFrame"
:[{
"duration"
:
7
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
5
,
"tweenEasing"
:
0
},{
"duration"
:
6
,
"tweenEasing"
:
0
},{
"duration"
:
5
,
"value"
:{
"aM"
:
0
}}]},{
"name"
:
"star2"
,
"colorFrame"
:[{
"duration"
:
7
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
6
,
"tweenEasing"
:
0
},{
"duration"
:
9
,
"tweenEasing"
:
0
},{
"duration"
:
0
,
"value"
:{
"aM"
:
0
}}]},{
"name"
:
"star12"
,
"colorFrame"
:[{
"duration"
:
7
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
4
,
"tweenEasing"
:
0
},{
"duration"
:
6
,
"tweenEasing"
:
0
,
"value"
:{
"aM"
:
0
}},{
"duration"
:
5
,
"tweenEasing"
:
0
},{
"duration"
:
0
,
"value"
:{
"aM"
:
0
}}]}]}],
"defaultActions"
:[{
"gotoAndPlay"
:
"newAnimation"
}],
"canvas"
:{
"width"
:
1920
,
"height"
:
1080
}}]}
\ No newline at end of file
assets/tx_find_match/anim/
wrongIcon/icon_wrong
_ske.json.meta
→
assets/tx_find_match/anim/
light/light
_ske.json.meta
View file @
ee678ce8
{
"ver": "1.0.1",
"uuid": "
e3166c62-c5bb-4b20-aba5-c58b54b7c4bc
",
"uuid": "
2a0815df-0139-4db9-bbac-532307bdb1b5
",
"subMetas": {}
}
\ No newline at end of file
assets/tx_find_match/anim/light/light_tex.json
0 → 100644
View file @
ee678ce8
{
"name"
:
"light"
,
"height"
:
2048
,
"SubTexture"
:[{
"name"
:
"light1"
,
"x"
:
1
,
"height"
:
793
,
"y"
:
1
,
"width"
:
1479
},{
"name"
:
"light2"
,
"x"
:
1
,
"height"
:
793
,
"y"
:
796
,
"width"
:
1456
},{
"name"
:
"star"
,
"x"
:
1459
,
"height"
:
58
,
"y"
:
796
,
"width"
:
58
}],
"imagePath"
:
"light_tex.png"
,
"width"
:
2048
}
\ No newline at end of file
assets/tx_find_match/anim/
rightIcon/icon_r
ight_tex.json.meta
→
assets/tx_find_match/anim/
light/l
ight_tex.json.meta
View file @
ee678ce8
{
"ver": "1.0.1",
"uuid": "e
277ebcc-5165-4965-a81f-b9a19d78c759
",
"uuid": "e
d296292-282e-48cf-bdfa-e1c99e0d03ee
",
"subMetas": {}
}
\ No newline at end of file
assets/tx_find_match/anim/light/light_tex.png
0 → 100644
View file @
ee678ce8
612 KB
assets/tx_find_match/anim/
rightIcon/icon_r
ight_tex.png.meta
→
assets/tx_find_match/anim/
light/l
ight_tex.png.meta
View file @
ee678ce8
{
"ver": "2.3.5",
"uuid": "
8db7ec89-fee4-4bde-aa32-c8f042b9de8a
",
"uuid": "
b77db0cd-56d3-4490-9adc-3c4f64d55a4b
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width":
64
,
"height":
64
,
"width":
2048
,
"height":
2048
,
"platformSettings": {},
"subMetas": {
"
icon_r
ight_tex": {
"
l
ight_tex": {
"ver": "1.0.4",
"uuid": "
7486305c-e40b-4260-91ca-c42c4bae18a7
",
"rawTextureUuid": "
8db7ec89-fee4-4bde-aa32-c8f042b9de8a
",
"uuid": "
2b24af6a-d427-40be-88f6-2b9e31f77640
",
"rawTextureUuid": "
b77db0cd-56d3-4490-9adc-3c4f64d55a4b
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -
7.
5,
"offsetY":
11
,
"offsetX": -
26
5,
"offsetY":
229
,
"trimX": 1,
"trimY": 1,
"width":
47
,
"height":
40
,
"rawWidth":
64
,
"rawHeight":
64
,
"width":
1516
,
"height":
1588
,
"rawWidth":
2048
,
"rawHeight":
2048
,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
assets/tx_find_match/anim/rightIcon/icon_right_ske.json
deleted
100644 → 0
View file @
006a312e
{
"frameRate"
:
24
,
"name"
:
"icon_right"
,
"version"
:
"5.5"
,
"compatibleVersion"
:
"5.5"
,
"armature"
:[{
"type"
:
"Armature"
,
"frameRate"
:
24
,
"name"
:
"armatureName"
,
"aabb"
:{
"x"
:
-23
,
"y"
:
-51
,
"width"
:
47
,
"height"
:
40
},
"bone"
:[{
"name"
:
"root"
},{
"length"
:
29
,
"name"
:
"心"
,
"parent"
:
"root"
,
"transform"
:{
"y"
:
-31
}}],
"slot"
:[{
"name"
:
"心"
,
"parent"
:
"心"
}],
"skin"
:[{
"slot"
:[{
"name"
:
"心"
,
"display"
:[{
"name"
:
"心"
,
"transform"
:{
"x"
:
0.5
}}]}]}],
"animation"
:[{
"duration"
:
30
,
"playTimes"
:
0
,
"name"
:
"newAnimation"
,
"bone"
:[{
"name"
:
"心"
,
"scaleFrame"
:[{
"duration"
:
30
,
"tweenEasing"
:
0
,
"x"
:
0.01
,
"y"
:
0.01
},{
"duration"
:
0
}]}],
"slot"
:[{
"name"
:
"心"
,
"colorFrame"
:[{
"duration"
:
20
,
"tweenEasing"
:
0
},{
"duration"
:
10
,
"tweenEasing"
:
0
},{
"duration"
:
0
,
"value"
:{
"aM"
:
0
}}]}]}],
"defaultActions"
:[{
"gotoAndPlay"
:
"newAnimation"
}]}]}
\ No newline at end of file
assets/tx_find_match/anim/rightIcon/icon_right_ske.json.meta
deleted
100644 → 0
View file @
006a312e
{
"ver": "1.0.1",
"uuid": "b1e60dd4-e8be-4e07-90be-75457ef88ccd",
"subMetas": {}
}
\ No newline at end of file
assets/tx_find_match/anim/rightIcon/icon_right_tex.json
deleted
100644 → 0
View file @
006a312e
{
"name"
:
"icon_right"
,
"height"
:
64
,
"SubTexture"
:[{
"name"
:
"心"
,
"x"
:
1
,
"height"
:
40
,
"y"
:
1
,
"width"
:
47
}],
"imagePath"
:
"icon_right_tex.png"
,
"width"
:
64
}
\ No newline at end of file
assets/tx_find_match/anim/rightIcon/icon_right_tex.png
deleted
100644 → 0
View file @
006a312e
1.05 KB
assets/tx_find_match/anim/wrongIcon.meta
deleted
100644 → 0
View file @
006a312e
{
"ver": "1.1.2",
"uuid": "1e605600-36b0-430a-b7f9-6d6d1328bb4a",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/tx_find_match/anim/wrongIcon/icon_wrong_ske.json
deleted
100644 → 0
View file @
006a312e
{
"frameRate"
:
24
,
"name"
:
"icon_wrong"
,
"version"
:
"5.5"
,
"compatibleVersion"
:
"5.5"
,
"armature"
:[{
"type"
:
"Armature"
,
"frameRate"
:
24
,
"name"
:
"armatureName"
,
"aabb"
:{
"x"
:
-29
,
"y"
:
-56
,
"width"
:
59
,
"height"
:
52
},
"bone"
:[{
"name"
:
"root"
},{
"length"
:
21
,
"name"
:
"乌云"
,
"parent"
:
"root"
,
"transform"
:{
"y"
:
-38.5
,
"skX"
:
2.6507
,
"skY"
:
2.6507
}},{
"length"
:
7
,
"name"
:
"雨滴2"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-7.95
,
"y"
:
-20.9
,
"skX"
:
-90
,
"skY"
:
-90
}},{
"length"
:
7
,
"name"
:
"雨滴4"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
8.3
,
"y"
:
-17.25
,
"skX"
:
-90
,
"skY"
:
-90
}},{
"length"
:
8
,
"name"
:
"雨滴3"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
22.25
,
"y"
:
-9.65
,
"skX"
:
-87.5853
,
"skY"
:
-87.5853
}},{
"length"
:
7
,
"name"
:
"雨滴1"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-21.2
,
"y"
:
-8.95
,
"skX"
:
-90
,
"skY"
:
-90
}}],
"slot"
:[{
"name"
:
"乌云"
,
"parent"
:
"乌云"
},{
"name"
:
"雨滴1"
,
"parent"
:
"雨滴1"
},{
"name"
:
"雨滴2"
,
"parent"
:
"雨滴2"
},{
"name"
:
"雨滴3"
,
"parent"
:
"雨滴3"
},{
"name"
:
"雨滴4"
,
"parent"
:
"雨滴4"
}],
"skin"
:[{
"slot"
:[{
"name"
:
"雨滴4"
,
"display"
:[{
"name"
:
"雨滴4"
,
"transform"
:{
"x"
:
2.25
,
"y"
:
0.2
,
"skX"
:
90
,
"skY"
:
90
}}]},{
"name"
:
"雨滴3"
,
"display"
:[{
"name"
:
"雨滴3"
,
"transform"
:{
"x"
:
1.86
,
"y"
:
0.17
,
"skX"
:
87.59
,
"skY"
:
87.59
}}]},{
"name"
:
"乌云"
,
"display"
:[{
"name"
:
"乌云"
,
"transform"
:{
"x"
:
0.36
,
"y"
:
-3.02
,
"skX"
:
-2.65
,
"skY"
:
-2.65
}}]},{
"name"
:
"雨滴1"
,
"display"
:[{
"name"
:
"雨滴1"
,
"transform"
:{
"x"
:
1.55
,
"y"
:
0.7
,
"skX"
:
90
,
"skY"
:
90
}}]},{
"name"
:
"雨滴2"
,
"display"
:[{
"name"
:
"雨滴2"
,
"transform"
:{
"x"
:
2.6
,
"y"
:
-0.55
,
"skX"
:
90
,
"skY"
:
90
}}]}]}],
"animation"
:[{
"duration"
:
24
,
"playTimes"
:
0
,
"name"
:
"newAnimation"
,
"bone"
:[{
"name"
:
"雨滴2"
,
"translateFrame"
:[{
"duration"
:
8
,
"tweenEasing"
:
0
,
"y"
:
-13.29
},{
"tweenEasing"
:
0
,
"y"
:
13.14
},{
"tweenEasing"
:
0
,
"y"
:
-13.29
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"y"
:
-13.29
},{
"tweenEasing"
:
0
,
"y"
:
13.14
},{
"duration"
:
5
,
"y"
:
-13.29
}]},{
"name"
:
"雨滴4"
,
"translateFrame"
:[{
"duration"
:
3
,
"tweenEasing"
:
0
,
"y"
:
-17.52
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"y"
:
-17.52
},{
"tweenEasing"
:
0
,
"y"
:
7.22
},{
"tweenEasing"
:
0
,
"y"
:
10.76
},{
"tweenEasing"
:
0
,
"y"
:
-17.52
},{
"duration"
:
8
,
"tweenEasing"
:
0
,
"y"
:
-17.52
},{
"tweenEasing"
:
0
,
"y"
:
10.76
},{
"duration"
:
2
,
"y"
:
-17.52
}]},{
"name"
:
"雨滴3"
,
"translateFrame"
:[{
"duration"
:
2
,
"tweenEasing"
:
0
,
"x"
:
-0.92
,
"y"
:
-4.86
},{
"tweenEasing"
:
0
,
"x"
:
-0.92
,
"y"
:
1.21
},{
"duration"
:
5
,
"tweenEasing"
:
0
,
"x"
:
-0.92
,
"y"
:
-23.04
},{
"duration"
:
2
,
"tweenEasing"
:
0
,
"x"
:
-0.92
,
"y"
:
-23.04
},{
"duration"
:
6
,
"tweenEasing"
:
0
,
"x"
:
-0.92
,
"y"
:
-16.98
},{
"tweenEasing"
:
0
,
"x"
:
-0.92
,
"y"
:
1.21
},{
"tweenEasing"
:
0
,
"x"
:
-0.92
,
"y"
:
-23.04
},{
"duration"
:
6
,
"tweenEasing"
:
0
,
"x"
:
-0.92
,
"y"
:
-23.04
},{
"duration"
:
0
,
"x"
:
-0.92
,
"y"
:
-4.86
}]},{
"name"
:
"雨滴1"
,
"translateFrame"
:[{
"tweenEasing"
:
0
,
"y"
:
-0.44
},{
"tweenEasing"
:
0
,
"y"
:
3.03
},{
"duration"
:
5
,
"tweenEasing"
:
0
,
"y"
:
-23.48
},{
"duration"
:
3
,
"tweenEasing"
:
0
,
"y"
:
-23.48
},{
"duration"
:
5
,
"tweenEasing"
:
0
,
"y"
:
-14.35
},{
"tweenEasing"
:
0
,
"y"
:
3.03
},{
"tweenEasing"
:
0
,
"y"
:
-23.48
},{
"duration"
:
7
,
"tweenEasing"
:
0
,
"y"
:
-23.48
},{
"duration"
:
0
,
"y"
:
-0.44
}]}]}],
"defaultActions"
:[{
"gotoAndPlay"
:
"newAnimation"
}]}]}
\ No newline at end of file
assets/tx_find_match/anim/wrongIcon/icon_wrong_tex.json
deleted
100644 → 0
View file @
006a312e
{
"name"
:
"icon_wrong"
,
"imagePath"
:
"icon_wrong_tex.png"
,
"SubTexture"
:[{
"name"
:
"乌云"
,
"x"
:
1
,
"height"
:
29
,
"y"
:
1
,
"width"
:
59
},{
"name"
:
"雨滴1"
,
"x"
:
10
,
"height"
:
13
,
"y"
:
47
,
"width"
:
7
},{
"name"
:
"雨滴2"
,
"x"
:
10
,
"height"
:
13
,
"y"
:
32
,
"width"
:
7
},{
"name"
:
"雨滴3"
,
"x"
:
1
,
"height"
:
13
,
"y"
:
47
,
"width"
:
7
},{
"name"
:
"雨滴4"
,
"x"
:
1
,
"height"
:
13
,
"y"
:
32
,
"width"
:
7
}],
"height"
:
64
,
"width"
:
64
}
\ No newline at end of file
assets/tx_find_match/anim/wrongIcon/icon_wrong_tex.json.meta
deleted
100644 → 0
View file @
006a312e
{
"ver": "1.0.1",
"uuid": "89d6efdf-ad83-4177-872a-8a1ae5be47d1",
"subMetas": {}
}
\ No newline at end of file
assets/tx_find_match/anim/wrongIcon/icon_wrong_tex.png
deleted
100644 → 0
View file @
006a312e
1.22 KB
assets/tx_find_match/anim/wrongIcon/icon_wrong_tex.png.meta
deleted
100644 → 0
View file @
006a312e
{
"ver": "2.3.5",
"uuid": "5990fb4d-9fee-4010-8ba6-f63d79a1c487",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_wrong_tex": {
"ver": "1.0.4",
"uuid": "5a5ae385-31fd-40ba-a6d7-6b39c3f9cc8b",
"rawTextureUuid": "5990fb4d-9fee-4010-8ba6-f63d79a1c487",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1.5,
"offsetY": 1.5,
"trimX": 1,
"trimY": 1,
"width": 59,
"height": 59,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/tx_find_match/scene/tx_find_match.fire
View file @
ee678ce8
This diff is collapsed.
Click to expand it.
assets/tx_find_match/scene/tx_find_match.js
View file @
ee678ce8
...
...
@@ -6,7 +6,7 @@
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
// import { getSprNode } from "./util";
import
{
getSprNode
,
playAudioByUrl
,
showBtnAnima
,
getScaleRateBy2Node
,
localPosTolocalPos
,
randomSortByArr
,
loadDragonBones
,
playAudio
,
showTrebleFirework
,
getSprNodeByUrl
,
setSprNodeMaxLen
,
delayCall
,
asyncDelay
,
RandomInt
,
exchangeNodePos
,
onHomeworkFinish
,
callNetworkApi
,
loopLog
}
from
"
../script/tx_find_match_util
"
;
import
{
getSprNode
,
playAudioByUrl
,
showBtnAnima
,
getScaleRateBy2Node
,
localPosTolocalPos
,
randomSortByArr
,
getAngleByPos
,
playAudio
,
showTrebleFirework
,
getSprNodeByUrl
,
setSprNodeMaxLen
,
delayCall
,
asyncDelay
,
RandomInt
,
exchangeNodePos
,
onHomeworkFinish
,
callNetworkApi
,
loopLog
,
getPosByAngle
}
from
"
../script/tx_find_match_util
"
;
cc
.
Class
({
extends
:
cc
.
Component
,
...
...
@@ -981,6 +981,8 @@ cc.Class({
initData
()
{
console
.
log
(
'
in initData
'
);
this
.
starPoolArr
=
[];
this
.
CHECK_TYPE_LINE
=
'
LINE
'
;
this
.
CHECK_TYPE_WRITE
=
'
WRITE
'
;
...
...
@@ -1286,9 +1288,7 @@ cc.Class({
playAudio
(
this
.
btnClip
,
()
=>
{
})
},
...
...
@@ -1307,6 +1307,11 @@ cc.Class({
cc
.
tween
(
quesBg
)
.
by
(
time
/
8
,
{
y
:
-
30
},
{
easing
:
"
sineInOut
"
})
.
call
(()
=>
{
playAudio
(
this
.
btnClip
,
()
=>
{
})
})
.
to
(
time
/
3
,
{
y
:
targetY
},
{
easing
:
"
sineInOut
"
})
// .to(time / 8, {y: targetY + 10}, {easing:"sineInOut"})
...
...
@@ -1363,6 +1368,93 @@ cc.Class({
},
showBgStar
()
{
this
.
particleLayer
=
new
cc
.
Node
();
this
.
canvas
.
addChild
(
this
.
particleLayer
);
this
.
playOneStar
();
},
getStarParticle
()
{
let
star
if
(
this
.
starPoolArr
.
length
==
0
)
{
star
=
getSprNode
(
"
bg_star
"
);
this
.
particleLayer
.
addChild
(
star
);
}
else
{
star
=
this
.
starPoolArr
.
pop
();
}
return
star
;
},
playOneStar
()
{
const
star
=
this
.
getStarParticle
();
const
pos
=
this
.
getParticlePos
();
const
scale
=
this
.
getParticleScale
();
const
rSpeed
=
this
.
getParticleRSpeed
();
const
angle
=
this
.
getPatticleAngle
();
star
.
scale
=
scale
;
star
.
angle
=
angle
;
const
len
=
Math
.
max
(
star
.
width
,
star
.
height
);
star
.
x
=
pos
.
x
-
len
/
2
*
star
.
scale
;
star
.
y
=
pos
.
y
;
const
edgeLen
=
Math
.
max
(
this
.
canvas
.
width
,
this
.
canvas
.
height
);
const
targetAngle
=
getAngleByPos
(
0
,
0
,
this
.
canvas
.
width
,
-
this
.
canvas
.
height
);
const
targetPos
=
getPosByAngle
(
targetAngle
,
edgeLen
*
2
);
star
.
opacity
=
255
;
const
time
=
60
;
cc
.
tween
(
star
)
.
by
(
time
,
{
x
:
targetPos
.
x
,
y
:
targetPos
.
y
,
rotation
:
rSpeed
*
edgeLen
})
.
call
(()
=>
{
this
.
starPoolArr
.
push
(
star
);
star
.
opacity
=
0
;
})
.
start
();
delayCall
(
5
,
()
=>
{
this
.
playOneStar
();
})
},
getPatticleAngle
()
{
return
Math
.
random
()
*
360
;
},
getParticleRSpeed
()
{
return
0.1
+
Math
.
random
()
*
0.3
;
},
getParticleScale
()
{
return
0.3
+
Math
.
random
()
*
0.7
;
},
getParticlePos
()
{
let
x
=
-
this
.
canvas
.
width
/
2
;
let
y
;
if
(
this
.
lastPY
!=
null
)
{
if
(
this
.
lastPY
<
-
this
.
canvas
.
height
/
2
)
{
y
=
this
.
canvas
.
height
/
2
-
Math
.
random
()
*
this
.
canvas
.
height
;
}
else
{
y
=
-
this
.
canvas
.
height
/
2
-
Math
.
random
()
*
this
.
canvas
.
height
;
}
}
else
{
y
=
this
.
canvas
.
height
/
2
-
Math
.
random
()
*
this
.
canvas
.
height
*
2
;
}
this
.
lastPY
=
y
;
return
{
x
,
y
};
},
initBg
()
{
...
...
@@ -1378,11 +1470,13 @@ cc.Class({
const
bg
=
cc
.
find
(
"
Canvas/bg
"
);
bg
.
scale
=
this
.
_mapScaleMax
;
this
.
showBgStar
();
const
quesBg
=
cc
.
find
(
"
Canvas/ques_bg
"
);
quesBg
.
y
=
this
.
canvas
.
height
/
2
;
quesBg
.
baseY
=
quesBg
.
y
;
this
.
quesBg
=
quesBg
;
quesBg
.
zIndex
=
5
;
if
(
this
.
isVertical
)
{
quesBg
.
scale
*=
1.5
;
...
...
@@ -1396,6 +1490,7 @@ cc.Class({
labelNode
.
color
=
cc
.
Color
.
fromHEX
(
new
cc
.
Color
(),
'
#2e4190
'
)
labelNode
.
y
=
-
quesBg
.
height
*
quesBg
.
anchorY
+
250
;
this
.
quesLabel
=
labelNode
.
getComponent
(
cc
.
Label
);
labelNode
.
zIndex
=
5
;
quesBg
.
addChild
(
labelNode
);
...
...
@@ -1706,18 +1801,28 @@ cc.Class({
})
},
initRightIcon
()
{
const
rightIcon
=
getSprNode
(
"
right
"
);
this
.
canvas
.
addChild
(
rightIcon
,
5
);
initRightAnim
()
{
// const rightIcon = getSprNode("right");
// this.canvas.addChild(rightIcon, 5);
// const pos = exchangeNodePos(this.canvas, this.quesLabel.node);
// rightIcon.x = pos.x;
// rightIcon.y = pos.y - 20;
// this.rightIcon = rightIcon;
const
rightAnimNode
=
cc
.
instantiate
(
cc
.
find
(
"
Canvas/res/anim/light
"
)
);
const
pos
=
exchangeNodePos
(
this
.
canvas
,
this
.
quesLabel
.
node
);
rightIcon
.
x
=
pos
.
x
;
rightIcon
.
y
=
pos
.
y
-
20
;
this
.
rightIcon
=
rightIcon
;
const
rightAnim
=
rightAnimNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
rightAnimNode
.
x
=
pos
.
x
;
rightAnimNode
.
y
=
pos
.
y
-
220
;
this
.
canvas
.
addChild
(
rightAnimNode
,
5
);
this
.
rightAnim
=
rightAnim
;
},
showRight
(
optionItem
)
{
console
.
log
(
'
show right
'
);
if
(
!
this
.
right
Icon
)
{
this
.
initRight
Icon
();
if
(
!
this
.
right
Anim
)
{
this
.
initRight
Anim
();
}
// this.disappearAnim(optionItem)
...
...
@@ -1729,13 +1834,15 @@ cc.Class({
optionItem
.
active
=
false
;
})
this
.
rightIcon
.
active
=
true
;
// this.rightIcon.active = true;
this
.
rightAnim
.
playAnimation
(
'
newAnimation
'
,
1
);
this
.
appearAnim
(
this
.
rightIcon
,
0.3
);
delayCall
(
0.7
,
()
=>
{
this
.
disappearAnim
(
this
.
rightIcon
,
0.3
);
})
// this.appearAnim(this.rightIcon, 0.3);
// delayCall(0.7, () => {
// this.disappearAnim(this.rightIcon, 0.3);
// })
this
.
addScore
()
...
...
@@ -1763,9 +1870,13 @@ cc.Class({
this
.
scoreNumSpr
.
active
=
true
;
this
.
scoreNumSpr
.
opacity
=
0
;
// this.scoreNumSpr.opacity = 255;
this
.
scoreNumSpr
.
x
=
this
.
rightAnim
.
node
.
x
;
this
.
scoreNumSpr
.
y
=
this
.
rightAnim
.
node
.
y
+
195
;
// return;
this
.
scoreNumSpr
.
x
=
this
.
rightIcon
.
x
;
this
.
scoreNumSpr
.
y
=
this
.
rightIcon
.
y
+
25
;
cc
.
tween
(
this
.
scoreNumSpr
)
.
to
(
0.3
,
{
opacity
:
255
},
{
easing
:
"
cubicIn
"
})
...
...
@@ -1829,6 +1940,7 @@ cc.Class({
this
.
hideCurQues
(()
=>
{
this
.
showCurQues
();
});
},
...
...
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