Compare commits
No commits in common. "208e42315416b76c9ee4951c63b83bb9b9495e69" and "b7f13e4011fb18d07c56543beec57a6321ae899f" have entirely different histories.
208e423154
...
b7f13e4011
|
@ -1,917 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"__type__": "cc.AnimationClip",
|
|
||||||
"_name": "startScreen",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"embeddedPlayerGroups": []
|
|
||||||
},
|
|
||||||
"_native": "",
|
|
||||||
"sample": 60,
|
|
||||||
"speed": 1,
|
|
||||||
"wrapMode": 0,
|
|
||||||
"enableTrsBlending": false,
|
|
||||||
"_duration": 0.6666666666666666,
|
|
||||||
"_hash": 500763545,
|
|
||||||
"_tracks": [
|
|
||||||
{
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 23
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_exoticAnimation": null,
|
|
||||||
"_events": [],
|
|
||||||
"_embeddedPlayers": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.VectorTrack",
|
|
||||||
"_binding": {
|
|
||||||
"__type__": "cc.animation.TrackBinding",
|
|
||||||
"path": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"proxy": null
|
|
||||||
},
|
|
||||||
"_channels": [
|
|
||||||
{
|
|
||||||
"__id__": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_nComponents": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.TrackPath",
|
|
||||||
"_paths": [
|
|
||||||
{
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"position"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.HierarchyPath",
|
|
||||||
"path": "Bg/Bear"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.08333333333333333,
|
|
||||||
0.16666666666666666,
|
|
||||||
0.25,
|
|
||||||
0.3333333333333333,
|
|
||||||
0.4166666666666667,
|
|
||||||
0.5,
|
|
||||||
0.5833333333333334,
|
|
||||||
0.6666666666666666
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1500,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 930,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 560,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 467.5,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 375,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 282.5,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 251.6666717529297,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 220.8333282470703,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 190,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 7
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.08333333333333333,
|
|
||||||
0.16666666666666666,
|
|
||||||
0.25,
|
|
||||||
0.3333333333333333,
|
|
||||||
0.4166666666666667,
|
|
||||||
0.5,
|
|
||||||
0.5833333333333334,
|
|
||||||
0.6666666666666666
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 155,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 190,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 155,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 190,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 155,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 190,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 190,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 170,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 155,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 9
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.08333333333333333,
|
|
||||||
0.16666666666666666,
|
|
||||||
0.25,
|
|
||||||
0.3333333333333333,
|
|
||||||
0.4166666666666667,
|
|
||||||
0.5,
|
|
||||||
0.5833333333333334,
|
|
||||||
0.6666666666666666
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 11
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.VectorTrack",
|
|
||||||
"_binding": {
|
|
||||||
"__type__": "cc.animation.TrackBinding",
|
|
||||||
"path": {
|
|
||||||
"__id__": 13
|
|
||||||
},
|
|
||||||
"proxy": null
|
|
||||||
},
|
|
||||||
"_channels": [
|
|
||||||
{
|
|
||||||
"__id__": 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 17
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 19
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 21
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_nComponents": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.TrackPath",
|
|
||||||
"_paths": [
|
|
||||||
{
|
|
||||||
"__id__": 14
|
|
||||||
},
|
|
||||||
"position"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.HierarchyPath",
|
|
||||||
"path": "Bg/Rabit"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 16
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.6666666666666666
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 2,
|
|
||||||
"value": 400,
|
|
||||||
"rightTangent": -1020,
|
|
||||||
"rightTangentWeight": 204.00009155273438,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 1,
|
|
||||||
"value": -280,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": -1020,
|
|
||||||
"leftTangentWeight": 204.00009155273438,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 18
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.16666666666666666,
|
|
||||||
0.3333333333333333,
|
|
||||||
0.5,
|
|
||||||
0.6666666666666666
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 2,
|
|
||||||
"value": -165,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 0.07999999821186066,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 3,
|
|
||||||
"value": -350,
|
|
||||||
"rightTangent": 1110,
|
|
||||||
"rightTangentWeight": 55.500022888183594,
|
|
||||||
"leftTangent": -1192.22216796875,
|
|
||||||
"leftTangentWeight": 53.650020599365234,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 3,
|
|
||||||
"value": -165,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 0.07999999821186066,
|
|
||||||
"leftTangent": 1110,
|
|
||||||
"leftTangentWeight": 55.500022888183594,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 3,
|
|
||||||
"value": -350,
|
|
||||||
"rightTangent": 1110,
|
|
||||||
"rightTangentWeight": 55.500022888183594,
|
|
||||||
"leftTangent": -1192.22216796875,
|
|
||||||
"leftTangentWeight": 53.650020599365234,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 1,
|
|
||||||
"value": -165,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 1110,
|
|
||||||
"leftTangentWeight": 55.500022888183594,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 20
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.6666666666666666
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 22
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.VectorTrack",
|
|
||||||
"_binding": {
|
|
||||||
"__type__": "cc.animation.TrackBinding",
|
|
||||||
"path": {
|
|
||||||
"__id__": 24
|
|
||||||
},
|
|
||||||
"proxy": null
|
|
||||||
},
|
|
||||||
"_channels": [
|
|
||||||
{
|
|
||||||
"__id__": 26
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 28
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 30
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 32
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_nComponents": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.TrackPath",
|
|
||||||
"_paths": [
|
|
||||||
{
|
|
||||||
"__id__": 25
|
|
||||||
},
|
|
||||||
"position"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.HierarchyPath",
|
|
||||||
"path": "Bg/StartButton"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 27
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.23333333333333334,
|
|
||||||
0.6666666666666666
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 29
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.23333333333333334,
|
|
||||||
0.43333333333333335,
|
|
||||||
0.6666666666666666
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1500,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 2,
|
|
||||||
"value": 1500,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 0.07833333313465118,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": -975,
|
|
||||||
"rightTangent": 9589.560546875,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 9589.560546875,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 2,
|
|
||||||
"tangentWeightMode": 1,
|
|
||||||
"value": -800,
|
|
||||||
"rightTangent": -4449.05712890625,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": -4449.05712890625,
|
|
||||||
"leftTangentWeight": 121.2261962890625,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 31
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.23333333333333334,
|
|
||||||
0.6666666666666666
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 33
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "2.0.3",
|
|
||||||
"importer": "animation-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "e2dd589b-be99-401b-abc4-862267d45f20",
|
|
||||||
"files": [
|
|
||||||
".cconb"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"name": "startScreen"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,841 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"__type__": "cc.AnimationClip",
|
|
||||||
"_name": "startScreen2",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"embeddedPlayerGroups": []
|
|
||||||
},
|
|
||||||
"_native": "",
|
|
||||||
"sample": 60,
|
|
||||||
"speed": 1,
|
|
||||||
"wrapMode": 22,
|
|
||||||
"enableTrsBlending": false,
|
|
||||||
"_duration": 0.5,
|
|
||||||
"_hash": 500763545,
|
|
||||||
"_tracks": [
|
|
||||||
{
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 23
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 34
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 45
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_exoticAnimation": null,
|
|
||||||
"_events": [],
|
|
||||||
"_embeddedPlayers": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.VectorTrack",
|
|
||||||
"_binding": {
|
|
||||||
"__type__": "cc.animation.TrackBinding",
|
|
||||||
"path": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"proxy": null
|
|
||||||
},
|
|
||||||
"_channels": [
|
|
||||||
{
|
|
||||||
"__id__": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_nComponents": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.TrackPath",
|
|
||||||
"_paths": [
|
|
||||||
{
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"scale"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.HierarchyPath",
|
|
||||||
"path": "Bg/StartButton"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0.9300000071525574,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 7
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0.9300000071525574,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 9
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0.8999999761581421,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 11
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.VectorTrack",
|
|
||||||
"_binding": {
|
|
||||||
"__type__": "cc.animation.TrackBinding",
|
|
||||||
"path": {
|
|
||||||
"__id__": 13
|
|
||||||
},
|
|
||||||
"proxy": null
|
|
||||||
},
|
|
||||||
"_channels": [
|
|
||||||
{
|
|
||||||
"__id__": 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 17
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 19
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 21
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_nComponents": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.TrackPath",
|
|
||||||
"_paths": [
|
|
||||||
{
|
|
||||||
"__id__": 14
|
|
||||||
},
|
|
||||||
"eulerAngles"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.HierarchyPath",
|
|
||||||
"path": "Bg/Rabit"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 16
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 18
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 20
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": -2,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 22
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.VectorTrack",
|
|
||||||
"_binding": {
|
|
||||||
"__type__": "cc.animation.TrackBinding",
|
|
||||||
"path": {
|
|
||||||
"__id__": 24
|
|
||||||
},
|
|
||||||
"proxy": null
|
|
||||||
},
|
|
||||||
"_channels": [
|
|
||||||
{
|
|
||||||
"__id__": 26
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 28
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 30
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 32
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_nComponents": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.TrackPath",
|
|
||||||
"_paths": [
|
|
||||||
{
|
|
||||||
"__id__": 25
|
|
||||||
},
|
|
||||||
"eulerAngles"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.HierarchyPath",
|
|
||||||
"path": "Bg/Bear"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 27
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 29
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 31
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 0,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 2,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 33
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.VectorTrack",
|
|
||||||
"_binding": {
|
|
||||||
"__type__": "cc.animation.TrackBinding",
|
|
||||||
"path": {
|
|
||||||
"__id__": 35
|
|
||||||
},
|
|
||||||
"proxy": null
|
|
||||||
},
|
|
||||||
"_channels": [
|
|
||||||
{
|
|
||||||
"__id__": 37
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 39
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 41
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 43
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_nComponents": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.TrackPath",
|
|
||||||
"_paths": [
|
|
||||||
{
|
|
||||||
"__id__": 36
|
|
||||||
},
|
|
||||||
"scale"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.HierarchyPath",
|
|
||||||
"path": "Bg/Title"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 38
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"tangentMode": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1.05,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"tangentMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 40
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"tangentMode": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1.05,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"tangentMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 42
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"tangentMode": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 1.05,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"tangentMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 44
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.VectorTrack",
|
|
||||||
"_binding": {
|
|
||||||
"__type__": "cc.animation.TrackBinding",
|
|
||||||
"path": {
|
|
||||||
"__id__": 46
|
|
||||||
},
|
|
||||||
"proxy": null
|
|
||||||
},
|
|
||||||
"_channels": [
|
|
||||||
{
|
|
||||||
"__id__": 48
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 50
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 52
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 54
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_nComponents": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.TrackPath",
|
|
||||||
"_paths": [
|
|
||||||
{
|
|
||||||
"__id__": 47
|
|
||||||
},
|
|
||||||
"eulerAngles"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.HierarchyPath",
|
|
||||||
"path": "Bg/Title"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 49
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 51
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 53
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [
|
|
||||||
0,
|
|
||||||
0.5
|
|
||||||
],
|
|
||||||
"_values": [
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": -2,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"tangentMode": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealKeyframeValue",
|
|
||||||
"interpolationMode": 0,
|
|
||||||
"tangentWeightMode": 0,
|
|
||||||
"value": 2,
|
|
||||||
"rightTangent": 0,
|
|
||||||
"rightTangentWeight": 1,
|
|
||||||
"leftTangent": 0,
|
|
||||||
"leftTangentWeight": 1,
|
|
||||||
"easingMethod": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"tangentMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.animation.Channel",
|
|
||||||
"_curve": {
|
|
||||||
"__id__": 55
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.RealCurve",
|
|
||||||
"_times": [],
|
|
||||||
"_values": [],
|
|
||||||
"preExtrapolation": 1,
|
|
||||||
"postExtrapolation": 1
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "2.0.3",
|
|
||||||
"importer": "animation-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "e3bf85a2-4c1c-4e7c-aad9-212736a909f6",
|
|
||||||
"files": [
|
|
||||||
".cconb"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"name": "startScreen2"
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
|
@ -2,10 +2,10 @@
|
||||||
"ver": "1.0.1",
|
"ver": "1.0.1",
|
||||||
"importer": "ttf-font",
|
"importer": "ttf-font",
|
||||||
"imported": true,
|
"imported": true,
|
||||||
"uuid": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
"uuid": "7745538c-645c-4a76-bbfc-b42ec99d7bcc",
|
||||||
"files": [
|
"files": [
|
||||||
".json",
|
".json",
|
||||||
"Candy-Beans.ttf"
|
"SuperBubble-Rpaj3.ttf"
|
||||||
],
|
],
|
||||||
"subMetas": {},
|
"subMetas": {},
|
||||||
"userData": {}
|
"userData": {}
|
|
@ -921,7 +921,7 @@
|
||||||
"__uuid__": "018b85ed-f07a-4f26-b29c-7c3eb28cc634",
|
"__uuid__": "018b85ed-f07a-4f26-b29c-7c3eb28cc634",
|
||||||
"__expectedType__": "cc.Prefab"
|
"__expectedType__": "cc.Prefab"
|
||||||
},
|
},
|
||||||
"_maxSpeed": 60,
|
"_maxSpeed": 70,
|
||||||
"_rigidBody": {
|
"_rigidBody": {
|
||||||
"__id__": 49
|
"__id__": 49
|
||||||
},
|
},
|
||||||
|
@ -941,11 +941,11 @@
|
||||||
"__id__": 47
|
"__id__": 47
|
||||||
},
|
},
|
||||||
"_hitSound": {
|
"_hitSound": {
|
||||||
"__uuid__": "b122d38e-ecf1-42e2-8b26-c09d306d90d9",
|
"__uuid__": "6a432293-3852-4267-be19-c671f36fe9f0",
|
||||||
"__expectedType__": "cc.AudioClip"
|
"__expectedType__": "cc.AudioClip"
|
||||||
},
|
},
|
||||||
"_hitFlipperSound": {
|
"_ballThrowSound": {
|
||||||
"__uuid__": "a76cc94a-6331-47e7-b8aa-0caeea6a79eb",
|
"__uuid__": "97c8a166-c717-41bd-837f-bd1733e2ee1c",
|
||||||
"__expectedType__": "cc.AudioClip"
|
"__expectedType__": "cc.AudioClip"
|
||||||
},
|
},
|
||||||
"_jumpCurve": {
|
"_jumpCurve": {
|
||||||
|
|
|
@ -1119,11 +1119,7 @@
|
||||||
"_animation": {
|
"_animation": {
|
||||||
"__id__": 82
|
"__id__": 82
|
||||||
},
|
},
|
||||||
"_collectSound": {
|
"time": 30,
|
||||||
"__uuid__": "1ac12acc-dde3-4d31-9106-dfc30c030d40",
|
|
||||||
"__expectedType__": "cc.AudioClip"
|
|
||||||
},
|
|
||||||
"time": 10,
|
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -318,7 +318,7 @@
|
||||||
"__id__": 16
|
"__id__": 16
|
||||||
},
|
},
|
||||||
"_hitSound": {
|
"_hitSound": {
|
||||||
"__uuid__": "65a023cb-b98f-4470-ba2d-4eba9fe184fe",
|
"__uuid__": "1f602e14-2769-4903-b4d2-b0977eeaf36b",
|
||||||
"__expectedType__": "cc.AudioClip"
|
"__expectedType__": "cc.AudioClip"
|
||||||
},
|
},
|
||||||
"_score": 0,
|
"_score": 0,
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 60.62,
|
"width": 86.92,
|
||||||
"height": 54.4
|
"height": 54.4
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
"_overflow": 0,
|
"_overflow": 0,
|
||||||
"_enableWrapText": true,
|
"_enableWrapText": true,
|
||||||
"_font": {
|
"_font": {
|
||||||
"__uuid__": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
"__uuid__": "7745538c-645c-4a76-bbfc-b42ec99d7bcc",
|
||||||
"__expectedType__": "cc.TTFFont"
|
"__expectedType__": "cc.TTFFont"
|
||||||
},
|
},
|
||||||
"_isSystemFontUsed": false,
|
"_isSystemFontUsed": false,
|
||||||
|
@ -237,6 +237,7 @@
|
||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "1fuwMYcsRH06ykaXQ3fPi3",
|
"fileId": "1fuwMYcsRH06ykaXQ3fPi3",
|
||||||
"instance": null
|
"instance": null,
|
||||||
|
"targetOverrides": null
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -1,143 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"__type__": "cc.Prefab",
|
|
||||||
"_name": "Star",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_native": "",
|
|
||||||
"data": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"optimizationPolicy": 0,
|
|
||||||
"persistent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "Star",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"__editorExtras__": {},
|
|
||||||
"_parent": null,
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 4
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": 751.877,
|
|
||||||
"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,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 52,
|
|
||||||
"height": 49
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "480yd82AtKIqjJBLbl3rlS"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 5
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_spriteFrame": {
|
|
||||||
"__uuid__": "5b5a3073-f986-4350-9ef0-e1fddb56a494@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": "1fsjnPw61KILwwKyxIzU9M"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "d3ooykM2hC97QNNNBYXSSK",
|
|
||||||
"targetOverrides": null
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.1.43",
|
|
||||||
"importer": "prefab",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "35274179-f40e-4de9-a5d5-43fba9c12669",
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"syncNodeName": "Star"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.1.0",
|
|
||||||
"importer": "directory",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "5461daf7-e832-44cd-a5e2-e9611e3434c9",
|
|
||||||
"files": [],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"compressionType": {},
|
|
||||||
"isRemoteBundle": {}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,826 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"__type__": "cc.Prefab",
|
|
||||||
"_name": "itemNormal",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_native": "",
|
|
||||||
"data": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"optimizationPolicy": 0,
|
|
||||||
"persistent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "itemNormal",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"__editorExtras__": {},
|
|
||||||
"_parent": null,
|
|
||||||
"_children": [
|
|
||||||
{
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 24
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 32
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 34
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 36
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 38
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": -580,
|
|
||||||
"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.Node",
|
|
||||||
"_name": "top",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_children": [
|
|
||||||
{
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 9
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 19
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 21
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 23
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": -233,
|
|
||||||
"y": -90,
|
|
||||||
"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.Node",
|
|
||||||
"_name": "Sprite",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 8
|
|
||||||
},
|
|
||||||
"_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": 33554432,
|
|
||||||
"_euler": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": 0,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.UITransform",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 5
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 100,
|
|
||||||
"height": 100
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "18tXKchD1Dr48NskmoEDeH"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 7
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 0,
|
|
||||||
"g": 0,
|
|
||||||
"b": 0,
|
|
||||||
"a": 50
|
|
||||||
},
|
|
||||||
"_spriteFrame": {
|
|
||||||
"__uuid__": "0cef1981-83f4-4681-8ca8-2f11e3162169@f9941",
|
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
|
||||||
},
|
|
||||||
"_type": 0,
|
|
||||||
"_fillType": 0,
|
|
||||||
"_sizeMode": 0,
|
|
||||||
"_fillCenter": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"_fillStart": 0,
|
|
||||||
"_fillRange": 0,
|
|
||||||
"_isTrimmedMode": true,
|
|
||||||
"_useGrayscale": false,
|
|
||||||
"_atlas": null,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "2cQAeOCKBIariMukuouuY9"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "53p/E2Qw5PC42ngf9NKIN1",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "Label",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 14
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 16
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 18
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": 7.105427357601002e-15,
|
|
||||||
"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,
|
|
||||||
"node": {
|
|
||||||
"__id__": 9
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 11
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 100,
|
|
||||||
"height": 100
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "50rVR8jQZLl7q7CPZCrsLP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Label",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 9
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 13
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_string": "4",
|
|
||||||
"_horizontalAlign": 1,
|
|
||||||
"_verticalAlign": 1,
|
|
||||||
"_actualFontSize": 61,
|
|
||||||
"_fontSize": 60,
|
|
||||||
"_fontFamily": "Arial",
|
|
||||||
"_lineHeight": 60,
|
|
||||||
"_overflow": 2,
|
|
||||||
"_enableWrapText": true,
|
|
||||||
"_font": {
|
|
||||||
"__uuid__": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
|
||||||
"__expectedType__": "cc.TTFFont"
|
|
||||||
},
|
|
||||||
"_isSystemFontUsed": false,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_isItalic": false,
|
|
||||||
"_isBold": false,
|
|
||||||
"_isUnderline": false,
|
|
||||||
"_underlineHeight": 2,
|
|
||||||
"_cacheMode": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "b02ZbVP2BOYK6EMHsKPTJ2"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 9
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 15
|
|
||||||
},
|
|
||||||
"_alignFlags": 45,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 0,
|
|
||||||
"_right": 0,
|
|
||||||
"_top": 0,
|
|
||||||
"_bottom": 6.439293542825908e-15,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 53.117999999999995,
|
|
||||||
"_originalHeight": 75.6,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "76HqScksFCcZ6GUvSeKOhP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.LabelOutline",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 9
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 17
|
|
||||||
},
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 96,
|
|
||||||
"g": 96,
|
|
||||||
"b": 96,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_width": 4,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "95uDDSqJpEvq+ATOvbMO/W"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "2dvXaY9F1K75NrtIUWTWpc",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.UITransform",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 100,
|
|
||||||
"height": 100
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "89K0ThrjlLLqRGRyJIoMq8"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 22
|
|
||||||
},
|
|
||||||
"_alignFlags": 10,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 45,
|
|
||||||
"_right": 0,
|
|
||||||
"_top": 18.5,
|
|
||||||
"_bottom": 0,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 0,
|
|
||||||
"_originalHeight": 0,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "9dCqDdZadKL6u61sb0jRVB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "d9qqj7PD9IYZkPDopIuKbY",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "Label",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 25
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 27
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 29
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 31
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 65,
|
|
||||||
"y": -90,
|
|
||||||
"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,
|
|
||||||
"node": {
|
|
||||||
"__id__": 24
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 26
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 426,
|
|
||||||
"height": 180
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "8f/If4pqVLNKjacc6x/7j3"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Label",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 24
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 28
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_string": "100000",
|
|
||||||
"_horizontalAlign": 1,
|
|
||||||
"_verticalAlign": 1,
|
|
||||||
"_actualFontSize": 81,
|
|
||||||
"_fontSize": 80,
|
|
||||||
"_fontFamily": "Arial",
|
|
||||||
"_lineHeight": 80,
|
|
||||||
"_overflow": 2,
|
|
||||||
"_enableWrapText": true,
|
|
||||||
"_font": {
|
|
||||||
"__uuid__": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
|
||||||
"__expectedType__": "cc.TTFFont"
|
|
||||||
},
|
|
||||||
"_isSystemFontUsed": false,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_isItalic": false,
|
|
||||||
"_isBold": false,
|
|
||||||
"_isUnderline": false,
|
|
||||||
"_underlineHeight": 2,
|
|
||||||
"_cacheMode": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "953S2lrSxMyYur/EgwU4QW"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 24
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 30
|
|
||||||
},
|
|
||||||
"_alignFlags": 45,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 180,
|
|
||||||
"_right": 50,
|
|
||||||
"_top": 0,
|
|
||||||
"_bottom": 0,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 42.26,
|
|
||||||
"_originalHeight": 50.4,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "45FuNbJ7xHAYhyQjKStjxj"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "6bBO1CaHdDDKNnRkS7MQlG",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.UITransform",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 33
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 656,
|
|
||||||
"height": 180
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 1
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "12Nqr7ER9Ow7DeP6uuvVGT"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 35
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_spriteFrame": {
|
|
||||||
"__uuid__": "989a5cd8-943d-4065-9b3e-fc833596a6fc@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": "02Ua8Kgi5L/ZH3dLv9B+bK"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "552d1g5QNpOeIBUm3Wr1J5c",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 37
|
|
||||||
},
|
|
||||||
"_bg": {
|
|
||||||
"__id__": 34
|
|
||||||
},
|
|
||||||
"_scoreText": {
|
|
||||||
"__id__": 27
|
|
||||||
},
|
|
||||||
"_topText": {
|
|
||||||
"__id__": 12
|
|
||||||
},
|
|
||||||
"_highLightColor": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 113,
|
|
||||||
"g": 141,
|
|
||||||
"b": 238,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "dbKG8fYCVAvJUI5x0eAfvD"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "6bZKxhllhMCqrTReiih0t4",
|
|
||||||
"targetOverrides": null
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.1.43",
|
|
||||||
"importer": "prefab",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "45fbee0e-e0ae-4e69-828e-ee8e725f3c5c",
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"syncNodeName": "itemNormal"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,913 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"__type__": "cc.Prefab",
|
|
||||||
"_name": "itemTop1",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_native": "",
|
|
||||||
"data": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"optimizationPolicy": 0,
|
|
||||||
"persistent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "itemTop1",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"__editorExtras__": {},
|
|
||||||
"_parent": null,
|
|
||||||
"_children": [
|
|
||||||
{
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 28
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 40
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 42
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 44
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 46
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": -10,
|
|
||||||
"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.Node",
|
|
||||||
"_name": "top",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_children": [
|
|
||||||
{
|
|
||||||
"__id__": 3
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 17
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 19
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": -232.5,
|
|
||||||
"y": -58.5,
|
|
||||||
"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.Node",
|
|
||||||
"_name": "Label",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 12
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": -17.5,
|
|
||||||
"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,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 5
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 101,
|
|
||||||
"height": 102
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "06D3Moa3VHfIAlB85/p4VS"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Label",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 7
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 204,
|
|
||||||
"b": 0,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_string": "1",
|
|
||||||
"_horizontalAlign": 1,
|
|
||||||
"_verticalAlign": 1,
|
|
||||||
"_actualFontSize": 61,
|
|
||||||
"_fontSize": 60,
|
|
||||||
"_fontFamily": "Arial",
|
|
||||||
"_lineHeight": 60,
|
|
||||||
"_overflow": 2,
|
|
||||||
"_enableWrapText": true,
|
|
||||||
"_font": {
|
|
||||||
"__uuid__": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
|
||||||
"__expectedType__": "cc.TTFFont"
|
|
||||||
},
|
|
||||||
"_isSystemFontUsed": false,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_isItalic": false,
|
|
||||||
"_isBold": false,
|
|
||||||
"_isUnderline": false,
|
|
||||||
"_underlineHeight": 2,
|
|
||||||
"_cacheMode": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "75JU0twYBCV4xrGL3Kylf6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 9
|
|
||||||
},
|
|
||||||
"_alignFlags": 45,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 0,
|
|
||||||
"_right": 0,
|
|
||||||
"_top": 35,
|
|
||||||
"_bottom": 6.439293542825908e-15,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 53.117999999999995,
|
|
||||||
"_originalHeight": 75.6,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "5bQ0X7vzRNMr55LtO97SRv"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.LabelOutline",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 11
|
|
||||||
},
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 102,
|
|
||||||
"b": 0,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_width": 4,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "40bKbcvN5E84Ydy7sEwJcK"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "44MsJsH3hBAZbfJwQA1D5d",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.UITransform",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 14
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 101,
|
|
||||||
"height": 137
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "e1IhbAnCRP3Yq489V9jwSA"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 16
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_spriteFrame": {
|
|
||||||
"__uuid__": "5037588b-9bac-44f1-ada1-020b001bb3d4@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": "6bjvr2ux5H75wvUhPU+aW6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 18
|
|
||||||
},
|
|
||||||
"_alignFlags": 9,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 45,
|
|
||||||
"_right": 0,
|
|
||||||
"_top": -10,
|
|
||||||
"_bottom": 0,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 0,
|
|
||||||
"_originalHeight": 0,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "1eKHMZ9txAYI/d1307l68i"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "d8RptcfwhBAa8uRvV3pbqv",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "Label",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 21
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 23
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 25
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 27
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 65,
|
|
||||||
"y": -90,
|
|
||||||
"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,
|
|
||||||
"node": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 22
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 426,
|
|
||||||
"height": 180
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "72A58S/o5A/pAKw7uxNIQd"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Label",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 24
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 78,
|
|
||||||
"b": 1,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_string": "100000",
|
|
||||||
"_horizontalAlign": 1,
|
|
||||||
"_verticalAlign": 1,
|
|
||||||
"_actualFontSize": 81,
|
|
||||||
"_fontSize": 80,
|
|
||||||
"_fontFamily": "Arial",
|
|
||||||
"_lineHeight": 80,
|
|
||||||
"_overflow": 2,
|
|
||||||
"_enableWrapText": true,
|
|
||||||
"_font": {
|
|
||||||
"__uuid__": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
|
||||||
"__expectedType__": "cc.TTFFont"
|
|
||||||
},
|
|
||||||
"_isSystemFontUsed": false,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_isItalic": false,
|
|
||||||
"_isBold": false,
|
|
||||||
"_isUnderline": false,
|
|
||||||
"_underlineHeight": 2,
|
|
||||||
"_cacheMode": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "26bQkSjSBLjZHtDuGitOzD"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 26
|
|
||||||
},
|
|
||||||
"_alignFlags": 45,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 180,
|
|
||||||
"_right": 50,
|
|
||||||
"_top": 0,
|
|
||||||
"_bottom": 0,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 42.26,
|
|
||||||
"_originalHeight": 50.4,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "cf8+W56NRJT6sRRqJivrby"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "ee1htKmyJJ/qSbIesKagXh",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 29
|
|
||||||
},
|
|
||||||
"__editorExtras__": {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 28
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__uuid__": "08db7198-bf32-48a4-b5c6-cb88bdb15478",
|
|
||||||
"__expectedType__": "cc.Prefab"
|
|
||||||
},
|
|
||||||
"fileId": "8dLJOK/3dIHrry1f3GsMwX",
|
|
||||||
"instance": {
|
|
||||||
"__id__": 30
|
|
||||||
},
|
|
||||||
"targetOverrides": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInstance",
|
|
||||||
"fileId": "d2DUrhWMxJb6lzECsBr/jC",
|
|
||||||
"prefabRootNode": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"mountedChildren": [],
|
|
||||||
"mountedComponents": [
|
|
||||||
{
|
|
||||||
"__id__": 31
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"propertyOverrides": [
|
|
||||||
{
|
|
||||||
"__id__": 35
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 37
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 38
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 39
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"removedComponents": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.MountedComponentsInfo",
|
|
||||||
"targetInfo": {
|
|
||||||
"__id__": 32
|
|
||||||
},
|
|
||||||
"components": [
|
|
||||||
{
|
|
||||||
"__id__": 33
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.TargetInfo",
|
|
||||||
"localID": [
|
|
||||||
"8dLJOK/3dIHrry1f3GsMwX"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"__editorExtras__": {
|
|
||||||
"mountedRoot": {
|
|
||||||
"__id__": 28
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node": {
|
|
||||||
"__id__": 28
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 34
|
|
||||||
},
|
|
||||||
"_alignFlags": 18,
|
|
||||||
"_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": 0,
|
|
||||||
"_originalHeight": 0,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "13+utr2VVK3KwmWKqO283a"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
|
||||||
"targetInfo": {
|
|
||||||
"__id__": 36
|
|
||||||
},
|
|
||||||
"propertyPath": [
|
|
||||||
"_name"
|
|
||||||
],
|
|
||||||
"value": "FxLeaderBoard"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.TargetInfo",
|
|
||||||
"localID": [
|
|
||||||
"8dLJOK/3dIHrry1f3GsMwX"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
|
||||||
"targetInfo": {
|
|
||||||
"__id__": 36
|
|
||||||
},
|
|
||||||
"propertyPath": [
|
|
||||||
"_lpos"
|
|
||||||
],
|
|
||||||
"value": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": -90,
|
|
||||||
"z": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
|
||||||
"targetInfo": {
|
|
||||||
"__id__": 36
|
|
||||||
},
|
|
||||||
"propertyPath": [
|
|
||||||
"_lrot"
|
|
||||||
],
|
|
||||||
"value": {
|
|
||||||
"__type__": "cc.Quat",
|
|
||||||
"x": 0,
|
|
||||||
"y": 0,
|
|
||||||
"z": 0,
|
|
||||||
"w": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
|
||||||
"targetInfo": {
|
|
||||||
"__id__": 36
|
|
||||||
},
|
|
||||||
"propertyPath": [
|
|
||||||
"_euler"
|
|
||||||
],
|
|
||||||
"value": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": 0,
|
|
||||||
"z": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.UITransform",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 41
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 656,
|
|
||||||
"height": 180
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 1
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "5ayjSEeAND+6ZGusQXSvrc"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 43
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_spriteFrame": {
|
|
||||||
"__uuid__": "65bd68ee-c310-4a89-81b5-4c8a7d57b458@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": "7eI5LWcClIO5zhbfjgOrsR"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "552d1g5QNpOeIBUm3Wr1J5c",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 45
|
|
||||||
},
|
|
||||||
"_bg": {
|
|
||||||
"__id__": 42
|
|
||||||
},
|
|
||||||
"_highLightColor": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 113,
|
|
||||||
"g": 141,
|
|
||||||
"b": 238,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "79errFT/JL+rq4ieCK7Gki"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "f9uSHaj7BMlIwLhcEY9s8R",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": [
|
|
||||||
{
|
|
||||||
"__id__": 28
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.1.43",
|
|
||||||
"importer": "prefab",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "44541b9d-0cbe-4e00-8819-64b15d93dea7",
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"syncNodeName": "itemTop1"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,737 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"__type__": "cc.Prefab",
|
|
||||||
"_name": "itemTop2",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_native": "",
|
|
||||||
"data": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"optimizationPolicy": 0,
|
|
||||||
"persistent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "itemTop2",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"__editorExtras__": {},
|
|
||||||
"_parent": null,
|
|
||||||
"_children": [
|
|
||||||
{
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 20
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 28
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 30
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 32
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 34
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": -200,
|
|
||||||
"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.Node",
|
|
||||||
"_name": "top",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_children": [
|
|
||||||
{
|
|
||||||
"__id__": 3
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 17
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 19
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": -228.5,
|
|
||||||
"y": -58.5,
|
|
||||||
"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.Node",
|
|
||||||
"_name": "Label",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 12
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": -3,
|
|
||||||
"y": -17.5,
|
|
||||||
"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,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 5
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 103,
|
|
||||||
"height": 102
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "61t1D5iHVHIrfRqG/uW/E6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Label",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 7
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 202,
|
|
||||||
"g": 211,
|
|
||||||
"b": 228,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_string": "2",
|
|
||||||
"_horizontalAlign": 1,
|
|
||||||
"_verticalAlign": 1,
|
|
||||||
"_actualFontSize": 61,
|
|
||||||
"_fontSize": 60,
|
|
||||||
"_fontFamily": "Arial",
|
|
||||||
"_lineHeight": 60,
|
|
||||||
"_overflow": 2,
|
|
||||||
"_enableWrapText": true,
|
|
||||||
"_font": {
|
|
||||||
"__uuid__": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
|
||||||
"__expectedType__": "cc.TTFFont"
|
|
||||||
},
|
|
||||||
"_isSystemFontUsed": false,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_isItalic": false,
|
|
||||||
"_isBold": false,
|
|
||||||
"_isUnderline": false,
|
|
||||||
"_underlineHeight": 2,
|
|
||||||
"_cacheMode": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "c3p7sOWDRNUokgX8MGqsyF"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 9
|
|
||||||
},
|
|
||||||
"_alignFlags": 45,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 0,
|
|
||||||
"_right": 6,
|
|
||||||
"_top": 35,
|
|
||||||
"_bottom": 6.439293542825908e-15,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 53.117999999999995,
|
|
||||||
"_originalHeight": 75.6,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "2abEt1Ja1CtqNxk3xMCJFo"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.LabelOutline",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 11
|
|
||||||
},
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 99,
|
|
||||||
"g": 113,
|
|
||||||
"b": 133,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_width": 4,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "4eAtE+DrBIgb0jJv6fBI5r"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "7d0NoFQtlBg4bcoJmwx/JR",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.UITransform",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 14
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 109,
|
|
||||||
"height": 137
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "5c+ZrFOIBPA6kxY6P6xMG4"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 16
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_spriteFrame": {
|
|
||||||
"__uuid__": "fbbd2af6-c128-44ad-b737-679c35472653@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": "1a4heGR6pNNoOFzsQ4qx/i"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 18
|
|
||||||
},
|
|
||||||
"_alignFlags": 9,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 45,
|
|
||||||
"_right": 0,
|
|
||||||
"_top": -10,
|
|
||||||
"_bottom": 0,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 0,
|
|
||||||
"_originalHeight": 0,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "38kVaEzY5Ow5NozrTjJ4Kg"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "43UWX8MbJPYLZj/9W48d/f",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "Label",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 21
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 23
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 25
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 27
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 65,
|
|
||||||
"y": -90,
|
|
||||||
"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,
|
|
||||||
"node": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 22
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 426,
|
|
||||||
"height": 180
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "5eH269ozFF0r6q08t6Jo5r"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Label",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 24
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 95,
|
|
||||||
"g": 83,
|
|
||||||
"b": 78,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_string": "100000",
|
|
||||||
"_horizontalAlign": 1,
|
|
||||||
"_verticalAlign": 1,
|
|
||||||
"_actualFontSize": 81,
|
|
||||||
"_fontSize": 80,
|
|
||||||
"_fontFamily": "Arial",
|
|
||||||
"_lineHeight": 80,
|
|
||||||
"_overflow": 2,
|
|
||||||
"_enableWrapText": true,
|
|
||||||
"_font": {
|
|
||||||
"__uuid__": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
|
||||||
"__expectedType__": "cc.TTFFont"
|
|
||||||
},
|
|
||||||
"_isSystemFontUsed": false,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_isItalic": false,
|
|
||||||
"_isBold": false,
|
|
||||||
"_isUnderline": false,
|
|
||||||
"_underlineHeight": 2,
|
|
||||||
"_cacheMode": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "aeY+UjMsxCipmuaUYf2uCx"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 26
|
|
||||||
},
|
|
||||||
"_alignFlags": 45,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 180,
|
|
||||||
"_right": 50,
|
|
||||||
"_top": 0,
|
|
||||||
"_bottom": 0,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 42.26,
|
|
||||||
"_originalHeight": 50.4,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "d8bj5Jb0ZF84gkM+U4Vj48"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "799zgsDlJBGbN3uLltly8J",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.UITransform",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 29
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 656,
|
|
||||||
"height": 180
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 1
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "27G8RhkudK5IQl1K7dWhm1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 31
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_spriteFrame": {
|
|
||||||
"__uuid__": "989a5cd8-943d-4065-9b3e-fc833596a6fc@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": "89AXFl5nBDda+ETpEcQNpe"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "552d1g5QNpOeIBUm3Wr1J5c",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 33
|
|
||||||
},
|
|
||||||
"_bg": {
|
|
||||||
"__id__": 30
|
|
||||||
},
|
|
||||||
"_scoreText": {
|
|
||||||
"__id__": 23
|
|
||||||
},
|
|
||||||
"_topText": {
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
"_highLightColor": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 113,
|
|
||||||
"g": 141,
|
|
||||||
"b": 238,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "a87a1dDepJbr3/Y6l3nfUc"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "5dP05mPalLwZZ2b8ZT1A3S",
|
|
||||||
"targetOverrides": null
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.1.43",
|
|
||||||
"importer": "prefab",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "a1083c12-2895-4ff8-8f0c-012f9d6684f5",
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"syncNodeName": "itemTop2"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,737 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"__type__": "cc.Prefab",
|
|
||||||
"_name": "itemTop3",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_native": "",
|
|
||||||
"data": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"optimizationPolicy": 0,
|
|
||||||
"persistent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "itemTop3",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"__editorExtras__": {},
|
|
||||||
"_parent": null,
|
|
||||||
"_children": [
|
|
||||||
{
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 20
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 28
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 30
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 32
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 34
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": -390,
|
|
||||||
"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.Node",
|
|
||||||
"_name": "top",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_children": [
|
|
||||||
{
|
|
||||||
"__id__": 3
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 17
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 19
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": -232.5,
|
|
||||||
"y": -58.5,
|
|
||||||
"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.Node",
|
|
||||||
"_name": "Label",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 12
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": -17.5,
|
|
||||||
"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,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 5
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 101,
|
|
||||||
"height": 101
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "368gHxKB5Apqd0tizVhtg1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Label",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 7
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 227,
|
|
||||||
"g": 115,
|
|
||||||
"b": 91,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_string": "3",
|
|
||||||
"_horizontalAlign": 1,
|
|
||||||
"_verticalAlign": 1,
|
|
||||||
"_actualFontSize": 61,
|
|
||||||
"_fontSize": 60,
|
|
||||||
"_fontFamily": "Arial",
|
|
||||||
"_lineHeight": 60,
|
|
||||||
"_overflow": 2,
|
|
||||||
"_enableWrapText": true,
|
|
||||||
"_font": {
|
|
||||||
"__uuid__": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
|
||||||
"__expectedType__": "cc.TTFFont"
|
|
||||||
},
|
|
||||||
"_isSystemFontUsed": false,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_isItalic": false,
|
|
||||||
"_isBold": false,
|
|
||||||
"_isUnderline": false,
|
|
||||||
"_underlineHeight": 2,
|
|
||||||
"_cacheMode": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "89zH1Z9mpBUKOptexSsaCc"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 9
|
|
||||||
},
|
|
||||||
"_alignFlags": 45,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 0,
|
|
||||||
"_right": 0,
|
|
||||||
"_top": 35,
|
|
||||||
"_bottom": 6.439293542825908e-15,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 53.117999999999995,
|
|
||||||
"_originalHeight": 75.6,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "26aSxa/n1HP4WeMiJZNg1Q"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.LabelOutline",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 3
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 11
|
|
||||||
},
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 126,
|
|
||||||
"g": 41,
|
|
||||||
"b": 19,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_width": 4,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "3e20tfG/ZEZqoVu6uSplwa"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "66t4AsPS9IhL8BFW2f7t9M",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.UITransform",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 14
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 101,
|
|
||||||
"height": 136
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "66dUeI27ZIKrvJXa1mCYPQ"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 16
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_spriteFrame": {
|
|
||||||
"__uuid__": "7629f6bd-fb1b-4328-9fab-758aac42550f@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": "3eIAPhahVH5Y6NaE7cwkz6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 2
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 18
|
|
||||||
},
|
|
||||||
"_alignFlags": 9,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 45,
|
|
||||||
"_right": 0,
|
|
||||||
"_top": -9.5,
|
|
||||||
"_bottom": 0,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 0,
|
|
||||||
"_originalHeight": 0,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "d4hhPvwgVOQ7UnTLsXj16B"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "bc9FUTWYZL54d9mhpJg/ae",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "Label",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_children": [],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 21
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 23
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 25
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": {
|
|
||||||
"__id__": 27
|
|
||||||
},
|
|
||||||
"_lpos": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 65,
|
|
||||||
"y": -90,
|
|
||||||
"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,
|
|
||||||
"node": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 22
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 426,
|
|
||||||
"height": 180
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "68xAym3BBDaInUm0oLtONo"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Label",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 24
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 95,
|
|
||||||
"g": 83,
|
|
||||||
"b": 78,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_string": "100000",
|
|
||||||
"_horizontalAlign": 1,
|
|
||||||
"_verticalAlign": 1,
|
|
||||||
"_actualFontSize": 81,
|
|
||||||
"_fontSize": 80,
|
|
||||||
"_fontFamily": "Arial",
|
|
||||||
"_lineHeight": 80,
|
|
||||||
"_overflow": 2,
|
|
||||||
"_enableWrapText": true,
|
|
||||||
"_font": {
|
|
||||||
"__uuid__": "4eb60b5b-72b8-497c-b499-d7921c9b84db",
|
|
||||||
"__expectedType__": "cc.TTFFont"
|
|
||||||
},
|
|
||||||
"_isSystemFontUsed": false,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_isItalic": false,
|
|
||||||
"_isBold": false,
|
|
||||||
"_isUnderline": false,
|
|
||||||
"_underlineHeight": 2,
|
|
||||||
"_cacheMode": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "e20tIU3itCDJ1wAUa3yN2K"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 20
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 26
|
|
||||||
},
|
|
||||||
"_alignFlags": 45,
|
|
||||||
"_target": null,
|
|
||||||
"_left": 180,
|
|
||||||
"_right": 50,
|
|
||||||
"_top": 0,
|
|
||||||
"_bottom": 0,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 42.26,
|
|
||||||
"_originalHeight": 50.4,
|
|
||||||
"_alignMode": 2,
|
|
||||||
"_lockFlags": 0,
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "e4DYEJxcNCYJu23xrprXj0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "24NclmKvBBt6jpoRXg7Xmz",
|
|
||||||
"instance": null,
|
|
||||||
"targetOverrides": null,
|
|
||||||
"nestedPrefabInstanceRoots": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.UITransform",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 29
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 656,
|
|
||||||
"height": 180
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 1
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "b74RtF4ypM34F4i5W/NnmH"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 31
|
|
||||||
},
|
|
||||||
"_customMaterial": null,
|
|
||||||
"_srcBlendFactor": 2,
|
|
||||||
"_dstBlendFactor": 4,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 255,
|
|
||||||
"g": 255,
|
|
||||||
"b": 255,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_spriteFrame": {
|
|
||||||
"__uuid__": "989a5cd8-943d-4065-9b3e-fc833596a6fc@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": "75f6Htv3ZNzokyi5rSUFnl"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "552d1g5QNpOeIBUm3Wr1J5c",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 33
|
|
||||||
},
|
|
||||||
"_bg": {
|
|
||||||
"__id__": 30
|
|
||||||
},
|
|
||||||
"_scoreText": {
|
|
||||||
"__id__": 23
|
|
||||||
},
|
|
||||||
"_topText": {
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
"_highLightColor": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 113,
|
|
||||||
"g": 141,
|
|
||||||
"b": 238,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_id": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.CompPrefabInfo",
|
|
||||||
"fileId": "853l7J73lP5Zy1vj3mxiwe"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.PrefabInfo",
|
|
||||||
"root": {
|
|
||||||
"__id__": 1
|
|
||||||
},
|
|
||||||
"asset": {
|
|
||||||
"__id__": 0
|
|
||||||
},
|
|
||||||
"fileId": "ceuq3bJktG3ojoU7UZJ27S",
|
|
||||||
"targetOverrides": null
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.1.43",
|
|
||||||
"importer": "prefab",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "731196cb-d101-433a-9fa5-90699deb0d37",
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"syncNodeName": "itemTop3"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -318,7 +318,7 @@
|
||||||
"__id__": 16
|
"__id__": 16
|
||||||
},
|
},
|
||||||
"_hitSound": {
|
"_hitSound": {
|
||||||
"__uuid__": "65a023cb-b98f-4470-ba2d-4eba9fe184fe",
|
"__uuid__": "1f602e14-2769-4903-b4d2-b0977eeaf36b",
|
||||||
"__expectedType__": "cc.AudioClip"
|
"__expectedType__": "cc.AudioClip"
|
||||||
},
|
},
|
||||||
"_score": 5,
|
"_score": 5,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,31 +1,49 @@
|
||||||
import { _decorator } from 'cc';
|
import { _decorator } from 'cc';
|
||||||
import * as CryptoES from 'crypto-es';
|
import * as CryptoES from 'crypto-es';
|
||||||
import Singleton from '../Singleton';
|
import { GameManager } from '../Manager/GameManager';
|
||||||
|
import Utilities from '../Utilities';
|
||||||
export let CryptoESDefault = CryptoES.default;
|
export let CryptoESDefault = CryptoES.default;
|
||||||
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
|
window.addEventListener('message', (data) => {
|
||||||
|
const { data: res } = data;
|
||||||
|
const objectRes = Utilities.getJson(res);
|
||||||
|
if (objectRes) {
|
||||||
|
const { type, value } = objectRes;
|
||||||
|
if (type === 'newTicket') {
|
||||||
|
BEConnector.instance.numberTicket += value;
|
||||||
|
GameManager.instance.gameRelive();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
@ccclass('BEConnector')
|
@ccclass('BEConnector')
|
||||||
export default class BEConnector extends Singleton<BEConnector>('BEConnector') {
|
export default class BEConnector {
|
||||||
|
public static _instance: BEConnector = null;
|
||||||
|
|
||||||
private token: string;
|
private token: string;
|
||||||
private skinId: string;
|
private skinId: string;
|
||||||
private tournamentId: string;
|
private tournamentId: string;
|
||||||
private key: string;
|
private key: string;
|
||||||
private deviceInfo: string;
|
private deviceInfo: string;
|
||||||
|
|
||||||
// Ticket info
|
// Ticket infors
|
||||||
public numberTicket: number;
|
public numberTicket: number;
|
||||||
public maxScore: number;
|
public maxScore: number;
|
||||||
public currentScore: number;
|
public currentScore: number;
|
||||||
public topScores: [] = [];
|
|
||||||
private mileStone: string;
|
private mileStone: string;
|
||||||
|
|
||||||
public gameScore: number = 0;
|
|
||||||
|
|
||||||
private gameURL: string = '';
|
private gameURL: string = '';
|
||||||
|
|
||||||
|
public static get instance() {
|
||||||
|
if (null == this._instance) {
|
||||||
|
this._instance = new BEConnector();
|
||||||
|
}
|
||||||
|
return this._instance;
|
||||||
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
|
||||||
this.getGameData();
|
this.getGameData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,23 +55,13 @@ export default class BEConnector extends Singleton<BEConnector>('BEConnector') {
|
||||||
this.tournamentId = url.get('tournamentId');
|
this.tournamentId = url.get('tournamentId');
|
||||||
this.deviceInfo = url.get('deviceInfo');
|
this.deviceInfo = url.get('deviceInfo');
|
||||||
|
|
||||||
this.numberTicket = parseInt(url.get('numberTicket')) || 0;
|
this.numberTicket = parseInt(url.get('numberTicket'));
|
||||||
this.maxScore = parseInt(url.get('maxScore')) || 0;
|
this.maxScore = parseInt(url.get('maxScore')) || 99999;
|
||||||
this.currentScore = parseInt(url.get('currentScore')) || 0;
|
this.currentScore = parseInt(url.get('currentScore')) || 0;
|
||||||
this.mileStone = url.get('mileStone') || '';
|
this.mileStone = url.get('mileStone');
|
||||||
this.gameURL = ENV_CONFIG[url.get('env')];
|
this.gameURL = ENV_CONFIG[url.get('env')];
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getInfo() {
|
|
||||||
try {
|
|
||||||
const res = await fetch(`${this.gameURL}/promotions/detail/${this.tournamentId}`);
|
|
||||||
const json = await res.json();
|
|
||||||
this.topScores = json.tScores;
|
|
||||||
} catch (error) {
|
|
||||||
console.log(error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public async authenticate() {
|
public async authenticate() {
|
||||||
await fetch(
|
await fetch(
|
||||||
`${this.gameURL}/promotions/authenticate-tournament?token=${this.token}&tournamentId=${this.tournamentId}&skinId=${this.skinId}&deviceInfo=${this.deviceInfo}`,
|
`${this.gameURL}/promotions/authenticate-tournament?token=${this.token}&tournamentId=${this.tournamentId}&skinId=${this.skinId}&deviceInfo=${this.deviceInfo}`,
|
||||||
|
@ -106,11 +114,8 @@ export default class BEConnector extends Singleton<BEConnector>('BEConnector') {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async checkGameScoreTicket() {
|
public async checkGameScoreTicket() {
|
||||||
let totalScore: number = this.gameScore;
|
let totalScore: number = GameManager.instance.score;
|
||||||
let dataEncrypted: string = this.getDataEncrypted({
|
let dataEncrypted: string = this.getDataEncrypted({ score: totalScore, ticket: this.getTicketCanBeMinus() });
|
||||||
score: totalScore,
|
|
||||||
ticket: this.getTicketCanBeMinus(),
|
|
||||||
});
|
|
||||||
|
|
||||||
await fetch(`${this.gameURL}/promotions/check-game-score-ticket/${this.tournamentId}/${this.skinId}?cocos=1`, {
|
await fetch(`${this.gameURL}/promotions/check-game-score-ticket/${this.tournamentId}/${this.skinId}?cocos=1`, {
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -124,7 +129,7 @@ export default class BEConnector extends Singleton<BEConnector>('BEConnector') {
|
||||||
}
|
}
|
||||||
|
|
||||||
public postMessage() {
|
public postMessage() {
|
||||||
let totalScore: number = this.gameScore + this.currentScore;
|
let totalScore: number = GameManager.instance.score;
|
||||||
window.parent.postMessage(
|
window.parent.postMessage(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
error: false,
|
error: false,
|
||||||
|
@ -136,9 +141,9 @@ export default class BEConnector extends Singleton<BEConnector>('BEConnector') {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public postScoreToServer() {
|
public postScoreToServer(score: number) {
|
||||||
let dataEncrypted: string = this.getDataEncrypted({
|
let dataEncrypted: string = this.getDataEncrypted({
|
||||||
Score: this.gameScore,
|
Score: score,
|
||||||
TournamentId: this.tournamentId,
|
TournamentId: this.tournamentId,
|
||||||
SkinId: this.skinId,
|
SkinId: this.skinId,
|
||||||
});
|
});
|
||||||
|
@ -155,13 +160,13 @@ export default class BEConnector extends Singleton<BEConnector>('BEConnector') {
|
||||||
body: JSON.stringify({ data: dataEncrypted }),
|
body: JSON.stringify({ data: dataEncrypted }),
|
||||||
},
|
},
|
||||||
).catch((err) => console.log(err));
|
).catch((err) => console.log(err));
|
||||||
console.log('send score to server: ' + this.gameScore);
|
console.log('send score to server: ' + score);
|
||||||
|
|
||||||
window.parent.postMessage(
|
window.parent.postMessage(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
error: false,
|
error: false,
|
||||||
message: 'Hello World',
|
message: 'Hello World',
|
||||||
score: this.gameScore + this.currentScore,
|
score: score + this.currentScore,
|
||||||
type: 'game_tournament',
|
type: 'game_tournament',
|
||||||
}),
|
}),
|
||||||
'*',
|
'*',
|
||||||
|
@ -177,9 +182,8 @@ export default class BEConnector extends Singleton<BEConnector>('BEConnector') {
|
||||||
}
|
}
|
||||||
|
|
||||||
public getTicketCanBeMinus() {
|
public getTicketCanBeMinus() {
|
||||||
if (!this.mileStone) return 0;
|
|
||||||
let mileStone = JSON.parse(this.mileStone);
|
let mileStone = JSON.parse(this.mileStone);
|
||||||
let currentScore = this.gameScore;
|
let currentScore = GameManager.instance.score;
|
||||||
let total = this.calculatingTicketToContinue(mileStone, currentScore);
|
let total = this.calculatingTicketToContinue(mileStone, currentScore);
|
||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import { _decorator, CCFloat, Collider2D, Component, Contact2DType, Animation, AudioClip } from 'cc';
|
import { _decorator, CCFloat, Collider2D, Component, Contact2DType, Animation } from 'cc';
|
||||||
import ObjectPool from '../Pool/ObjectPool';
|
import ObjectPool from '../Pool/ObjectPool';
|
||||||
import { EventManger } from '../Manager/EventManger';
|
import { EventManger } from '../Manager/EventManger';
|
||||||
import GameEvent from '../Events/GameEvent';
|
import GameEvent from '../Events/GameEvent';
|
||||||
import IPoolable from '../Pool/IPoolable';
|
import IPoolable from '../Pool/IPoolable';
|
||||||
import Utilities from '../Utilities';
|
import Utilities from '../Utilities';
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('BoosterBase')
|
@ccclass('BoosterBase')
|
||||||
|
@ -13,18 +12,15 @@ export class BoosterBase extends Component implements IPoolable {
|
||||||
protected _collider: Collider2D;
|
protected _collider: Collider2D;
|
||||||
@property({ type: Animation, visible: true })
|
@property({ type: Animation, visible: true })
|
||||||
private _animation: Animation;
|
private _animation: Animation;
|
||||||
|
|
||||||
@property(CCFloat)
|
@property(CCFloat)
|
||||||
protected time: number = 10;
|
protected time: number = 10;
|
||||||
|
|
||||||
protected onLoad(): void {
|
protected onLoad(): void {
|
||||||
this._collider.on(Contact2DType.BEGIN_CONTACT, this.onContactBegin, this);
|
this._collider.on(Contact2DType.BEGIN_CONTACT, this.onContactBegin, this);
|
||||||
this._collider.enabled = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private onContactBegin(self: Collider2D, other: Collider2D) {
|
private onContactBegin(self: Collider2D, other: Collider2D) {
|
||||||
this.boosterActive();
|
this.boosterActive();
|
||||||
this._collider.enabled = false;
|
|
||||||
EventManger.instance.emit(GameEvent.ObjectRelease, this.node);
|
EventManger.instance.emit(GameEvent.ObjectRelease, this.node);
|
||||||
ObjectPool.release(this.node);
|
ObjectPool.release(this.node);
|
||||||
}
|
}
|
||||||
|
@ -36,7 +32,5 @@ export class BoosterBase extends Component implements IPoolable {
|
||||||
await Utilities.delay(this._animation.defaultClip.duration);
|
await Utilities.delay(this._animation.defaultClip.duration);
|
||||||
this._collider.enabled = true;
|
this._collider.enabled = true;
|
||||||
}
|
}
|
||||||
onRelease() {
|
onRelease() {}
|
||||||
this._collider.enabled = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
import { Enum } from 'cc';
|
|
||||||
|
|
||||||
enum ControllerSide {
|
|
||||||
Left,
|
|
||||||
Right,
|
|
||||||
}
|
|
||||||
|
|
||||||
Enum(ControllerSide);
|
|
||||||
|
|
||||||
export default ControllerSide;
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "4.0.23",
|
|
||||||
"importer": "typescript",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "f54090c4-8d37-440f-8fb5-21fb086c47c6",
|
|
||||||
"files": [],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {}
|
|
||||||
}
|
|
|
@ -1,6 +1,5 @@
|
||||||
enum GameState {
|
enum GameState {
|
||||||
Init = 'Init',
|
Init = 'Init',
|
||||||
Ready = 'Ready',
|
|
||||||
Playing = 'Playing',
|
Playing = 'Playing',
|
||||||
GameOver = 'GameOver',
|
GameOver = 'GameOver',
|
||||||
End = 'End',
|
End = 'End',
|
||||||
|
|
|
@ -5,11 +5,7 @@ enum PhysicsGroup {
|
||||||
TRIGGER = 1 << 1,
|
TRIGGER = 1 << 1,
|
||||||
BALL = 1 << 2,
|
BALL = 1 << 2,
|
||||||
BALL_THROWING = 1 << 3,
|
BALL_THROWING = 1 << 3,
|
||||||
BORDER = 1 << 4,
|
ENEMY = 1 << 4,
|
||||||
ENEMY = 1 << 5,
|
|
||||||
FLIPPER = 1 << 6,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Enum(PhysicsGroup);
|
export default Enum(PhysicsGroup);
|
||||||
|
|
||||||
export default PhysicsGroup;
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ enum TimeConfig {
|
||||||
DelayGoal = 2,
|
DelayGoal = 2,
|
||||||
DelayCannonFire = 0.4,
|
DelayCannonFire = 0.4,
|
||||||
DelayCannonDone = 0.5,
|
DelayCannonDone = 0.5,
|
||||||
Tutorial = 20,
|
Tutorial = 10,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default TimeConfig;
|
export default TimeConfig;
|
||||||
|
|
|
@ -1,30 +1,12 @@
|
||||||
import {
|
import { _decorator, CCInteger, clamp, Component, lerp, Sprite, Node, tween, Prefab } from 'cc';
|
||||||
_decorator,
|
|
||||||
CCInteger,
|
|
||||||
clamp,
|
|
||||||
Component,
|
|
||||||
lerp,
|
|
||||||
Sprite,
|
|
||||||
Node,
|
|
||||||
tween,
|
|
||||||
Prefab,
|
|
||||||
Tween,
|
|
||||||
Vec3,
|
|
||||||
AudioClip,
|
|
||||||
randomRange,
|
|
||||||
math,
|
|
||||||
CCFloat,
|
|
||||||
clamp01,
|
|
||||||
ParticleSystem,
|
|
||||||
} from 'cc';
|
|
||||||
import { EventManger } from '../Manager/EventManger';
|
import { EventManger } from '../Manager/EventManger';
|
||||||
import GameEvent from '../Events/GameEvent';
|
import GameEvent from '../Events/GameEvent';
|
||||||
import ScoreType from '../Enum/ScoreType';
|
import ScoreType from '../Enum/ScoreType';
|
||||||
import Utilities from '../Utilities';
|
import Utilities from '../Utilities';
|
||||||
import { GameManager } from '../Manager/GameManager';
|
import { GameManager } from '../Manager/GameManager';
|
||||||
import BoosterType from '../Enum/BoosterType';
|
import BoosterType from '../Enum/BoosterType';
|
||||||
|
import { SpawnObjectManager } from '../Manager/SpawnObjectManager';
|
||||||
import ObjectPool from '../Pool/ObjectPool';
|
import ObjectPool from '../Pool/ObjectPool';
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('CumulativeBar')
|
@ccclass('CumulativeBar')
|
||||||
|
@ -35,47 +17,22 @@ export class CumulativeBar extends Component {
|
||||||
private _maxValue = 1000;
|
private _maxValue = 1000;
|
||||||
@property({ type: Node, visible: true })
|
@property({ type: Node, visible: true })
|
||||||
private _scoreUI: Node;
|
private _scoreUI: Node;
|
||||||
|
|
||||||
@property({ type: Prefab, visible: true })
|
|
||||||
private _starFxObjectPrefab: Prefab;
|
|
||||||
@property({ type: Prefab, visible: true })
|
@property({ type: Prefab, visible: true })
|
||||||
private _scoreObjectPrefab: Prefab;
|
private _scoreObjectPrefab: Prefab;
|
||||||
|
|
||||||
@property({ visible: true })
|
private _pools: ObjectPool;
|
||||||
private _centerOffset: Vec3 = new Vec3();
|
|
||||||
@property({ type: CCFloat, visible: true })
|
|
||||||
private _radius: number = 0;
|
|
||||||
@property({ type: CCFloat, visible: true })
|
|
||||||
private _minAngle: number = 0;
|
|
||||||
@property({ type: CCFloat, visible: true })
|
|
||||||
private _maxAngle: number = 0;
|
|
||||||
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _soundFx;
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _collectStartSoundFx;
|
|
||||||
|
|
||||||
private _starPool: ObjectPool;
|
|
||||||
private _fxPool: ObjectPool;
|
|
||||||
private _currentValue = 0;
|
private _currentValue = 0;
|
||||||
private _fillValue = 0;
|
private _fillValue = 0;
|
||||||
private _active = false;
|
private _active = false;
|
||||||
private _goal = false;
|
private _goal = false;
|
||||||
private _timer = 0;
|
private _timer = 0;
|
||||||
private _multiplier = 1;
|
|
||||||
private _currentValuePosition = new Vec3();
|
|
||||||
private _center = new Vec3();
|
|
||||||
|
|
||||||
protected onLoad(): void {
|
protected onLoad(): void {
|
||||||
this._fillBar.fillRange = 0;
|
this._fillBar.fillRange = 0;
|
||||||
this._starPool = new ObjectPool(this._scoreObjectPrefab, 50, true);
|
this._pools = new ObjectPool(this._scoreObjectPrefab, 10, false);
|
||||||
this._fxPool = new ObjectPool(this._starFxObjectPrefab, 50, true);
|
|
||||||
EventManger.instance.on(GameEvent.Score, this.onScore, this);
|
EventManger.instance.on(GameEvent.Score, this.onScore, this);
|
||||||
EventManger.instance.on(GameEvent.BoosterActive, this.onBoosterActive, this);
|
EventManger.instance.on(GameEvent.BoosterActive, this.onBoosterActive, this);
|
||||||
EventManger.instance.on(GameEvent.BoosterDisable, this.onBoosterDisable, this);
|
EventManger.instance.on(GameEvent.BoosterDisable, this.onBoosterDisable, this);
|
||||||
this._center = this._fillBar.node.getWorldPosition();
|
|
||||||
this._center.add(this._centerOffset);
|
|
||||||
this.calcPositionOnCircleLine(this._minAngle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected update(dt: number): void {
|
protected update(dt: number): void {
|
||||||
|
@ -83,7 +40,7 @@ export class CumulativeBar extends Component {
|
||||||
this._timer += dt;
|
this._timer += dt;
|
||||||
if (this._timer >= 0.1) {
|
if (this._timer >= 0.1) {
|
||||||
this._timer = 0;
|
this._timer = 0;
|
||||||
this._currentValue -= 2;
|
this._currentValue -= 0.5;
|
||||||
|
|
||||||
if (this._currentValue < 0) {
|
if (this._currentValue < 0) {
|
||||||
this._currentValue = 0;
|
this._currentValue = 0;
|
||||||
|
@ -94,51 +51,21 @@ export class CumulativeBar extends Component {
|
||||||
|
|
||||||
if (Math.abs(this._fillValue - this._fillBar.fillRange) >= 0.001) {
|
if (Math.abs(this._fillValue - this._fillBar.fillRange) >= 0.001) {
|
||||||
this._fillBar.fillRange = lerp(this._fillBar.fillRange, this._fillValue, dt * 3);
|
this._fillBar.fillRange = lerp(this._fillBar.fillRange, this._fillValue, dt * 3);
|
||||||
const progress = clamp01(this._fillBar.fillRange / -0.5);
|
|
||||||
const angle = lerp(this._minAngle, this._maxAngle, progress);
|
|
||||||
this.calcPositionOnCircleLine(angle);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async onScore(score: number, points: number, type: ScoreType, position: Vec3) {
|
private async onScore(score: number, points: number, type: ScoreType) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case ScoreType.DestroyObject:
|
case ScoreType.DestroyObject:
|
||||||
if (!this._active) return;
|
if (!this._active) return;
|
||||||
const star = this._starPool.get(this.node);
|
this._currentValue += points;
|
||||||
star.setWorldPosition(position);
|
|
||||||
tween(star)
|
|
||||||
.to(
|
|
||||||
1,
|
|
||||||
{ worldPosition: this._currentValuePosition },
|
|
||||||
{
|
|
||||||
onUpdate: (target: Node, ratio: number) => {
|
|
||||||
target.worldPosition = target.worldPosition.lerp(this._currentValuePosition, ratio);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
)
|
|
||||||
.call(async () => {
|
|
||||||
const fx = this._fxPool.get(ParticleSystem, this.node);
|
|
||||||
fx.node.setWorldPosition(star.worldPosition);
|
|
||||||
this._starPool.release(star);
|
|
||||||
SoundManager.instance.playSfx(this._collectStartSoundFx);
|
|
||||||
await Utilities.waitUntil(() => {
|
|
||||||
return fx.isStopped;
|
|
||||||
}, 0.1);
|
|
||||||
this._fxPool.release(fx);
|
|
||||||
})
|
|
||||||
.start();
|
|
||||||
|
|
||||||
this._multiplier++;
|
|
||||||
this._currentValue += points * this._multiplier;
|
|
||||||
|
|
||||||
if (this._currentValue > this._maxValue) this._currentValue = this._maxValue;
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ScoreType.Goal:
|
case ScoreType.Goal:
|
||||||
if (this._currentValue == 0) return;
|
if (this._currentValue == 0) return;
|
||||||
this._multiplier = 0;
|
|
||||||
this._goal = true;
|
this._goal = true;
|
||||||
await Utilities.delay(1);
|
await Utilities.delay(1);
|
||||||
|
let items = Math.round(this._currentValue / 5);
|
||||||
GameManager.instance.addScore(
|
GameManager.instance.addScore(
|
||||||
Math.round(this._currentValue),
|
Math.round(this._currentValue),
|
||||||
ScoreType.Combo,
|
ScoreType.Combo,
|
||||||
|
@ -149,55 +76,32 @@ export class CumulativeBar extends Component {
|
||||||
duration: 1,
|
duration: 1,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
let items = Math.ceil(this._currentValue / 10);
|
|
||||||
this.playCollectEffect(items);
|
|
||||||
this._goal = false;
|
|
||||||
this._currentValue = 0;
|
this._currentValue = 0;
|
||||||
|
this._goal = false;
|
||||||
|
this.playCollectEffect(items);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this._fillValue = -clamp(this._currentValue / 2 / this._maxValue, 0, 0.5);
|
this._fillValue = -clamp(this._currentValue / 2 / this._maxValue, 0, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async playCollectEffect(items: number) {
|
private async playCollectEffect(items: number) {
|
||||||
const time = 0.04;
|
const time = items < 10 ? 0.05 : 1.5 / items;
|
||||||
const offset = new Vec3();
|
|
||||||
while (items > 0) {
|
while (items > 0) {
|
||||||
const obj = this._starPool.get(this._scoreUI);
|
const obj = this._pools.get(this.node);
|
||||||
Vec3.random(offset, 30);
|
obj.setWorldPosition(this.node.worldPosition);
|
||||||
offset.y = 0;
|
|
||||||
obj.setWorldPosition(this.node.getWorldPosition().add(offset));
|
|
||||||
tween(obj)
|
tween(obj)
|
||||||
.to(randomRange(0.3, 0.4), { worldPosition: this._scoreUI.worldPosition }, { easing: 'sineIn' })
|
.to(0.3, { worldPosition: this._scoreUI.worldPosition })
|
||||||
.call(() => this._starPool.release(obj))
|
.call(() => ObjectPool.release(obj))
|
||||||
.call(() => {
|
|
||||||
Tween.stopAllByTarget(this._scoreUI);
|
|
||||||
tween(this._scoreUI)
|
|
||||||
.set({ scale: Vec3.ONE })
|
|
||||||
.to(0.1, { scale: new Vec3(1.2, 1.2, 1.2) })
|
|
||||||
.set({ scale: Vec3.ONE })
|
|
||||||
.start();
|
|
||||||
})
|
|
||||||
.start();
|
.start();
|
||||||
items--;
|
items--;
|
||||||
SoundManager.instance.playSfx(this._soundFx, 0.5);
|
|
||||||
await Utilities.delay(time);
|
await Utilities.delay(time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private calcPositionOnCircleLine(angle: number) {
|
|
||||||
const rad = math.toRadian(angle);
|
|
||||||
this._currentValuePosition.x = this._center.x + this._radius * -Math.cos(rad);
|
|
||||||
this._currentValuePosition.y = this._center.y + this._radius * Math.sin(rad);
|
|
||||||
}
|
|
||||||
|
|
||||||
private onBoosterActive(type: BoosterType) {
|
private onBoosterActive(type: BoosterType) {
|
||||||
if (type == BoosterType.CumulativeBar) this._active = true;
|
if (type == BoosterType.CumulativeBar) this._active = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private onBoosterDisable(type: BoosterType) {
|
private onBoosterDisable(type: BoosterType) {
|
||||||
if (type == BoosterType.CumulativeBar) {
|
if (type == BoosterType.CumulativeBar) this._active = false;
|
||||||
this._multiplier = 0;
|
|
||||||
this._active = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,6 @@ export class ScoreObject extends Component implements IPoolable {
|
||||||
protected onLoad(): void {
|
protected onLoad(): void {
|
||||||
this._collider.on(Contact2DType.BEGIN_CONTACT, this.onContactBegin, this);
|
this._collider.on(Contact2DType.BEGIN_CONTACT, this.onContactBegin, this);
|
||||||
this._originColor = this._sprite.color.clone();
|
this._originColor = this._sprite.color.clone();
|
||||||
this._collider.enabled = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected update(dt: number): void {
|
protected update(dt: number): void {
|
||||||
|
@ -95,7 +94,6 @@ export class ScoreObject extends Component implements IPoolable {
|
||||||
|
|
||||||
public onRelease() {
|
public onRelease() {
|
||||||
this._isHit = false;
|
this._isHit = false;
|
||||||
this._collider.enabled = false;
|
|
||||||
this.node.angle = 0;
|
this.node.angle = 0;
|
||||||
this.node.setScale(Vec3.ONE);
|
this.node.setScale(Vec3.ONE);
|
||||||
this._sprite.color = this._originColor;
|
this._sprite.color = this._originColor;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { _decorator, Collider2D, Component, Contact2DType, Node, Animation, RigidBody2D, AudioClip } from 'cc';
|
import { _decorator, Collider2D, Component, Contact2DType, Node, Animation, RigidBody2D } from 'cc';
|
||||||
import { CameraController } from './CameraController';
|
import { CameraController } from './CameraController';
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('SlingShot')
|
@ccclass('SlingShot')
|
||||||
|
@ -10,9 +9,6 @@ export default class SlingShot extends Component {
|
||||||
@property({ type: Collider2D, visible: true })
|
@property({ type: Collider2D, visible: true })
|
||||||
private _collider: Collider2D;
|
private _collider: Collider2D;
|
||||||
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _soundFx: AudioClip;
|
|
||||||
|
|
||||||
protected onLoad(): void {
|
protected onLoad(): void {
|
||||||
this._collider.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this);
|
this._collider.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this);
|
||||||
}
|
}
|
||||||
|
@ -20,9 +16,6 @@ export default class SlingShot extends Component {
|
||||||
onBeginContact(self: Collider2D, other: Collider2D) {
|
onBeginContact(self: Collider2D, other: Collider2D) {
|
||||||
this._animation.play();
|
this._animation.play();
|
||||||
const velocity = other.getComponent(RigidBody2D).linearVelocity.length();
|
const velocity = other.getComponent(RigidBody2D).linearVelocity.length();
|
||||||
SoundManager.instance.playSfx(this._soundFx);
|
if (velocity >= 40) CameraController.instance.shake(0.08);
|
||||||
if (velocity >= 40) {
|
|
||||||
CameraController.instance.shake(0.08);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { Node, Vec3 } from 'cc';
|
import { Node } from 'cc';
|
||||||
import GameState from '../Enum/GameState';
|
import GameState from '../Enum/GameState';
|
||||||
import ScoreType from '../Enum/ScoreType';
|
import ScoreType from '../Enum/ScoreType';
|
||||||
import BoosterType from '../Enum/BoosterType';
|
import BoosterType from '../Enum/BoosterType';
|
||||||
import ControllerSide from '../Enum/ControllerSide';
|
import { ControllerSide } from '../GamePlay/Flipper';
|
||||||
|
|
||||||
enum GameEvent {
|
enum GameEvent {
|
||||||
Score,
|
Score,
|
||||||
|
@ -18,7 +18,7 @@ enum GameEvent {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GameEventCallbackMap {
|
export interface GameEventCallbackMap {
|
||||||
[GameEvent.Score]: (score: number, points?: number, type?: ScoreType, position?: Vec3) => void;
|
[GameEvent.Score]: (score: number, points?: number, type?: ScoreType) => void;
|
||||||
[GameEvent.BallOut]: () => void;
|
[GameEvent.BallOut]: () => void;
|
||||||
[GameEvent.MultiBall]: (active: boolean) => void;
|
[GameEvent.MultiBall]: (active: boolean) => void;
|
||||||
[GameEvent.TimeUpdate]: (time: number) => void;
|
[GameEvent.TimeUpdate]: (time: number) => void;
|
||||||
|
@ -31,7 +31,7 @@ export interface GameEventCallbackMap {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GameEventArgMap {
|
export interface GameEventArgMap {
|
||||||
[GameEvent.Score]: [number, number, ScoreType, Vec3];
|
[GameEvent.Score]: [number, number, ScoreType];
|
||||||
[GameEvent.BallOut]: null;
|
[GameEvent.BallOut]: null;
|
||||||
[GameEvent.MultiBall]: boolean;
|
[GameEvent.MultiBall]: boolean;
|
||||||
[GameEvent.TimeUpdate]: number;
|
[GameEvent.TimeUpdate]: number;
|
||||||
|
|
|
@ -9,7 +9,6 @@ import {
|
||||||
Vec2,
|
Vec2,
|
||||||
Animation,
|
Animation,
|
||||||
Vec3,
|
Vec3,
|
||||||
AudioClip,
|
|
||||||
} from 'cc';
|
} from 'cc';
|
||||||
import Utilities from '../Utilities';
|
import Utilities from '../Utilities';
|
||||||
import { Ball } from './Ball';
|
import { Ball } from './Ball';
|
||||||
|
@ -17,7 +16,6 @@ import TimeConfig from '../Enum/TimeConfig';
|
||||||
import { EventManger } from '../Manager/EventManger';
|
import { EventManger } from '../Manager/EventManger';
|
||||||
import GameEvent from '../Events/GameEvent';
|
import GameEvent from '../Events/GameEvent';
|
||||||
import { CameraController } from '../Environments/CameraController';
|
import { CameraController } from '../Environments/CameraController';
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('Cannon')
|
@ccclass('Cannon')
|
||||||
|
@ -28,10 +26,6 @@ export class Cannon extends Component {
|
||||||
private _animation: Animation;
|
private _animation: Animation;
|
||||||
@property({ type: CCInteger, visible: true })
|
@property({ type: CCInteger, visible: true })
|
||||||
private _force = 30;
|
private _force = 30;
|
||||||
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _soundFx: AudioClip;
|
|
||||||
|
|
||||||
@property({ type: EventHandler, visible: true })
|
@property({ type: EventHandler, visible: true })
|
||||||
private onDone: EventHandler[] = [];
|
private onDone: EventHandler[] = [];
|
||||||
|
|
||||||
|
@ -40,7 +34,7 @@ export class Cannon extends Component {
|
||||||
EventManger.instance.on(GameEvent.BallOut, this.onBallOut, this);
|
EventManger.instance.on(GameEvent.BallOut, this.onBallOut, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async onBeginContact(self: Collider2D, other: Collider2D) {
|
private async onBeginContact(seft: Collider2D, other: Collider2D) {
|
||||||
const ball = other.getComponent(Ball);
|
const ball = other.getComponent(Ball);
|
||||||
this._collider.enabled = false;
|
this._collider.enabled = false;
|
||||||
if (ball) {
|
if (ball) {
|
||||||
|
@ -51,7 +45,6 @@ export class Cannon extends Component {
|
||||||
this._animation.play();
|
this._animation.play();
|
||||||
ball.setActiveRigi(true);
|
ball.setActiveRigi(true);
|
||||||
ball.throwBall(new Vec2(0, this._force));
|
ball.throwBall(new Vec2(0, this._force));
|
||||||
SoundManager.instance.playSfx(this._soundFx);
|
|
||||||
await Utilities.delay(TimeConfig.DelayCannonDone);
|
await Utilities.delay(TimeConfig.DelayCannonDone);
|
||||||
tween(this._collider.node).to(0.5, { scale: Vec3.ZERO }, { easing: 'backIn' }).start();
|
tween(this._collider.node).to(0.5, { scale: Vec3.ZERO }, { easing: 'backIn' }).start();
|
||||||
EventHandler.emitEvents(this.onDone, ball);
|
EventHandler.emitEvents(this.onDone, ball);
|
||||||
|
|
|
@ -11,14 +11,11 @@ import {
|
||||||
Collider2D,
|
Collider2D,
|
||||||
Sprite,
|
Sprite,
|
||||||
Contact2DType,
|
Contact2DType,
|
||||||
AudioClip,
|
|
||||||
Tween,
|
|
||||||
} from 'cc';
|
} from 'cc';
|
||||||
import { EventManger } from '../Manager/EventManger';
|
import { EventManger } from '../Manager/EventManger';
|
||||||
import GameEvent from '../Events/GameEvent';
|
import GameEvent from '../Events/GameEvent';
|
||||||
import ScoreType from '../Enum/ScoreType';
|
import ScoreType from '../Enum/ScoreType';
|
||||||
import GameState from '../Enum/GameState';
|
import GameState from '../Enum/GameState';
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('Enemy')
|
@ccclass('Enemy')
|
||||||
|
@ -41,10 +38,6 @@ export class Enemy extends Component {
|
||||||
private _patrolCurve: geometry.AnimationCurve = new geometry.AnimationCurve();
|
private _patrolCurve: geometry.AnimationCurve = new geometry.AnimationCurve();
|
||||||
@property({ type: CCFloat, visible: true })
|
@property({ type: CCFloat, visible: true })
|
||||||
private _multiplierCurve = 100;
|
private _multiplierCurve = 100;
|
||||||
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _hitSound: AudioClip;
|
|
||||||
|
|
||||||
private x: number;
|
private x: number;
|
||||||
private y: number;
|
private y: number;
|
||||||
private _distance: number;
|
private _distance: number;
|
||||||
|
@ -107,10 +100,8 @@ export class Enemy extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
private onBeginContact(self: Collider2D, other: Collider2D) {
|
private onBeginContact(self: Collider2D, other: Collider2D) {
|
||||||
SoundManager.instance.playSfx(this._hitSound);
|
this._sprite.node.setScale(Vec3.ONE);
|
||||||
Tween.stopAllByTarget(this._sprite.node.scale);
|
|
||||||
tween(this._sprite.node.scale)
|
tween(this._sprite.node.scale)
|
||||||
.set(Vec3.ONE)
|
|
||||||
.to(0.1, new Vec3(1.2, 1.2), { easing: 'backInOut' })
|
.to(0.1, new Vec3(1.2, 1.2), { easing: 'backInOut' })
|
||||||
.to(0.5, Vec3.ONE, { easing: 'backOut' })
|
.to(0.5, Vec3.ONE, { easing: 'backOut' })
|
||||||
.start();
|
.start();
|
||||||
|
@ -139,16 +130,10 @@ export class Enemy extends Component {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case GameState.Init:
|
case GameState.Init:
|
||||||
break;
|
break;
|
||||||
case GameState.Ready:
|
|
||||||
break;
|
|
||||||
case GameState.Playing:
|
case GameState.Playing:
|
||||||
this.init();
|
|
||||||
break;
|
break;
|
||||||
case GameState.GameOver:
|
case GameState.GameOver:
|
||||||
break;
|
this.init();
|
||||||
case GameState.Relive:
|
|
||||||
break;
|
|
||||||
case GameState.End:
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,25 +5,23 @@ import {
|
||||||
Collider2D,
|
Collider2D,
|
||||||
Component,
|
Component,
|
||||||
Contact2DType,
|
Contact2DType,
|
||||||
|
Node,
|
||||||
ParticleSystem,
|
ParticleSystem,
|
||||||
Prefab,
|
Prefab,
|
||||||
Animation,
|
|
||||||
} from 'cc';
|
} from 'cc';
|
||||||
import { GameManager } from '../Manager/GameManager';
|
import { GameManager } from '../Manager/GameManager';
|
||||||
import Utilities from '../Utilities';
|
import Utilities from '../Utilities';
|
||||||
import ObjectPool from '../Pool/ObjectPool';
|
import ObjectPool from '../Pool/ObjectPool';
|
||||||
import { Ball } from './Ball';
|
import { Ball } from './Ball';
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
import { SoundManager } from '../Manager/SoundManager';
|
||||||
import { CameraController } from '../Environments/CameraController';
|
|
||||||
import TimeConfig from '../Enum/TimeConfig';
|
import TimeConfig from '../Enum/TimeConfig';
|
||||||
|
import { CameraController } from '../Environments/CameraController';
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('Goal')
|
@ccclass('Goal')
|
||||||
export class Goal extends Component {
|
export class Goal extends Component {
|
||||||
@property({ type: Collider2D, visible: true })
|
@property({ type: Collider2D, visible: true })
|
||||||
private _collider: Collider2D;
|
private _collider: Collider2D;
|
||||||
@property({ type: Animation, visible: true })
|
|
||||||
private _animation: Animation;
|
|
||||||
@property({ type: CCInteger, visible: true })
|
@property({ type: CCInteger, visible: true })
|
||||||
private _score: number;
|
private _score: number;
|
||||||
@property({ type: Prefab, visible: true })
|
@property({ type: Prefab, visible: true })
|
||||||
|
@ -43,7 +41,7 @@ export class Goal extends Component {
|
||||||
if (ball) {
|
if (ball) {
|
||||||
GameManager.instance.goal(this._score, ball.node.getWorldPosition());
|
GameManager.instance.goal(this._score, ball.node.getWorldPosition());
|
||||||
ball.setActiveRigi(false);
|
ball.setActiveRigi(false);
|
||||||
const fx = this._goalFxPool.get(ParticleSystem, this.node);
|
const fx = this._goalFxPool.get(this.node, ParticleSystem);
|
||||||
const pos = ball.node.getWorldPosition();
|
const pos = ball.node.getWorldPosition();
|
||||||
pos.z = 10;
|
pos.z = 10;
|
||||||
fx.node.setWorldPosition(pos);
|
fx.node.setWorldPosition(pos);
|
||||||
|
@ -51,15 +49,8 @@ export class Goal extends Component {
|
||||||
SoundManager.instance.playSfx(this._goalSound);
|
SoundManager.instance.playSfx(this._goalSound);
|
||||||
ObjectPool.release(ball.node);
|
ObjectPool.release(ball.node);
|
||||||
CameraController.instance.shake(0.5);
|
CameraController.instance.shake(0.5);
|
||||||
this.playAnimationGoal();
|
|
||||||
await Utilities.waitUntil(() => fx.isStopped);
|
await Utilities.waitUntil(() => fx.isStopped);
|
||||||
this._goalFxPool.release(fx);
|
this._goalFxPool.release(fx.node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async playAnimationGoal() {
|
|
||||||
this._animation.play(this._animation.clips[1].name);
|
|
||||||
await Utilities.delay(TimeConfig.DelayGoal);
|
|
||||||
this._animation.play();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
import { _decorator, Collider2D, Component, Contact2DType, Vec2, Node, ParticleSystem, Prefab, AudioClip } from 'cc';
|
import { _decorator, Collider2D, Component, Contact2DType, Vec2, Node, ParticleSystem, Prefab } from 'cc';
|
||||||
import { GameManager } from '../Manager/GameManager';
|
import { GameManager } from '../Manager/GameManager';
|
||||||
import Utilities from '../Utilities';
|
import Utilities from '../Utilities';
|
||||||
import { Ball } from './Ball';
|
import { Ball } from './Ball';
|
||||||
import TimeConfig from '../Enum/TimeConfig';
|
import TimeConfig from '../Enum/TimeConfig';
|
||||||
import ObjectPool from '../Pool/ObjectPool';
|
import ObjectPool from '../Pool/ObjectPool';
|
||||||
import { CameraController } from '../Environments/CameraController';
|
import { CameraController } from '../Environments/CameraController';
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('MultiBall')
|
@ccclass('MultiBall')
|
||||||
|
@ -19,9 +18,6 @@ export class MultiBall extends Component {
|
||||||
@property({ type: Prefab, visible: true })
|
@property({ type: Prefab, visible: true })
|
||||||
private _fx: Prefab;
|
private _fx: Prefab;
|
||||||
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _soundFX: AudioClip;
|
|
||||||
|
|
||||||
private _originBall: Ball;
|
private _originBall: Ball;
|
||||||
private _trigged = false;
|
private _trigged = false;
|
||||||
private _fxPool: ObjectPool;
|
private _fxPool: ObjectPool;
|
||||||
|
@ -36,13 +32,16 @@ export class MultiBall extends Component {
|
||||||
CameraController.instance.shake(0.2);
|
CameraController.instance.shake(0.2);
|
||||||
this._originBall.setActiveRigi(true);
|
this._originBall.setActiveRigi(true);
|
||||||
const ball1 = this._originBall;
|
const ball1 = this._originBall;
|
||||||
const ball2 = GameManager.instance.spawnBall(false, false);
|
const ball2 = GameManager.instance.spawnBall(false);
|
||||||
ball1.node.setWorldPosition(this._portRight.worldPosition);
|
ball1.node.setWorldPosition(this._portRight.worldPosition);
|
||||||
ball1.addForce(new Vec2(20, 0));
|
ball1.addForce(new Vec2(20, 0));
|
||||||
|
|
||||||
ball2.node.setWorldPosition(this._portLeft.worldPosition);
|
ball2.node.setWorldPosition(this._portLeft.worldPosition);
|
||||||
ball2.addForce(new Vec2(-20, 0));
|
ball2.addForce(new Vec2(-20, 0));
|
||||||
|
|
||||||
|
ball1.playMultiBallEffect();
|
||||||
|
ball2.playMultiBallEffect();
|
||||||
|
|
||||||
this._trigged = false;
|
this._trigged = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,12 +52,11 @@ export class MultiBall extends Component {
|
||||||
this._originBall = otherCollider.getComponent(Ball);
|
this._originBall = otherCollider.getComponent(Ball);
|
||||||
this._originBall.setActiveRigi(false);
|
this._originBall.setActiveRigi(false);
|
||||||
this._trigged = true;
|
this._trigged = true;
|
||||||
const fx = this._fxPool.get(ParticleSystem, this.node);
|
const fx = this._fxPool.get(this.node, ParticleSystem);
|
||||||
fx.node.setWorldPosition(this.node.worldPosition);
|
fx.node.setWorldPosition(this.node.worldPosition);
|
||||||
SoundManager.instance.playSfx(this._soundFX);
|
|
||||||
await Utilities.delay(TimeConfig.DelayMultiBall);
|
await Utilities.delay(TimeConfig.DelayMultiBall);
|
||||||
this._collider.enabled = true;
|
this._collider.enabled = true;
|
||||||
await Utilities.waitUntil(() => fx.isStopped);
|
await Utilities.waitUntil(() => fx.isStopped);
|
||||||
this._fxPool.release(fx);
|
this._fxPool.release(fx.node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,12 +37,10 @@ export class Ball extends Component implements IPoolable {
|
||||||
private _maxSpeed: number;
|
private _maxSpeed: number;
|
||||||
@property({ type: RigidBody2D, visible: true })
|
@property({ type: RigidBody2D, visible: true })
|
||||||
private _rigidBody: RigidBody2D;
|
private _rigidBody: RigidBody2D;
|
||||||
|
|
||||||
@property({ type: Sprite, visible: true })
|
@property({ type: Sprite, visible: true })
|
||||||
private _sprite: Sprite;
|
private _sprite: Sprite;
|
||||||
@property({ type: Sprite, visible: true })
|
@property({ type: Sprite, visible: true })
|
||||||
private _spriteShadow: Sprite;
|
private _spriteShadow: Sprite;
|
||||||
|
|
||||||
@property({ type: Animation, visible: true })
|
@property({ type: Animation, visible: true })
|
||||||
private _animation: Animation;
|
private _animation: Animation;
|
||||||
@property({ type: ParticleSystem, visible: true })
|
@property({ type: ParticleSystem, visible: true })
|
||||||
|
@ -53,12 +51,10 @@ export class Ball extends Component implements IPoolable {
|
||||||
private _boosterParticle: ParticleSystem;
|
private _boosterParticle: ParticleSystem;
|
||||||
@property({ type: CircleCollider2D, visible: true })
|
@property({ type: CircleCollider2D, visible: true })
|
||||||
private _collider: CircleCollider2D;
|
private _collider: CircleCollider2D;
|
||||||
|
|
||||||
@property({ type: AudioClip, visible: true })
|
@property({ type: AudioClip, visible: true })
|
||||||
private _hitSound: AudioClip;
|
private _hitSound: AudioClip;
|
||||||
@property({ type: AudioClip, visible: true })
|
@property({ type: AudioClip, visible: true })
|
||||||
private _hitFlipperSound: AudioClip;
|
private _ballThrowSound: AudioClip;
|
||||||
|
|
||||||
@property({ type: geometry.AnimationCurve, visible: true })
|
@property({ type: geometry.AnimationCurve, visible: true })
|
||||||
private _jumpCurve: geometry.AnimationCurve = new geometry.AnimationCurve();
|
private _jumpCurve: geometry.AnimationCurve = new geometry.AnimationCurve();
|
||||||
|
|
||||||
|
@ -135,13 +131,11 @@ export class Ball extends Component implements IPoolable {
|
||||||
const point = selfCollider.node.getWorldPosition().add(dir);
|
const point = selfCollider.node.getWorldPosition().add(dir);
|
||||||
hitPoint = new Vec2(point.x, point.y);
|
hitPoint = new Vec2(point.x, point.y);
|
||||||
}
|
}
|
||||||
const hitFx = this._impactPool.get(ParticleSystem, this.node.parent);
|
const hitFx = this._impactPool.get(this.node.parent, ParticleSystem);
|
||||||
hitFx.node.setWorldPosition(new Vec3(hitPoint.x, hitPoint.y, 10));
|
hitFx.node.setWorldPosition(new Vec3(hitPoint.x, hitPoint.y, 10));
|
||||||
SoundManager.instance.playSfx(
|
SoundManager.instance.playSfx(this._hitSound);
|
||||||
otherCollider.group == PhysicsGroup.FLIPPER ? this._hitFlipperSound : this._hitSound,
|
|
||||||
);
|
|
||||||
await Utilities.waitUntil(() => hitFx.isStopped, 0.1);
|
await Utilities.waitUntil(() => hitFx.isStopped, 0.1);
|
||||||
this._impactPool.release(hitFx);
|
this._impactPool.release(hitFx.node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,6 +162,7 @@ export class Ball extends Component implements IPoolable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public throwBall(force: Vec2) {
|
public throwBall(force: Vec2) {
|
||||||
|
SoundManager.instance.playSfx(this._ballThrowSound);
|
||||||
this._collider.group = PhysicsGroup.BALL_THROWING;
|
this._collider.group = PhysicsGroup.BALL_THROWING;
|
||||||
this._rigidBody.group = PhysicsGroup.BALL_THROWING;
|
this._rigidBody.group = PhysicsGroup.BALL_THROWING;
|
||||||
this._rigidBody.applyAngularImpulse(-5 * force.x || 2, true);
|
this._rigidBody.applyAngularImpulse(-5 * force.x || 2, true);
|
||||||
|
|
|
@ -7,17 +7,23 @@ import {
|
||||||
Input,
|
Input,
|
||||||
EventKeyboard,
|
EventKeyboard,
|
||||||
KeyCode,
|
KeyCode,
|
||||||
|
Enum,
|
||||||
Animation,
|
Animation,
|
||||||
Vec3,
|
Vec3,
|
||||||
AudioClip,
|
AnimationState,
|
||||||
} from 'cc';
|
} from 'cc';
|
||||||
import { EventManger } from '../Manager/EventManger';
|
import { EventManger } from '../Manager/EventManger';
|
||||||
import GameEvent from '../Events/GameEvent';
|
import GameEvent from '../Events/GameEvent';
|
||||||
import TimeConfig from '../Enum/TimeConfig';
|
import TimeConfig from '../Enum/TimeConfig';
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
|
||||||
import ControllerSide from '../Enum/ControllerSide';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
|
export enum ControllerSide {
|
||||||
|
Left,
|
||||||
|
Right,
|
||||||
|
}
|
||||||
|
|
||||||
|
Enum(ControllerSide);
|
||||||
|
|
||||||
@ccclass('Flipper')
|
@ccclass('Flipper')
|
||||||
export class Flipper extends Component {
|
export class Flipper extends Component {
|
||||||
@property({ type: Animation, visible: true })
|
@property({ type: Animation, visible: true })
|
||||||
|
@ -31,9 +37,6 @@ export class Flipper extends Component {
|
||||||
@property({ visible: true, type: ControllerSide })
|
@property({ visible: true, type: ControllerSide })
|
||||||
private side = ControllerSide.Left;
|
private side = ControllerSide.Left;
|
||||||
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _activeSound: AudioClip;
|
|
||||||
|
|
||||||
private _timer = 0;
|
private _timer = 0;
|
||||||
private _isAnimationPlaying;
|
private _isAnimationPlaying;
|
||||||
|
|
||||||
|
@ -116,7 +119,6 @@ export class Flipper extends Component {
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
private activeFlipper(): void {
|
private activeFlipper(): void {
|
||||||
SoundManager.instance.playSfx(this._activeSound, 0.5);
|
|
||||||
this._hingeJoint.motorSpeed = this._motorSpeedActive;
|
this._hingeJoint.motorSpeed = this._motorSpeedActive;
|
||||||
}
|
}
|
||||||
private deActiveFlipper(): void {
|
private deActiveFlipper(): void {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import {
|
import {
|
||||||
_decorator,
|
_decorator,
|
||||||
|
Component,
|
||||||
Node,
|
Node,
|
||||||
Prefab,
|
Prefab,
|
||||||
Vec2,
|
Vec2,
|
||||||
|
@ -8,6 +9,7 @@ import {
|
||||||
CCInteger,
|
CCInteger,
|
||||||
AudioClip,
|
AudioClip,
|
||||||
Quat,
|
Quat,
|
||||||
|
game,
|
||||||
EPhysics2DDrawFlags,
|
EPhysics2DDrawFlags,
|
||||||
PhysicsSystem2D,
|
PhysicsSystem2D,
|
||||||
} from 'cc';
|
} from 'cc';
|
||||||
|
@ -38,6 +40,7 @@ window.addEventListener('message', (data) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ccclass('Booster');
|
||||||
class Booster {
|
class Booster {
|
||||||
public type: BoosterType;
|
public type: BoosterType;
|
||||||
public time: number;
|
public time: number;
|
||||||
|
@ -64,23 +67,17 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
@property({ visible: true })
|
@property({ visible: true })
|
||||||
private _ballSpawnPosition: Vec3;
|
private _ballSpawnPosition: Vec3;
|
||||||
@property({ type: CCInteger, visible: true })
|
@property({ type: CCInteger, visible: true })
|
||||||
private readonly _timePlay = 120;
|
private readonly _timePlay = 3;
|
||||||
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _boosterActiveSound: AudioClip;
|
|
||||||
@property({ type: AudioClip, visible: true })
|
@property({ type: AudioClip, visible: true })
|
||||||
private _startSound: AudioClip;
|
private _startSound: AudioClip;
|
||||||
@property({ type: AudioClip, visible: true })
|
@property({ type: AudioClip, visible: true })
|
||||||
private _ballOutSound: AudioClip;
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _backgroundMusic: AudioClip;
|
private _backgroundMusic: AudioClip;
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _gameOverMusic: AudioClip;
|
|
||||||
|
|
||||||
private _ballPool: ObjectPool;
|
private _ballPool: ObjectPool;
|
||||||
private _FloatingScorePool: ObjectPool;
|
private _FloatingScorePool: ObjectPool;
|
||||||
private _gameState: GameState;
|
private _gameState: GameState;
|
||||||
private _timer: number;
|
private _timer: number;
|
||||||
|
@property({ type: Booster, visible: true, readonly: true })
|
||||||
private _boostersActive: Booster[] = [];
|
private _boostersActive: Booster[] = [];
|
||||||
|
|
||||||
private _score = 0;
|
private _score = 0;
|
||||||
|
@ -92,14 +89,6 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
return this._score;
|
return this._score;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get gameTime() {
|
|
||||||
return this._timePlay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public get gameState() {
|
|
||||||
return this._gameState;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected onLoad(): void {
|
protected onLoad(): void {
|
||||||
super.onLoad();
|
super.onLoad();
|
||||||
this._ballPool = new ObjectPool(this._ballPrefab, 10, true, Ball);
|
this._ballPool = new ObjectPool(this._ballPrefab, 10, true, Ball);
|
||||||
|
@ -109,11 +98,15 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
|
|
||||||
protected start(): void {
|
protected start(): void {
|
||||||
this.changeGameState(GameState.Init);
|
this.changeGameState(GameState.Init);
|
||||||
BEConnector.instance.getInfo();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected update(dt: number): void {
|
protected update(dt: number): void {
|
||||||
if (this._gameState != GameState.Playing) return;
|
if (this._gameState != GameState.Playing) return;
|
||||||
|
this._timer -= dt;
|
||||||
|
if (this._timer <= 0) {
|
||||||
|
this._timer = 0;
|
||||||
|
this.gameOver();
|
||||||
|
}
|
||||||
|
|
||||||
for (let i = 0; i < this._boostersActive.length; i++) {
|
for (let i = 0; i < this._boostersActive.length; i++) {
|
||||||
const booster = this._boostersActive[i];
|
const booster = this._boostersActive[i];
|
||||||
|
@ -123,6 +116,8 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
EventManger.instance.emit(GameEvent.BoosterDisable, booster.type);
|
EventManger.instance.emit(GameEvent.BoosterDisable, booster.type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EventManger.instance.emit(GameEvent.TimeUpdate, this._timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async changeGameState(state: GameState) {
|
private async changeGameState(state: GameState) {
|
||||||
|
@ -133,15 +128,14 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
case GameState.Init:
|
case GameState.Init:
|
||||||
BEConnector.instance.authenticate();
|
BEConnector.instance.authenticate();
|
||||||
break;
|
break;
|
||||||
case GameState.Ready:
|
|
||||||
break;
|
|
||||||
case GameState.Playing:
|
case GameState.Playing:
|
||||||
this.countTime();
|
|
||||||
BEConnector.instance.ticketMinus('auth');
|
BEConnector.instance.ticketMinus('auth');
|
||||||
break;
|
break;
|
||||||
case GameState.GameOver:
|
case GameState.GameOver:
|
||||||
break;
|
break;
|
||||||
case GameState.End:
|
case GameState.End:
|
||||||
|
await Utilities.delay(3);
|
||||||
|
BEConnector.instance.postScoreToServer(this._score);
|
||||||
break;
|
break;
|
||||||
case GameState.Relive:
|
case GameState.Relive:
|
||||||
BEConnector.instance.ticketMinus('revive');
|
BEConnector.instance.ticketMinus('revive');
|
||||||
|
@ -158,30 +152,18 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
opts: { scaleMin: number; scaleMax: number; duration: number },
|
opts: { scaleMin: number; scaleMax: number; duration: number },
|
||||||
) {
|
) {
|
||||||
this._score += score;
|
this._score += score;
|
||||||
const floatingScore = this._FloatingScorePool.get(FloatingText, this._floatingTextContainer);
|
const floatingScore = this._FloatingScorePool.get(this._floatingTextContainer, FloatingText);
|
||||||
floatingScore.show(`+${score}`, position, score >= 100 ? opts.scaleMax : opts.scaleMin, opts.duration);
|
floatingScore.show(`+${score}`, position, score >= 100 ? opts.scaleMax : opts.scaleMin, opts.duration);
|
||||||
EventManger.instance.emit(GameEvent.Score, [this._score, score, type, position]);
|
EventManger.instance.emit(GameEvent.Score, [this._score, score, type]);
|
||||||
}
|
|
||||||
|
|
||||||
private async countTime() {
|
|
||||||
while (this.gameState == GameState.Playing) {
|
|
||||||
this._timer--;
|
|
||||||
|
|
||||||
if (this._timer <= 0) {
|
|
||||||
this._timer = 0;
|
|
||||||
this.gameOver();
|
|
||||||
}
|
|
||||||
EventManger.instance.emit(GameEvent.TimeUpdate, this._timer);
|
|
||||||
await Utilities.delay(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private setCurrentBallInGame(value: number) {
|
private setCurrentBallInGame(value: number) {
|
||||||
this._currentBallInGame += value;
|
this._currentBallInGame += value;
|
||||||
if (this._currentBallInGame >= 2) {
|
if (this._currentBallInGame >= 2) {
|
||||||
|
if (!this._isMultiBall) {
|
||||||
this._isMultiBall = true;
|
this._isMultiBall = true;
|
||||||
EventManger.instance.emit(GameEvent.MultiBall, true);
|
EventManger.instance.emit(GameEvent.MultiBall, true);
|
||||||
this._ballPool.actives.forEach((ball) => ball.getComponent(Ball).playMultiBallEffect());
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._currentBallInGame <= 0) {
|
if (this._currentBallInGame <= 0) {
|
||||||
|
@ -192,11 +174,11 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public spawnBall(throwBall: boolean, playStartSound: boolean = true): Ball {
|
public spawnBall(throwBall: boolean): Ball {
|
||||||
if (this._gameState != GameState.Playing) return;
|
if (this._gameState != GameState.Playing) return;
|
||||||
if (playStartSound) SoundManager.instance.playSfx(this._startSound);
|
SoundManager.instance.playSfx(this._startSound);
|
||||||
this.setCurrentBallInGame(1);
|
this.setCurrentBallInGame(1);
|
||||||
const ball = this._ballPool.get(Ball, this._ballHolder);
|
const ball = this._ballPool.get(this._ballHolder, Ball);
|
||||||
ball.init(this._boostersActive.length > 0);
|
ball.init(this._boostersActive.length > 0);
|
||||||
ball.node.setRotation(Quat.IDENTITY);
|
ball.node.setRotation(Quat.IDENTITY);
|
||||||
ball.node.setPosition(this._ballSpawnPosition);
|
ball.node.setPosition(this._ballSpawnPosition);
|
||||||
|
@ -214,7 +196,6 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
this.setCurrentBallInGame(-1);
|
this.setCurrentBallInGame(-1);
|
||||||
if (this._currentBallInGame <= 0) {
|
if (this._currentBallInGame <= 0) {
|
||||||
EventManger.instance.emit(GameEvent.BallOut, null);
|
EventManger.instance.emit(GameEvent.BallOut, null);
|
||||||
SoundManager.instance.playSfx(this._ballOutSound);
|
|
||||||
for (let i = 0; i < this._boostersActive.length; i++) {
|
for (let i = 0; i < this._boostersActive.length; i++) {
|
||||||
const booster = this._boostersActive[i];
|
const booster = this._boostersActive[i];
|
||||||
EventManger.instance.emit(GameEvent.BoosterDisable, booster.type);
|
EventManger.instance.emit(GameEvent.BoosterDisable, booster.type);
|
||||||
|
@ -250,44 +231,32 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
}
|
}
|
||||||
if (bonusTime) {
|
if (bonusTime) {
|
||||||
this.addTime(bonusTime);
|
this.addTime(bonusTime);
|
||||||
const floatingScore = this._FloatingScorePool.get(FloatingText, this._floatingTextContainer);
|
const floatingScore = this._FloatingScorePool.get(this._floatingTextContainer, FloatingText);
|
||||||
floatingScore.show(`+${bonusTime}⏰`, position, 1.5);
|
floatingScore.show(`+${bonusTime}⏰`, position, 1.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public addTime(time: number) {
|
public addTime(time: number) {
|
||||||
this._timer += time;
|
this._timer += time;
|
||||||
EventManger.instance.emit(GameEvent.TimeUpdate, this._timer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public gameOver() {
|
public gameOver() {
|
||||||
this._ballPool.releaseAll();
|
|
||||||
for (let i = 0; i < this._boostersActive.length; i++) {
|
|
||||||
const booster = this._boostersActive[i];
|
|
||||||
EventManger.instance.emit(GameEvent.BoosterDisable, booster.type);
|
|
||||||
}
|
|
||||||
this._boostersActive = [];
|
|
||||||
SoundManager.instance.playBGM(this._gameOverMusic);
|
|
||||||
BEConnector.instance.gameScore = this.score;
|
|
||||||
if (this.isReplayed) {
|
if (this.isReplayed) {
|
||||||
this.changeGameState(GameState.End);
|
this.changeGameState(GameState.End);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.isReplayed = true;
|
this.isReplayed = true;
|
||||||
|
this._ballPool.releaseAll();
|
||||||
this.changeGameState(GameState.GameOver);
|
this.changeGameState(GameState.GameOver);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Ready() {
|
|
||||||
SoundManager.instance.playBGM(this._backgroundMusic, 1);
|
|
||||||
this.changeGameState(GameState.Ready);
|
|
||||||
}
|
|
||||||
|
|
||||||
public async play() {
|
public async play() {
|
||||||
this._timer = this._timePlay + TimeConfig.DelayPLay;
|
this._timer = this._timePlay + TimeConfig.DelayPLay;
|
||||||
this._score = 0;
|
this._score = 0;
|
||||||
this._currentBallInGame = 0;
|
this._currentBallInGame = 0;
|
||||||
this._isMultiBall = false;
|
this._isMultiBall = false;
|
||||||
|
SoundManager.instance.playBGM(this._backgroundMusic, 0.5);
|
||||||
this.changeGameState(GameState.Playing);
|
this.changeGameState(GameState.Playing);
|
||||||
await Utilities.delay(TimeConfig.DelayPLay);
|
await Utilities.delay(TimeConfig.DelayPLay);
|
||||||
this.spawnBall(true);
|
this.spawnBall(true);
|
||||||
|
@ -295,16 +264,16 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
|
|
||||||
public async gameRelive() {
|
public async gameRelive() {
|
||||||
this.changeGameState(GameState.Relive);
|
this.changeGameState(GameState.Relive);
|
||||||
this._timer = this._timePlay + TimeConfig.DelayPLay;
|
this._timer = 60 + TimeConfig.DelayPLay;
|
||||||
this._currentBallInGame = 0;
|
this._currentBallInGame = 0;
|
||||||
this._isMultiBall = false;
|
this._isMultiBall = false;
|
||||||
SoundManager.instance.playBGM(this._backgroundMusic, 1);
|
SoundManager.instance.playBGM(this._backgroundMusic, 0.5);
|
||||||
this.changeGameState(GameState.Playing);
|
this.changeGameState(GameState.Playing);
|
||||||
await Utilities.delay(TimeConfig.DelayPLay);
|
await Utilities.delay(TimeConfig.DelayPLay);
|
||||||
this.spawnBall(true);
|
this.spawnBall(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async ActiveBooster(type: BoosterType, time: number) {
|
public ActiveBooster(type: BoosterType, time: number) {
|
||||||
//check booster already active
|
//check booster already active
|
||||||
for (let i = 0; i < this._boostersActive.length; i++) {
|
for (let i = 0; i < this._boostersActive.length; i++) {
|
||||||
const booster = this._boostersActive[i];
|
const booster = this._boostersActive[i];
|
||||||
|
@ -312,6 +281,5 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
}
|
}
|
||||||
this._boostersActive.push(new Booster(type, time));
|
this._boostersActive.push(new Booster(type, time));
|
||||||
EventManger.instance.emit(GameEvent.BoosterActive, type);
|
EventManger.instance.emit(GameEvent.BoosterActive, type);
|
||||||
SoundManager.instance.playSfx(this._boosterActiveSound);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,15 +23,9 @@ class SoundSource {
|
||||||
} else {
|
} else {
|
||||||
this.source.volume = this.volume;
|
this.source.volume = this.volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._mute = value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public play() {
|
public play() {
|
||||||
if (this.source.playing) {
|
|
||||||
this.source.playOneShot(this.source.clip, this.mute ? 0 : this.volume);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.source.play();
|
this.source.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,19 +39,19 @@ export class SoundManager extends Singleton<SoundManager>('SoundManager') {
|
||||||
private _audioSourcesSfx: { [key: string]: SoundSource } = {};
|
private _audioSourcesSfx: { [key: string]: SoundSource } = {};
|
||||||
private _audioSourceBgm: SoundSource;
|
private _audioSourceBgm: SoundSource;
|
||||||
|
|
||||||
private _isMute = false;
|
private isMute = false;
|
||||||
|
|
||||||
public toggleMute(): boolean {
|
public toggleMute(): boolean {
|
||||||
this._isMute = !this._isMute;
|
this.isMute = !this.isMute;
|
||||||
this.setMute(this._isMute);
|
this.setMute(this.isMute);
|
||||||
return this._isMute;
|
return this.isMute;
|
||||||
}
|
}
|
||||||
|
|
||||||
public setMute(mute: boolean) {
|
public setMute(mute: boolean) {
|
||||||
this._isMute = mute;
|
this.isMute = mute;
|
||||||
this._audioSourceBgm.mute = this._isMute;
|
this._audioSourceBgm.mute = this.isMute;
|
||||||
for (const key in this._audioSourcesSfx) {
|
for (const key in this._audioSourcesSfx) {
|
||||||
this._audioSourcesSfx[key].mute = this._isMute;
|
this._audioSourcesSfx[key].mute = this.isMute;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +65,7 @@ export class SoundManager extends Singleton<SoundManager>('SoundManager') {
|
||||||
this._audioSourceBgm.volume = volume;
|
this._audioSourceBgm.volume = volume;
|
||||||
this._audioSourceBgm.source.clip = audio;
|
this._audioSourceBgm.source.clip = audio;
|
||||||
this._audioSourceBgm.source.loop = loop;
|
this._audioSourceBgm.source.loop = loop;
|
||||||
this._audioSourceBgm.mute = this._isMute;
|
this._audioSourceBgm.mute = this.isMute;
|
||||||
this._audioSourceBgm.play();
|
this._audioSourceBgm.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,6 +76,10 @@ export class SoundManager extends Singleton<SoundManager>('SoundManager') {
|
||||||
soundSource.volume = volume;
|
soundSource.volume = volume;
|
||||||
soundSource.source.loop = loop;
|
soundSource.source.loop = loop;
|
||||||
if (loop) return;
|
if (loop) return;
|
||||||
|
if (soundSource.source.playing) {
|
||||||
|
soundSource.source.playOneShot(audioClip, this.isMute ? 0 : volume);
|
||||||
|
return;
|
||||||
|
}
|
||||||
soundSource.play();
|
soundSource.play();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -92,7 +90,7 @@ export class SoundManager extends Singleton<SoundManager>('SoundManager') {
|
||||||
soundSource.source.clip = audioClip;
|
soundSource.source.clip = audioClip;
|
||||||
soundSource.source.loop = loop;
|
soundSource.source.loop = loop;
|
||||||
soundSource.source.volume = volume;
|
soundSource.source.volume = volume;
|
||||||
soundSource.mute = this._isMute;
|
soundSource.mute = this.isMute;
|
||||||
this._audioSourcesSfx[audioClip.uuid] = soundSource;
|
this._audioSourcesSfx[audioClip.uuid] = soundSource;
|
||||||
soundSource.play();
|
soundSource.play();
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,8 +160,6 @@ export class SpawnObjectManager extends Component {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case GameState.Init:
|
case GameState.Init:
|
||||||
break;
|
break;
|
||||||
case GameState.Ready:
|
|
||||||
break;
|
|
||||||
case GameState.Playing:
|
case GameState.Playing:
|
||||||
this._playing = true;
|
this._playing = true;
|
||||||
if (this._isReplay) return;
|
if (this._isReplay) return;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { Component, Node, Prefab, director, instantiate } from 'cc';
|
import { Component, Node, Prefab, director, instantiate } from 'cc';
|
||||||
import IPoolable from './IPoolable';
|
import IPoolable from './IPoolable';
|
||||||
|
import { error } from 'cc';
|
||||||
|
|
||||||
export default class ObjectPool {
|
export default class ObjectPool {
|
||||||
private _inactive: Node[] = [];
|
private _inactive: Node[] = [];
|
||||||
|
@ -8,15 +9,7 @@ export default class ObjectPool {
|
||||||
private _expandable;
|
private _expandable;
|
||||||
private _poolHandlerComp: new () => any;
|
private _poolHandlerComp: new () => any;
|
||||||
|
|
||||||
public get actives() {
|
private get all() {
|
||||||
return [...this._actives];
|
|
||||||
}
|
|
||||||
|
|
||||||
public get inActives() {
|
|
||||||
return [...this._inactive];
|
|
||||||
}
|
|
||||||
|
|
||||||
public get all() {
|
|
||||||
return [...this._actives, ...this._inactive];
|
return [...this._actives, ...this._inactive];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,24 +50,14 @@ export default class ObjectPool {
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
public get(parent?: Node): Node;
|
public get(parent?: Node): Node;
|
||||||
public get<T extends Component>(classConstructor: new () => T): T;
|
public get<T extends Component>(parent?: Node, classConstructor?: new () => T): T;
|
||||||
public get<T extends Component>(classConstructor: new () => T, parent: Node): T;
|
public get<T extends Component>(parent?: Node, classConstructor?: new () => T): T | Node {
|
||||||
public get<T extends Component>(a?: (new () => T) | Node, b?: Node): T | Node {
|
|
||||||
if (!!!this._prefab) {
|
if (!!!this._prefab) {
|
||||||
console.error('prefab cant be null or undefine');
|
console.error('prefab cant be null or undefine');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let parent: Node;
|
|
||||||
let classConstructor: new () => T;
|
|
||||||
if (a instanceof Node) {
|
|
||||||
parent = a || director.getScene();
|
|
||||||
} else {
|
|
||||||
parent = b || director.getScene();
|
|
||||||
classConstructor = a;
|
|
||||||
}
|
|
||||||
|
|
||||||
let obj: Node = null;
|
let obj: Node = null;
|
||||||
|
let p = parent || director.getScene();
|
||||||
if (this._inactive.length > 0) {
|
if (this._inactive.length > 0) {
|
||||||
// Pop the last object in pool
|
// Pop the last object in pool
|
||||||
obj = this._inactive.pop();
|
obj = this._inactive.pop();
|
||||||
|
@ -87,13 +70,14 @@ export default class ObjectPool {
|
||||||
obj.removeFromParent();
|
obj.removeFromParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.setParent(parent);
|
obj.setParent(p);
|
||||||
this._actives.push(obj);
|
this._actives.push(obj);
|
||||||
// Invoke pool handler
|
// Invoke pool handler
|
||||||
const handler = this._poolHandlerComp ? obj.getComponent(this._poolHandlerComp) : null;
|
const handler = this._poolHandlerComp ? obj.getComponent(this._poolHandlerComp) : null;
|
||||||
if (handler) {
|
if (handler) {
|
||||||
(handler as unknown as IPoolable)?.onGet();
|
(handler as unknown as IPoolable)?.onGet();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (classConstructor) {
|
if (classConstructor) {
|
||||||
return handler == classConstructor ? handler : obj.getComponent(classConstructor);
|
return handler == classConstructor ? handler : obj.getComponent(classConstructor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import { Component, Node } from 'cc';
|
import { Component, Node } from 'cc';
|
||||||
|
|
||||||
export default function Singleton<T>(componentName?: string) {
|
export default function Singleton<T>(component?: string) {
|
||||||
class Singleton extends Component {
|
class Singleton extends Component {
|
||||||
//singleton
|
//singleton
|
||||||
private static _instance: T = null;
|
private static _instance: T = null;
|
||||||
public static get instance(): T {
|
public static get instance(): T {
|
||||||
if (componentName && !Singleton._instance) {
|
if (component && !Singleton._instance) {
|
||||||
Singleton._instance = new Node(componentName).addComponent(componentName) as T;
|
Singleton._instance = new Node(component).addComponent(component) as T;
|
||||||
}
|
}
|
||||||
return Singleton._instance;
|
return Singleton._instance;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
import { _decorator, Button, Component, Node } from 'cc';
|
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
|
||||||
const { ccclass, property } = _decorator;
|
|
||||||
|
|
||||||
@ccclass('ButonSound')
|
|
||||||
export class ButonSound extends Component {
|
|
||||||
@property({ type: Node, visible: true })
|
|
||||||
private _unMute: Node;
|
|
||||||
@property({ type: Node, visible: true })
|
|
||||||
private _mute: Node;
|
|
||||||
|
|
||||||
public clickBtn() {
|
|
||||||
const mute = SoundManager.instance.toggleMute();
|
|
||||||
this._mute.active = mute;
|
|
||||||
this._unMute.active = !mute;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "4.0.23",
|
|
||||||
"importer": "typescript",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "fe6191ed-117d-4e42-aee8-78008aac035d",
|
|
||||||
"files": [],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {}
|
|
||||||
}
|
|
|
@ -1,98 +1,23 @@
|
||||||
import { _decorator, AudioClip, Component, Label, Node, Prefab, randomRange, Tween, tween, Vec3 } from 'cc';
|
import { _decorator, Component, Label, Node } from 'cc';
|
||||||
import BEConnector from '../API/BEConnector';
|
import BEConnector from '../API/BEConnector';
|
||||||
import { GameManager } from '../Manager/GameManager';
|
import { GameManager } from '../Manager/GameManager';
|
||||||
import ObjectPool from '../Pool/ObjectPool';
|
|
||||||
import Utilities from '../Utilities';
|
|
||||||
import { EventManger } from '../Manager/EventManger';
|
|
||||||
import GameEvent from '../Events/GameEvent';
|
|
||||||
import GameState from '../Enum/GameState';
|
|
||||||
import { SoundManager } from '../Manager/SoundManager';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('GameOverPanel')
|
@ccclass('GameOverPanel')
|
||||||
export class GameOverPanel extends Component {
|
export class GameOverPanel extends Component {
|
||||||
@property(Label) private topScore: Label = null;
|
@property(Label) private topScore: Label = null;
|
||||||
@property(Label) private yourScore: Label = null;
|
@property(Label) private yourScore: Label = null;
|
||||||
|
@property(Node) private confirmPanel: Node = null;
|
||||||
@property({ type: Label, visible: true })
|
|
||||||
private _ticketMinus: Label;
|
|
||||||
|
|
||||||
@property({ type: Node, visible: true })
|
|
||||||
private _buyTicketBtn: Node;
|
|
||||||
@property({ type: Node, visible: true })
|
|
||||||
private _quitBtn: Node;
|
|
||||||
|
|
||||||
@property({ type: Node, visible: true })
|
|
||||||
private _scoreUI: Node;
|
|
||||||
@property({ type: Prefab, visible: true })
|
|
||||||
private _scorePrefab: Prefab;
|
|
||||||
|
|
||||||
@property({ type: AudioClip, visible: true })
|
|
||||||
private _soundCollectCoinFx: AudioClip;
|
|
||||||
|
|
||||||
private _pool: ObjectPool;
|
|
||||||
private _active = false;
|
|
||||||
private _clicked = false;
|
|
||||||
private _end = false;
|
|
||||||
|
|
||||||
protected onLoad(): void {
|
|
||||||
this._pool = new ObjectPool(this._scorePrefab, 100, true);
|
|
||||||
EventManger.instance.on(GameEvent.GameStateChange, this.onGameStateChange, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected onEnable(): void {
|
protected onEnable(): void {
|
||||||
this._ticketMinus.string = '-' + BEConnector.instance.getTicketCanBeMinus().toString();
|
let currentScore = BEConnector.instance.currentScore + GameManager.instance.score;
|
||||||
this.topScore.string = BEConnector.instance.maxScore.toString();
|
this.topScore.string = BEConnector.instance.maxScore.toString();
|
||||||
this.yourScore.string = BEConnector.instance.currentScore.toString();
|
this.yourScore.string = currentScore.toString();
|
||||||
const gameScore = GameManager.instance.score;
|
|
||||||
const currentScore = BEConnector.instance.currentScore;
|
|
||||||
this.playCollectEffect(gameScore, currentScore);
|
|
||||||
this.scheduleOnce(this.endGame, 60);
|
this.scheduleOnce(this.endGame, 60);
|
||||||
this._active = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private async onGameStateChange(state: GameState) {
|
|
||||||
switch (state) {
|
|
||||||
case GameState.Init:
|
|
||||||
break;
|
|
||||||
case GameState.Ready:
|
|
||||||
break;
|
|
||||||
case GameState.Playing:
|
|
||||||
break;
|
|
||||||
case GameState.GameOver:
|
|
||||||
break;
|
|
||||||
case GameState.End:
|
|
||||||
this._buyTicketBtn.active = false;
|
|
||||||
this._quitBtn.active = false;
|
|
||||||
this._end = true;
|
|
||||||
if (this._active) {
|
|
||||||
await Utilities.delay(1);
|
|
||||||
BEConnector.instance.postScoreToServer();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case GameState.Relive:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onClickYesButton() {
|
onClickYesButton() {
|
||||||
if (this._clicked) return;
|
this.confirmPanel.active = true;
|
||||||
this._clicked = true;
|
|
||||||
if (BEConnector.instance.canRelive()) {
|
|
||||||
BEConnector.instance
|
|
||||||
.checkGameScoreTicket()
|
|
||||||
.then(() => {
|
|
||||||
this._clicked = false;
|
|
||||||
GameManager.instance.gameRelive();
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this._clicked = false;
|
|
||||||
GameManager.instance.gameOver();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this._clicked = false;
|
|
||||||
BEConnector.instance.postMessage();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onClickNoButton() {
|
onClickNoButton() {
|
||||||
|
@ -100,56 +25,10 @@ export class GameOverPanel extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected onDisable(): void {
|
protected onDisable(): void {
|
||||||
this._active = false;
|
|
||||||
this.unschedule(this.endGame);
|
this.unschedule(this.endGame);
|
||||||
}
|
}
|
||||||
|
|
||||||
private endGame() {
|
private endGame() {
|
||||||
GameManager.instance.gameOver();
|
GameManager.instance.gameOver();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async playCollectEffect(gameScore: number, currentScore: number) {
|
|
||||||
if (!this._active) {
|
|
||||||
let x = 10;
|
|
||||||
let items = Math.ceil(gameScore / x);
|
|
||||||
if (items >= 50) {
|
|
||||||
items = 50;
|
|
||||||
x = Math.round(gameScore / items);
|
|
||||||
}
|
|
||||||
const time = 0.04;
|
|
||||||
const totalScore = gameScore + currentScore;
|
|
||||||
let score = currentScore;
|
|
||||||
const target = this.yourScore.node.getWorldPosition();
|
|
||||||
for (let i = 0; i < items; i++) {
|
|
||||||
score += x;
|
|
||||||
score = score > totalScore ? totalScore : score;
|
|
||||||
const obj = this._pool.get(this._scoreUI);
|
|
||||||
obj.setWorldPosition(this._scoreUI.worldPosition);
|
|
||||||
tween(obj)
|
|
||||||
.to(randomRange(0.2, 0.3), { worldPosition: target }, { easing: 'sineIn' })
|
|
||||||
.call(() => this._pool.release(obj))
|
|
||||||
.call(() => {
|
|
||||||
Tween.stopAllByTarget(this.yourScore);
|
|
||||||
tween(this.yourScore.node)
|
|
||||||
.to(0.1, { scale: new Vec3(1.3, 1.3, 1.3) })
|
|
||||||
.call(async () => {
|
|
||||||
if (i == items - 1) {
|
|
||||||
this.yourScore.string = totalScore.toString();
|
|
||||||
if (this._end) {
|
|
||||||
await Utilities.delay(1);
|
|
||||||
BEConnector.instance.postScoreToServer();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.yourScore.string = score.toString();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.set({ scale: Vec3.ONE })
|
|
||||||
.start();
|
|
||||||
})
|
|
||||||
.start();
|
|
||||||
SoundManager.instance.playSfx(this._soundCollectCoinFx);
|
|
||||||
await Utilities.delay(time);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
import { _decorator, Color, Component, Label, Node, Sprite } from 'cc';
|
|
||||||
const { ccclass, property } = _decorator;
|
|
||||||
|
|
||||||
@ccclass('LeaderBoardItem')
|
|
||||||
export class LeaderBoardItem extends Component {
|
|
||||||
@property({ type: Sprite, visible: true })
|
|
||||||
private _bg: Sprite;
|
|
||||||
@property({ type: Label, visible: true })
|
|
||||||
private _scoreText: Label;
|
|
||||||
@property({ type: Label, visible: true })
|
|
||||||
private _topText: Label;
|
|
||||||
@property({ visible: true })
|
|
||||||
private _highLightColor: Color = new Color();
|
|
||||||
|
|
||||||
public init(top: number, score: number, isPlayer: boolean) {
|
|
||||||
if (isPlayer) {
|
|
||||||
this._bg.color = this._highLightColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
this._topText.string = top.toString();
|
|
||||||
this._scoreText.string = score.toString();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "4.0.23",
|
|
||||||
"importer": "typescript",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "552d1839-40da-4e78-8054-9b75abd49e5c",
|
|
||||||
"files": [],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {}
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
import { _decorator, Animation, Component, Node } from 'cc';
|
|
||||||
import Utilities from '../Utilities';
|
|
||||||
const { ccclass, property } = _decorator;
|
|
||||||
|
|
||||||
@ccclass('StartScreenController')
|
|
||||||
export class StartScreenController extends Component {
|
|
||||||
@property({ type: Animation, visible: true })
|
|
||||||
private _animation: Animation;
|
|
||||||
|
|
||||||
protected async start() {
|
|
||||||
this._animation.play();
|
|
||||||
await Utilities.waitUntil(() => !this._animation.getState(this._animation.defaultClip.name).isPlaying);
|
|
||||||
this._animation.play(this._animation.clips[1].name);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "4.0.23",
|
|
||||||
"importer": "typescript",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "5a60366c-0615-4d08-a867-59e4b4fa3ac6",
|
|
||||||
"files": [],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {}
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { _decorator, Component, Input, Node } from 'cc';
|
import { _decorator, Component, Input, Node } from 'cc';
|
||||||
import { EventManger } from '../Manager/EventManger';
|
import { EventManger } from '../Manager/EventManger';
|
||||||
import GameEvent from '../Events/GameEvent';
|
import GameEvent from '../Events/GameEvent';
|
||||||
import ControllerSide from '../Enum/ControllerSide';
|
import { ControllerSide } from '../GamePlay/Flipper';
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('TouchController')
|
@ccclass('TouchController')
|
||||||
|
|
|
@ -1,23 +1,7 @@
|
||||||
import {
|
import { _decorator, Component, EventKeyboard, EventTouch, input, Input, KeyCode, Node, Tween, tween, Vec3 } from 'cc';
|
||||||
_decorator,
|
|
||||||
Component,
|
|
||||||
EventKeyboard,
|
|
||||||
EventTouch,
|
|
||||||
input,
|
|
||||||
Input,
|
|
||||||
KeyCode,
|
|
||||||
Node,
|
|
||||||
ParticleSystem,
|
|
||||||
Tween,
|
|
||||||
tween,
|
|
||||||
Vec3,
|
|
||||||
} from 'cc';
|
|
||||||
import { GameManager } from '../Manager/GameManager';
|
import { GameManager } from '../Manager/GameManager';
|
||||||
import TimeConfig from '../Enum/TimeConfig';
|
import TimeConfig from '../Enum/TimeConfig';
|
||||||
import Utilities from '../Utilities';
|
import Utilities from '../Utilities';
|
||||||
import { EventManger } from '../Manager/EventManger';
|
|
||||||
import GameEvent from '../Events/GameEvent';
|
|
||||||
import GameState from '../Enum/GameState';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('TutorialController')
|
@ccclass('TutorialController')
|
||||||
|
@ -27,28 +11,32 @@ export class TutorialController extends Component {
|
||||||
@property({ type: Node, visible: true })
|
@property({ type: Node, visible: true })
|
||||||
private _tapR: Node;
|
private _tapR: Node;
|
||||||
|
|
||||||
@property({ type: ParticleSystem, visible: true })
|
|
||||||
private _tapLEffect: ParticleSystem;
|
|
||||||
@property({ type: ParticleSystem, visible: true })
|
|
||||||
private _tapREffect: ParticleSystem;
|
|
||||||
|
|
||||||
private _timer = 0;
|
private _timer = 0;
|
||||||
private _showed = false;
|
private _showed = false;
|
||||||
private _canShow = true;
|
|
||||||
private _playing = false;
|
|
||||||
|
|
||||||
protected onLoad(): void {
|
protected onLoad(): void {
|
||||||
this.node.on(Input.EventType.TOUCH_START, this.onTouchStart, this);
|
this.node.on(Input.EventType.TOUCH_START, this.onTouchStart, this);
|
||||||
input.on(Input.EventType.KEY_UP, this.onKeyInputUpStart, this);
|
input.on(Input.EventType.KEY_UP, this.onKeyInputUpStart, this);
|
||||||
EventManger.instance.on(GameEvent.GameStateChange, this.onGameStateChange, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected start() {
|
protected async start() {
|
||||||
|
tween(this._tapL)
|
||||||
|
.by(0.5, { position: new Vec3(0, 50), scale: new Vec3(-0.1, -0.1) }, { easing: 'quintOut' })
|
||||||
|
.by(0.5, { position: new Vec3(0, -50), scale: new Vec3(0.1, 0.1) }, { easing: 'sineOut' })
|
||||||
|
.union()
|
||||||
|
.repeatForever()
|
||||||
|
.start();
|
||||||
|
await Utilities.delay(0.5);
|
||||||
|
tween(this._tapR)
|
||||||
|
.by(0.5, { position: new Vec3(0, 50), scale: new Vec3(-0.1, -0.1) }, { easing: 'quintOut' })
|
||||||
|
.by(0.5, { position: new Vec3(0, -50), scale: new Vec3(0.1, 0.1) }, { easing: 'sineOut' })
|
||||||
|
.union()
|
||||||
|
.repeatForever()
|
||||||
|
.start();
|
||||||
this.playTutorial();
|
this.playTutorial();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected update(dt: number): void {
|
protected update(dt: number): void {
|
||||||
if (!this._playing) return;
|
|
||||||
this._timer += dt;
|
this._timer += dt;
|
||||||
if (!this._showed && this._timer > TimeConfig.Tutorial) {
|
if (!this._showed && this._timer > TimeConfig.Tutorial) {
|
||||||
this._showed = true;
|
this._showed = true;
|
||||||
|
@ -56,51 +44,12 @@ export class TutorialController extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private onGameStateChange(state: GameState) {
|
private playTutorial() {
|
||||||
switch (state) {
|
|
||||||
case GameState.Playing:
|
|
||||||
this._playing = true;
|
|
||||||
break;
|
|
||||||
case GameState.GameOver:
|
|
||||||
case GameState.End:
|
|
||||||
this._playing = false;
|
|
||||||
this._canShow = false;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
this._canShow = true;
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private async playTutorial() {
|
|
||||||
if (this._canShow) {
|
|
||||||
this._tapL.active = true;
|
this._tapL.active = true;
|
||||||
this._tapR.active = true;
|
this._tapR.active = true;
|
||||||
|
|
||||||
tween(this._tapL)
|
|
||||||
.call(() => this._tapLEffect.clear())
|
|
||||||
.by(0.5, { position: new Vec3(0, 50), scale: new Vec3(-0.1, -0.1) }, { easing: 'quintOut' })
|
|
||||||
.by(0.5, { position: new Vec3(0, -50), scale: new Vec3(0.1, 0.1) }, { easing: 'sineOut' })
|
|
||||||
.call(() => this._tapLEffect.play())
|
|
||||||
.union()
|
|
||||||
.repeatForever()
|
|
||||||
.start();
|
|
||||||
await Utilities.delay(0.5);
|
|
||||||
tween(this._tapR)
|
|
||||||
.call(() => this._tapREffect.clear())
|
|
||||||
.by(0.5, { position: new Vec3(0, 50), scale: new Vec3(-0.1, -0.1) }, { easing: 'quintOut' })
|
|
||||||
.by(0.5, { position: new Vec3(0, -50), scale: new Vec3(0.1, 0.1) }, { easing: 'sineOut' })
|
|
||||||
.call(() => this._tapREffect.play())
|
|
||||||
.union()
|
|
||||||
.repeatForever()
|
|
||||||
.start();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private stopTutorial() {
|
private stopTutorial() {
|
||||||
Tween.stopAllByTarget(this._tapL);
|
|
||||||
Tween.stopAllByTarget(this._tapR);
|
|
||||||
this._timer = 0;
|
this._timer = 0;
|
||||||
this._showed = false;
|
this._showed = false;
|
||||||
this._tapL.active = false;
|
this._tapL.active = false;
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
import { _decorator, Color, Component, Label, LabelOutline, Node, ParticleSystem, Tween, tween, Vec3 } from 'cc';
|
import { _decorator, Component, Label, Node, ParticleSystem, Tween, tween, Vec3 } from 'cc';
|
||||||
import { EventManger } from '../Manager/EventManger';
|
import { EventManger } from '../Manager/EventManger';
|
||||||
import GameEvent from '../Events/GameEvent';
|
import GameEvent from '../Events/GameEvent';
|
||||||
import ScoreType from '../Enum/ScoreType';
|
import ScoreType from '../Enum/ScoreType';
|
||||||
import GameState from '../Enum/GameState';
|
import GameState from '../Enum/GameState';
|
||||||
import { GameManager } from '../Manager/GameManager';
|
import { GameManager } from '../Manager/GameManager';
|
||||||
import BEConnector from '../API/BEConnector';
|
import BEConnector from '../API/BEConnector';
|
||||||
import Utilities from '../Utilities';
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('UIController')
|
@ccclass('UIController')
|
||||||
|
@ -13,21 +12,25 @@ export class UIController extends Component {
|
||||||
@property({ type: Label, visible: true })
|
@property({ type: Label, visible: true })
|
||||||
private _scoreLabel: Label;
|
private _scoreLabel: Label;
|
||||||
@property({ type: Label, visible: true })
|
@property({ type: Label, visible: true })
|
||||||
private _ticketLabel: Label;
|
|
||||||
@property({ type: Label, visible: true })
|
|
||||||
private _timeLabel: Label;
|
|
||||||
@property({ type: Label, visible: true })
|
|
||||||
private _eventLabel: Label;
|
private _eventLabel: Label;
|
||||||
|
@property({ type: Label, visible: true })
|
||||||
|
private _resultLabel: Label;
|
||||||
|
@property({ type: Label, visible: true })
|
||||||
|
private _resultTotalLabel: Label;
|
||||||
|
|
||||||
@property({ type: ParticleSystem, visible: true })
|
@property({ type: ParticleSystem, visible: true })
|
||||||
private _buffFx: ParticleSystem;
|
private _buffFx: ParticleSystem;
|
||||||
|
|
||||||
@property({ type: Node, visible: true })
|
@property({ type: Node, visible: true })
|
||||||
private _controlPanel: Node;
|
private _tutorialPanel: Node;
|
||||||
@property({ type: Node, visible: true })
|
@property({ type: Node, visible: true })
|
||||||
private _startPanel: Node;
|
private _startPanel: Node;
|
||||||
@property({ type: Node, visible: true })
|
@property({ type: Node, visible: true })
|
||||||
private _overPanel: Node;
|
private _overPanel: Node;
|
||||||
|
@property({ type: Label, visible: true })
|
||||||
|
private _timeLabe: Label;
|
||||||
|
@property({ type: Node, visible: true })
|
||||||
|
private _resultPanel: Node = null;
|
||||||
|
|
||||||
protected async onLoad() {
|
protected async onLoad() {
|
||||||
EventManger.instance.on(GameEvent.Score, this.onScore, this);
|
EventManger.instance.on(GameEvent.Score, this.onScore, this);
|
||||||
|
@ -41,25 +44,21 @@ export class UIController extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async onScore(score: number, points: number, type: ScoreType) {
|
private async onScore(score: number, points: number, type: ScoreType) {
|
||||||
this._scoreLabel.string = score.toString();
|
this._scoreLabel.string = `Score: ${score}`;
|
||||||
if (type == ScoreType.Goal) {
|
if (type == ScoreType.Goal) {
|
||||||
this.showEventLabel('GOAL!!!');
|
this.showEventLabel('GOAL!!!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private onBallOut() {
|
private onBallOut() {
|
||||||
this.showEventLabel('BALL OUT!!!', new Color('#ed3a18'), Color.WHITE);
|
this.showEventLabel('BALL OUT!!!');
|
||||||
}
|
}
|
||||||
|
|
||||||
private showEventLabel(string: string, color?: Color, outLineColor?: Color) {
|
private showEventLabel(string: string) {
|
||||||
this._eventLabel.string = string;
|
this._eventLabel.string = string;
|
||||||
this._eventLabel.color = color || new Color('#FFFF00');
|
|
||||||
|
|
||||||
this._eventLabel.getComponent(LabelOutline).color = outLineColor || new Color('#FF6600');
|
|
||||||
|
|
||||||
Tween.stopAllByTarget(this._eventLabel.node);
|
Tween.stopAllByTarget(this._eventLabel.node);
|
||||||
|
this._eventLabel.node.setScale(Vec3.ZERO);
|
||||||
tween(this._eventLabel.node)
|
tween(this._eventLabel.node)
|
||||||
.set({ scale: Vec3.ZERO })
|
|
||||||
.to(0.2, { scale: Vec3.ONE }, { easing: 'backOut' })
|
.to(0.2, { scale: Vec3.ONE }, { easing: 'backOut' })
|
||||||
.delay(1)
|
.delay(1)
|
||||||
.to(
|
.to(
|
||||||
|
@ -75,38 +74,30 @@ export class UIController extends Component {
|
||||||
.start();
|
.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async onGameStateChange(state: GameState) {
|
private onGameStateChange(state: GameState) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case GameState.Init:
|
case GameState.Init:
|
||||||
this._startPanel.active = true;
|
this._startPanel.active = true;
|
||||||
this._ticketLabel.string = BEConnector.instance.numberTicket.toString();
|
|
||||||
this._scoreLabel.string = '0';
|
|
||||||
this._timeLabel.string = this.secondsToTime(GameManager.instance.gameTime);
|
|
||||||
break;
|
|
||||||
case GameState.Ready:
|
|
||||||
this._controlPanel.active = true;
|
|
||||||
this._startPanel.active = false;
|
|
||||||
break;
|
break;
|
||||||
case GameState.Playing:
|
case GameState.Playing:
|
||||||
|
this._scoreLabel.string = 'Score: 0';
|
||||||
this._overPanel.active = false;
|
this._overPanel.active = false;
|
||||||
this._ticketLabel.string = BEConnector.instance.numberTicket.toString();
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case GameState.GameOver:
|
case GameState.GameOver:
|
||||||
this.showEventLabel('TIME UP!!!', new Color('#ed3a18'), Color.WHITE);
|
|
||||||
await Utilities.delay(1.2);
|
|
||||||
this._buffFx.stop();
|
this._buffFx.stop();
|
||||||
this._overPanel.active = true;
|
this._overPanel.active = true;
|
||||||
|
this._resultLabel.string = this._scoreLabel.string;
|
||||||
break;
|
break;
|
||||||
case GameState.End:
|
case GameState.End:
|
||||||
this.showEventLabel('TIME UP!!!', new Color('#ed3a18'), Color.WHITE);
|
this._overPanel.active = false;
|
||||||
await Utilities.delay(1.2);
|
this._resultPanel.active = true;
|
||||||
this._overPanel.active = true;
|
this._resultLabel.string = GameManager.instance.score.toString();
|
||||||
|
this._resultTotalLabel.string = (
|
||||||
|
GameManager.instance.score + BEConnector.instance.currentScore
|
||||||
|
).toString();
|
||||||
break;
|
break;
|
||||||
case GameState.Relive:
|
case GameState.Relive:
|
||||||
this._overPanel.active = false;
|
this._overPanel.active = false;
|
||||||
this._ticketLabel.string = BEConnector.instance.numberTicket.toString();
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -119,7 +110,7 @@ export class UIController extends Component {
|
||||||
|
|
||||||
public onBoosterActive() {
|
public onBoosterActive() {
|
||||||
this._buffFx.play();
|
this._buffFx.play();
|
||||||
this.showEventLabel('CHEESE!!!', new Color('#ffb517'), new Color('#ec830a'));
|
this.showEventLabel('BOOSTER NAME!!!');
|
||||||
}
|
}
|
||||||
|
|
||||||
public onBoosterDisable() {
|
public onBoosterDisable() {
|
||||||
|
@ -127,21 +118,25 @@ export class UIController extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
public starGame() {
|
public starGame() {
|
||||||
GameManager.instance.Ready();
|
this._tutorialPanel.active = true;
|
||||||
|
this._startPanel.active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private onTimeUpdate(time: number) {
|
private onTimeUpdate(time: number) {
|
||||||
this._timeLabel.string = this.secondsToTime(time);
|
this._timeLabe.string = this.secondsToTime(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
private secondsToTime(second: number) {
|
private secondsToTime(second: number) {
|
||||||
const m = Math.floor((second - (second % 60)) / 60)
|
const h = Math.floor(second / 3600)
|
||||||
.toString()
|
.toString()
|
||||||
.padStart(2, '0');
|
.padStart(2, '0'),
|
||||||
const s = Math.floor(second % 60)
|
m = Math.floor((second % 3600) / 60)
|
||||||
|
.toString()
|
||||||
|
.padStart(2, '0'),
|
||||||
|
s = Math.floor(second % 60)
|
||||||
.toString()
|
.toString()
|
||||||
.padStart(2, '0');
|
.padStart(2, '0');
|
||||||
|
|
||||||
return m + ':' + s;
|
return h + ':' + m + ':' + s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
"ver": "1.0.0",
|
"ver": "1.0.0",
|
||||||
"importer": "audio-clip",
|
"importer": "audio-clip",
|
||||||
"imported": true,
|
"imported": true,
|
||||||
"uuid": "40b027bb-9e2f-40e5-85a7-cd32e2ad51af",
|
"uuid": "6a432293-3852-4267-be19-c671f36fe9f0",
|
||||||
"files": [
|
"files": [
|
||||||
".json",
|
".json",
|
||||||
".mp3"
|
".mp3"
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
"ver": "1.0.0",
|
"ver": "1.0.0",
|
||||||
"importer": "audio-clip",
|
"importer": "audio-clip",
|
||||||
"imported": true,
|
"imported": true,
|
||||||
"uuid": "bab45dd0-83c3-45fe-958c-5a21a4c4a5bb",
|
"uuid": "97c8a166-c717-41bd-837f-bd1733e2ee1c",
|
||||||
"files": [
|
"files": [
|
||||||
".json",
|
".json",
|
||||||
".mp3"
|
".mp3"
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
"ver": "1.0.0",
|
"ver": "1.0.0",
|
||||||
"importer": "audio-clip",
|
"importer": "audio-clip",
|
||||||
"imported": true,
|
"imported": true,
|
||||||
"uuid": "a76cc94a-6331-47e7-b8aa-0caeea6a79eb",
|
"uuid": "b8e26fea-3d75-4254-8fe6-4a57c40d6121",
|
||||||
"files": [
|
"files": [
|
||||||
".json",
|
".json",
|
||||||
".mp3"
|
".mp3"
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
"ver": "1.0.0",
|
"ver": "1.0.0",
|
||||||
"importer": "audio-clip",
|
"importer": "audio-clip",
|
||||||
"imported": true,
|
"imported": true,
|
||||||
"uuid": "90fc5275-7ce7-4e86-a757-0674c4fe8f18",
|
"uuid": "fc66df28-6c8c-4915-adbd-5a3da652cfc6",
|
||||||
"files": [
|
"files": [
|
||||||
".json",
|
".json",
|
||||||
".mp3"
|
".mp3"
|
Binary file not shown.
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"ver": "1.0.0",
|
||||||
|
"importer": "audio-clip",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "5318386a-c072-4982-b604-d79513736912",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".mp3"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {
|
||||||
|
"downloadMode": 0
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"ver": "1.0.0",
|
||||||
|
"importer": "audio-clip",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "1f602e14-2769-4903-b4d2-b0977eeaf36b",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".mp3"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {
|
||||||
|
"downloadMode": 0
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "4dba398c-e777-4670-8b1b-76b3fbfb4625",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "c4a1c16a-96e4-4e8a-9188-cf42b4f35f73",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "65a023cb-b98f-4470-ba2d-4eba9fe184fe",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "1ac12acc-dde3-4d31-9106-dfc30c030d40",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "ac21d2c4-7749-4701-af6a-b4ac4b43e7a5",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
"ver": "1.0.0",
|
"ver": "1.0.0",
|
||||||
"importer": "audio-clip",
|
"importer": "audio-clip",
|
||||||
"imported": true,
|
"imported": true,
|
||||||
"uuid": "4ce9d2c6-98c5-4d05-94af-70193bb795fe",
|
"uuid": "d93b45ca-fea1-4d38-b460-170b6b65ae08",
|
||||||
"files": [
|
"files": [
|
||||||
".json",
|
".json",
|
||||||
".mp3"
|
".mp3"
|
||||||
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "ac267249-4228-4a86-b4d4-39f84a210668",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "b122d38e-ecf1-42e2-8b26-c09d306d90d9",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "d3b9a148-5c8e-41f4-9e87-c09175e20b2d",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "87e078a9-1082-4700-bd78-e6d0a06a150d",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "8602f38f-d976-4e2b-baa2-621a62f20261",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.0",
|
|
||||||
"importer": "audio-clip",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "015d5eb5-b790-46d8-a580-b35ecb94caf3",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".mp3"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"downloadMode": 0
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"ver": "1.0.0",
|
||||||
|
"importer": "audio-clip",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "6452248b-259c-4844-b0e1-70f47d69955e",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".mp3"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {
|
||||||
|
"downloadMode": 0
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.1.0",
|
|
||||||
"importer": "directory",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "c8d16e87-7802-4c25-a930-edd7ed3a4ff4",
|
|
||||||
"files": [],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"compressionType": {},
|
|
||||||
"isRemoteBundle": {}
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue