diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9d08a1a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..3c95d8f --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "trailingComma": "none", + "singleQuote": true, + "semi": true, + "tabWidth": 2, + "printWidth": 120 +} diff --git a/assets/Scene/Coin_fly_to_wallet.meta b/assets/Scene/Coin_fly_to_wallet.meta new file mode 100644 index 0000000..fa438cb --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.1", + "uuid": "47d13c36-a8ef-4048-8886-c7f20ea310d1", + "isSubpackage": false, + "subpackageName": "", + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Anim.meta b/assets/Scene/Coin_fly_to_wallet/Anim.meta new file mode 100644 index 0000000..8a9268f --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Anim.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.1", + "uuid": "2fe09b25-f8d3-4224-be15-24be6c15c6cd", + "isSubpackage": false, + "subpackageName": "", + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Anim/coin.anim b/assets/Scene/Coin_fly_to_wallet/Anim/coin.anim new file mode 100644 index 0000000..d6d6e9e --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Anim/coin.anim @@ -0,0 +1,55 @@ +{ + "__type__": "cc.AnimationClip", + "_name": "coin", + "_objFlags": 0, + "_native": "", + "_duration": 1, + "sample": 6, + "speed": 1, + "wrapMode": 2, + "curveData": { + "comps": { + "cc.Sprite": { + "spriteFrame": [ + { + "frame": 0, + "value": { + "__uuid__": "28bb2e6a-615d-49b8-a336-b9da8d2a2171" + } + }, + { + "frame": 0.16666666666666666, + "value": { + "__uuid__": "a2f151c4-4849-46a2-8de3-cf3daf82786d" + } + }, + { + "frame": 0.3333333333333333, + "value": { + "__uuid__": "7c516296-1a47-4557-967b-cb755c885c0b" + } + }, + { + "frame": 0.5, + "value": { + "__uuid__": "3b00549c-9d1c-479f-9a4a-3c5a65d8dd19" + } + }, + { + "frame": 0.6666666666666666, + "value": { + "__uuid__": "101f2e9d-800b-4a4a-b470-ac3b9a7f343b" + } + }, + { + "frame": 0.8333333333333334, + "value": { + "__uuid__": "61a9a149-e55f-4fc5-8368-1f809db4d86a" + } + } + ] + } + } + }, + "events": [] +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Anim/coin.anim.meta b/assets/Scene/Coin_fly_to_wallet/Anim/coin.anim.meta new file mode 100644 index 0000000..b2ca43f --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Anim/coin.anim.meta @@ -0,0 +1,5 @@ +{ + "ver": "2.1.0", + "uuid": "c05a7266-2da0-4fc5-95fe-6fc1eea52cd0", + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.fire b/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.fire new file mode 100644 index 0000000..f4a3bb6 --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.fire @@ -0,0 +1,1326 @@ +[ + { + "__type__": "cc.SceneAsset", + "_name": "", + "_objFlags": 0, + "_native": "", + "scene": { + "__id__": 1 + } + }, + { + "__type__": "cc.Scene", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": false, + "_components": [], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_is3DNode": true, + "_groupIndex": 0, + "groupIndex": 0, + "autoReleaseAssets": false, + "_id": "e59f7c21-d36e-47ba-82ef-810c834009a2" + }, + { + "__type__": "cc.Node", + "_name": "Canvas", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + }, + { + "__id__": 5 + }, + { + "__id__": 8 + }, + { + "__id__": 13 + }, + { + "__id__": 18 + } + ], + "_active": true, + "_components": [ + { + "__id__": 26 + }, + { + "__id__": 27 + }, + { + "__id__": 28 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1334, + "height": 750 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 667, + 375, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "a5esZu+45LA5mBpvttspPD" + }, + { + "__type__": "cc.Node", + "_name": "Main Camera", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1334, + "height": 750 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 452.93128617926146, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "e1WoFrQ79G7r4ZuQE3HlNb" + }, + { + "__type__": "cc.Camera", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "_cullingMask": 4294967295, + "_clearFlags": 7, + "_backgroundColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_depth": -1, + "_zoomRatio": 1, + "_targetTexture": null, + "_fov": 60, + "_orthoSize": 10, + "_nearClip": 1, + "_farClip": 4096, + "_ortho": true, + "_rect": { + "__type__": "cc.Rect", + "x": 0, + "y": 0, + "width": 1, + "height": 1 + }, + "_renderStages": 1, + "_alignWithScreen": true, + "_id": "81GN3uXINKVLeW4+iKSlim" + }, + { + "__type__": "cc.Node", + "_name": "bg", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 6 + }, + { + "__id__": 7 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 27, + "g": 38, + "b": 46, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1334, + "height": 750 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "00F0kzwPtFUp6Fox2IOPqo" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "94HeC7Of9P8638e1qv3jrg" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 45, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_verticalCenter": 0, + "_horizontalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_id": "f6QBkPo0hIDZjThThlflZf" + }, + { + "__type__": "cc.Node", + "_name": "start", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 9 + }, + { + "__id__": 11 + } + ], + "_active": true, + "_components": [], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -300, + 95.14, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "52xUNxtmtGvqd5YBq8AZFZ" + }, + { + "__type__": "cc.Node", + "_name": "gold", + "_objFlags": 0, + "_parent": { + "__id__": 8 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 10 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 60, + "height": 60 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "05anmlpXZIzoffOD2KIYQs" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 9 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "28bb2e6a-615d-49b8-a336-b9da8d2a2171" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": { + "__uuid__": "1a062e1b-0e93-4cff-be58-9517555b09f5" + }, + "_id": "d88kOzl3RA1Ic23XqP/OWe" + }, + { + "__type__": "cc.Node", + "_name": "label", + "_objFlags": 0, + "_parent": { + "__id__": 8 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 12 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 64, + "height": 40.32 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -70, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "2f0kLNONBAIam6NRuhF+1s" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_useOriginalSize": false, + "_string": "起点", + "_N$string": "起点", + "_fontSize": 32, + "_lineHeight": 32, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_styleFlags": 0, + "_underlineHeight": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "6bbczas2JAU7UazJkCwTTi" + }, + { + "__type__": "cc.Node", + "_name": "end", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 14 + }, + { + "__id__": 16 + } + ], + "_active": true, + "_components": [], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 300, + 95.14, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "71M8ZIHd5DtqAY5hRtCcBQ" + }, + { + "__type__": "cc.Node", + "_name": "gold", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 15 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 60, + "height": 60 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "7edjmZ8+lBvKx/JCv1z6Xf" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 14 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "28bb2e6a-615d-49b8-a336-b9da8d2a2171" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": { + "__uuid__": "1a062e1b-0e93-4cff-be58-9517555b09f5" + }, + "_id": "a60x7v9l5N2qp4UW+8zJIp" + }, + { + "__type__": "cc.Node", + "_name": "label", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 17 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 64, + "height": 40.32 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -70, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "aeY5g+qqdCTYufUGxTWsH2" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 16 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_useOriginalSize": false, + "_string": "终点", + "_N$string": "终点", + "_fontSize": 32, + "_lineHeight": 32, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_styleFlags": 0, + "_underlineHeight": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "83cCaBpPxFW65Tz3TleSQe" + }, + { + "__type__": "cc.Node", + "_name": "button", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 19 + } + ], + "_active": true, + "_components": [ + { + "__id__": 24 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -182.768, + 0, + 0, + 0, + 0, + 1, + 1.5, + 1.5, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "007RB00AJKuIO0fvTbQJBe" + }, + { + "__type__": "cc.Node", + "_name": "Background", + "_objFlags": 0, + "_parent": { + "__id__": 18 + }, + "_children": [ + { + "__id__": 20 + } + ], + "_active": true, + "_components": [ + { + "__id__": 22 + }, + { + "__id__": 23 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "91ApaQT21JLoQr83ocyUeC" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 0, + "_parent": { + "__id__": 19 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 21 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "c5ctoPGbxBaIYqMtaIgBaE" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 20 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_useOriginalSize": false, + "_string": "执行动画", + "_N$string": "执行动画", + "_fontSize": 20, + "_lineHeight": 40, + "_enableWrapText": false, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_styleFlags": 0, + "_underlineHeight": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 1, + "_N$cacheMode": 0, + "_id": "9fby5YeM9G2JwdsuRw1D2d" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "953iJuge5L3pGw2fFAyWSv" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "alignMode": 0, + "_target": null, + "_alignFlags": 45, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_verticalCenter": 0, + "_horizontalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 40, + "_id": "e4e7q4L0VCKapSaMMvyoX/" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 18 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 25 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 2, + "transition": 2, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 230, + "g": 230, + "b": 230, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 120, + "g": 120, + "b": 120, + "a": 200 + }, + "_N$normalSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_N$pressedSprite": { + "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" + }, + "pressedSprite": { + "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" + }, + "_N$hoverSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "hoverSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_N$disabledSprite": { + "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" + }, + "_N$target": { + "__id__": 19 + }, + "_id": "e1Ax1KeOZEKqdQUswJZy0h" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 2 + }, + "component": "", + "_componentId": "e54affUF7NGeZytNFcwLhOd", + "handler": "playAnim", + "customEventData": "" + }, + { + "__type__": "cc.Canvas", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_designResolution": { + "__type__": "cc.Size", + "width": 1334, + "height": 750 + }, + "_fitWidth": false, + "_fitHeight": true, + "_id": "59Cd0ovbdF4byw5sbjJDx7" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 45, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_verticalCenter": 0, + "_horizontalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 0, + "_id": "29zXboiXFBKoIV4PQ2liTe" + }, + { + "__type__": "e54affUF7NGeZytNFcwLhOd", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "startPoint": { + "__id__": 8 + }, + "endPoint": { + "__id__": 13 + }, + "coinPrefab": { + "__uuid__": "fca82ecc-ae07-410f-8658-ce7fc8e9d2d3" + }, + "_id": "19OydPA8RHhq3BvIJz8gRw" + } +] \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.fire.meta b/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.fire.meta new file mode 100644 index 0000000..a460674 --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.fire.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.2.6", + "uuid": "e59f7c21-d36e-47ba-82ef-810c834009a2", + "asyncLoadAssets": false, + "autoReleaseAssets": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.ts b/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.ts new file mode 100644 index 0000000..2faf2ff --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.ts @@ -0,0 +1,93 @@ +const { ccclass, property } = cc._decorator; + +@ccclass +export default class Coin_fly_to_wallet extends cc.Component { + @property(cc.Node) + startPoint: cc.Node = null; + @property(cc.Node) + endPoint: cc.Node = null; + @property(cc.Prefab) + coinPrefab: cc.Prefab = null; + + coinPool: cc.NodePool = null; + + onLoad() { + this.coinPool = new cc.NodePool(); + this.initCoinPool(); + } + + initCoinPool(count: number = 20) { + for (let i = 0; i < count; i++) { + let coin = cc.instantiate(this.coinPrefab); + this.coinPool.put(coin); + } + } + + playAnim() { + let randomCount = Math.random() * 15 + 10; + let stPos = this.startPoint.getPosition(); + let edPos = this.endPoint.getPosition(); + this.playCoinFlyAnim(randomCount, stPos, edPos); + } + + playCoinFlyAnim(count: number, stPos: cc.Vec2, edPos: cc.Vec2, r: number = 130) { + // 确保当前节点池有足够的金币 + const poolSize = this.coinPool.size(); + const reCreateCoinCount = poolSize > count ? 0 : count - poolSize; + this.initCoinPool(reCreateCoinCount); + + // 生成圆,并且对圆上的点进行排序 + let points = this.getCirclePoints(r, stPos, count); + let coinNodeList = points.map(pos => { + let coin = this.coinPool.get(); + coin.setPosition(stPos); + this.node.addChild(coin); + return { + node: coin, + stPos: stPos, + mdPos: pos, + edPos: edPos, + dis: (pos as any).sub(edPos).mag() + }; + }); + coinNodeList = coinNodeList.sort((a, b) => { + if (a.dis - b.dis > 0) return 1; + if (a.dis - b.dis < 0) return -1; + return 0; + }); + + // 执行金币落袋的动画 + coinNodeList.forEach((item, idx) => { + item.node.runAction( + cc.sequence( + cc.moveTo(0.3, item.mdPos), + cc.delayTime(idx * 0.01), + cc.moveTo(0.5, item.edPos), + cc.callFunc(() => { + this.coinPool.put(item.node); + }) + ) + ); + }); + } + + /** + * 以某点为圆心,生成圆周上等分点的坐标 + * + * @param {number} r 半径 + * @param {cc.Vec2} pos 圆心坐标 + * @param {number} count 等分点数量 + * @param {number} [randomScope=80] 等分点的随机波动范围 + * @returns {cc.Vec2[]} 返回等分点坐标 + */ + getCirclePoints(r: number, pos: cc.Vec2, count: number, randomScope: number = 60): cc.Vec2[] { + let points = []; + let radians = (Math.PI / 180) * Math.round(360 / count); + for (let i = 0; i < count; i++) { + let x = pos.x + r * Math.sin(radians * i); + let y = pos.y + r * Math.cos(radians * i); + points.unshift(cc.v3(x + Math.random() * randomScope, y + Math.random() * randomScope, 0)); + } + return points; + } +} diff --git a/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.ts.meta b/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.ts.meta new file mode 100644 index 0000000..99224c8 --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Coin_fly_to_wallet.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "e54af7d4-17b3-4679-9cad-3457302e139d", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Prefab.meta b/assets/Scene/Coin_fly_to_wallet/Prefab.meta new file mode 100644 index 0000000..579f504 --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Prefab.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.1", + "uuid": "aef1340b-5d54-4592-9d0d-283220ebf9cb", + "isSubpackage": false, + "subpackageName": "", + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Prefab/coin.prefab b/assets/Scene/Coin_fly_to_wallet/Prefab/coin.prefab new file mode 100644 index 0000000..76e447f --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Prefab/coin.prefab @@ -0,0 +1,143 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false, + "readonly": false + }, + { + "__type__": "cc.Node", + "_name": "coin", + "_objFlags": 0, + "_parent": null, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 2 + }, + { + "__id__": 3 + } + ], + "_prefab": { + "__id__": 4 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 60, + "height": 60 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "28bb2e6a-615d-49b8-a336-b9da8d2a2171" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": { + "__uuid__": "1a062e1b-0e93-4cff-be58-9517555b09f5" + }, + "_id": "" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_defaultClip": { + "__uuid__": "c05a7266-2da0-4fc5-95fe-6fc1eea52cd0" + }, + "_clips": [ + { + "__uuid__": "c05a7266-2da0-4fc5-95fe-6fc1eea52cd0" + } + ], + "playOnLoad": true, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "fca82ecc-ae07-410f-8658-ce7fc8e9d2d3" + }, + "fileId": "f9P6h6OM9Glbsc4bkBmFtn", + "sync": false + } +] \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Prefab/coin.prefab.meta b/assets/Scene/Coin_fly_to_wallet/Prefab/coin.prefab.meta new file mode 100644 index 0000000..c3ff597 --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Prefab/coin.prefab.meta @@ -0,0 +1,8 @@ +{ + "ver": "1.2.6", + "uuid": "fca82ecc-ae07-410f-8658-ce7fc8e9d2d3", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "readonly": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Texture.meta b/assets/Scene/Coin_fly_to_wallet/Texture.meta new file mode 100644 index 0000000..7d70968 --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Texture.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.1", + "uuid": "07c3b8ca-280e-4457-9def-57ef7e082777", + "isSubpackage": false, + "subpackageName": "", + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.plist b/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.plist new file mode 100644 index 0000000..410ea0d --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.plist @@ -0,0 +1,100 @@ + + + + + frames + + jb1.png + + frame + {{2,2},{60,60}} + offset + {0,0} + rotated + + sourceColorRect + {{0,0},{60,60}} + sourceSize + {60,60} + + jb2.png + + frame + {{64,60},{56,60}} + offset + {0,0} + rotated + + sourceColorRect + {{0,0},{56,60}} + sourceSize + {56,60} + + jb3.png + + frame + {{2,102},{36,60}} + offset + {0,0} + rotated + + sourceColorRect + {{0,0},{36,60}} + sourceSize + {36,60} + + jb4.png + + frame + {{64,118},{13,60}} + offset + {0,0} + rotated + + sourceColorRect + {{0,0},{13,60}} + sourceSize + {13,60} + + jb5.png + + frame + {{2,64},{36,60}} + offset + {0,0} + rotated + + sourceColorRect + {{0,0},{36,60}} + sourceSize + {36,60} + + jb6.png + + frame + {{64,2},{56,60}} + offset + {0,0} + rotated + + sourceColorRect + {{0,0},{56,60}} + sourceSize + {56,60} + + + metadata + + format + 2 + realTextureFileName + goldAnim.png + size + {128,256} + smartupdate + $TexturePacker:SmartUpdate:174c3bcf2102596fc16f1743450236e8$ + textureFileName + goldAnim.png + + + diff --git a/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.plist.meta b/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.plist.meta new file mode 100644 index 0000000..4e1c873 --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.plist.meta @@ -0,0 +1,144 @@ +{ + "ver": "1.2.4", + "uuid": "1a062e1b-0e93-4cff-be58-9517555b09f5", + "rawTextureUuid": "61b6bf8b-4ce9-412a-bce2-58ed9971db4f", + "size": { + "width": 128, + "height": 256 + }, + "type": "Texture Packer", + "subMetas": { + "jb1.png": { + "ver": "1.0.4", + "uuid": "28bb2e6a-615d-49b8-a336-b9da8d2a2171", + "rawTextureUuid": "61b6bf8b-4ce9-412a-bce2-58ed9971db4f", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 2, + "trimY": 2, + "width": 60, + "height": 60, + "rawWidth": 60, + "rawHeight": 60, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + }, + "jb2.png": { + "ver": "1.0.4", + "uuid": "61a9a149-e55f-4fc5-8368-1f809db4d86a", + "rawTextureUuid": "61b6bf8b-4ce9-412a-bce2-58ed9971db4f", + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 0, + "offsetY": 0, + "trimX": 64, + "trimY": 60, + "width": 56, + "height": 60, + "rawWidth": 56, + "rawHeight": 60, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + }, + "jb3.png": { + "ver": "1.0.4", + "uuid": "101f2e9d-800b-4a4a-b470-ac3b9a7f343b", + "rawTextureUuid": "61b6bf8b-4ce9-412a-bce2-58ed9971db4f", + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 0, + "offsetY": 0, + "trimX": 2, + "trimY": 102, + "width": 36, + "height": 60, + "rawWidth": 36, + "rawHeight": 60, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + }, + "jb4.png": { + "ver": "1.0.4", + "uuid": "3b00549c-9d1c-479f-9a4a-3c5a65d8dd19", + "rawTextureUuid": "61b6bf8b-4ce9-412a-bce2-58ed9971db4f", + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 0, + "offsetY": 0, + "trimX": 64, + "trimY": 118, + "width": 13, + "height": 60, + "rawWidth": 13, + "rawHeight": 60, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + }, + "jb5.png": { + "ver": "1.0.4", + "uuid": "7c516296-1a47-4557-967b-cb755c885c0b", + "rawTextureUuid": "61b6bf8b-4ce9-412a-bce2-58ed9971db4f", + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 0, + "offsetY": 0, + "trimX": 2, + "trimY": 64, + "width": 36, + "height": 60, + "rawWidth": 36, + "rawHeight": 60, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + }, + "jb6.png": { + "ver": "1.0.4", + "uuid": "a2f151c4-4849-46a2-8de3-cf3daf82786d", + "rawTextureUuid": "61b6bf8b-4ce9-412a-bce2-58ed9971db4f", + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 0, + "offsetY": 0, + "trimX": 64, + "trimY": 2, + "width": 56, + "height": 60, + "rawWidth": 56, + "rawHeight": 60, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.png b/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.png new file mode 100644 index 0000000..b9894e9 Binary files /dev/null and b/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.png differ diff --git a/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.png.meta b/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.png.meta new file mode 100644 index 0000000..64715f0 --- /dev/null +++ b/assets/Scene/Coin_fly_to_wallet/Texture/goldAnim.png.meta @@ -0,0 +1,14 @@ +{ + "ver": "2.3.4", + "uuid": "61b6bf8b-4ce9-412a-bce2-58ed9971db4f", + "type": "raw", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "width": 128, + "height": 256, + "platformSettings": {}, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Texture/singleColor.png b/assets/Scene/Coin_fly_to_wallet/Texture/singleColor.png similarity index 100% rename from assets/Texture/singleColor.png rename to assets/Scene/Coin_fly_to_wallet/Texture/singleColor.png diff --git a/assets/Texture/singleColor.png.meta b/assets/Scene/Coin_fly_to_wallet/Texture/singleColor.png.meta similarity index 100% rename from assets/Texture/singleColor.png.meta rename to assets/Scene/Coin_fly_to_wallet/Texture/singleColor.png.meta diff --git a/assets/Scene/Home.fire b/assets/Scene/Home.fire new file mode 100755 index 0000000..baea0f6 --- /dev/null +++ b/assets/Scene/Home.fire @@ -0,0 +1,287 @@ +[ + { + "__type__": "cc.SceneAsset", + "_name": "", + "_objFlags": 0, + "_native": "", + "scene": { + "__id__": 1 + } + }, + { + "__type__": "cc.Scene", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_is3DNode": true, + "_groupIndex": 0, + "groupIndex": 0, + "autoReleaseAssets": false, + "_id": "2d2f792f-a40c-49bb-a189-ed176a246e49" + }, + { + "__type__": "cc.Node", + "_name": "Canvas", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + } + ], + "_active": true, + "_components": [ + { + "__id__": 5 + }, + { + "__id__": 6 + }, + { + "__id__": 7 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 252, + "g": 252, + "b": 252, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1334, + "height": 750 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 667, + 375, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "a286bbGknJLZpRpxROV6M94" + }, + { + "__type__": "cc.Node", + "_name": "Main Camera", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 452.93128617926146, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "5asNwYHHZD1rkaP+0fDn4b" + }, + { + "__type__": "cc.Camera", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "_cullingMask": 4294967295, + "_clearFlags": 7, + "_backgroundColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_depth": -1, + "_zoomRatio": 1, + "_targetTexture": null, + "_fov": 60, + "_orthoSize": 10, + "_nearClip": 1, + "_farClip": 4096, + "_ortho": true, + "_rect": { + "__type__": "cc.Rect", + "x": 0, + "y": 0, + "width": 1, + "height": 1 + }, + "_renderStages": 1, + "_alignWithScreen": true, + "_id": "b99yu4HWREH4Qoiccp2gXV" + }, + { + "__type__": "cc.Canvas", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_designResolution": { + "__type__": "cc.Size", + "width": 1334, + "height": 750 + }, + "_fitWidth": false, + "_fitHeight": true, + "_id": "40zd8HWWlDfoW8KOeIfAd2" + }, + { + "__type__": "e1b90/rohdEk4SdmmEZANaD", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_id": "10XBeOwdlMjY6IKW4gHw0V" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 45, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_verticalCenter": 0, + "_horizontalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 0, + "_id": "78gApOlVZPNo6zKoTsIRiq" + } +] \ No newline at end of file diff --git a/assets/Scene/helloworld.fire.meta b/assets/Scene/Home.fire.meta similarity index 100% rename from assets/Scene/helloworld.fire.meta rename to assets/Scene/Home.fire.meta diff --git a/assets/Scene/helloworld.fire b/assets/Scene/helloworld.fire deleted file mode 100755 index 6051ea5..0000000 --- a/assets/Scene/helloworld.fire +++ /dev/null @@ -1,476 +0,0 @@ -[ - { - "__type__": "cc.SceneAsset", - "_name": "", - "_objFlags": 0, - "_rawFiles": null, - "scene": { - "__id__": 1 - } - }, - { - "__type__": "cc.Scene", - "_objFlags": 0, - "_parent": null, - "_children": [ - { - "__id__": 2 - } - ], - "_tag": -1, - "_active": true, - "_components": [], - "_prefab": null, - "_id": "2d2f792f-a40c-49bb-a189-ed176a246e49", - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_cascadeOpacityEnabled": true, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 0, - "height": 0 - }, - "_localZOrder": 0, - "_globalZOrder": 0, - "_opacityModifyRGB": false, - "groupIndex": 0, - "autoReleaseAssets": null, - "_trs": { - "__type__": "TypedArray", - "ctor": "Float64Array", - "array": [ - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1 - ] - } - }, - { - "__type__": "cc.Node", - "_name": "Canvas", - "_objFlags": 0, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 3 - }, - { - "__id__": 6 - }, - { - "__id__": 8 - } - ], - "_tag": -1, - "_active": true, - "_components": [ - { - "__id__": 10 - }, - { - "__id__": 11 - }, - { - "__id__": 12 - } - ], - "_prefab": null, - "_id": "a286bbGknJLZpRpxROV6M94", - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 252, - "g": 252, - "b": 252, - "a": 255 - }, - "_cascadeOpacityEnabled": true, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 960, - "height": 640 - }, - "_skewX": 0, - "_skewY": 0, - "_localZOrder": 0, - "_globalZOrder": 0, - "_opacityModifyRGB": false, - "groupIndex": 0, - "_trs": { - "__type__": "TypedArray", - "ctor": "Float64Array", - "array": [ - 480, - 320, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1 - ] - } - }, - { - "__type__": "cc.Node", - "_name": "background", - "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_tag": -1, - "_active": true, - "_components": [ - { - "__id__": 4 - }, - { - "__id__": 5 - } - ], - "_prefab": null, - "_id": "e2e0crkOLxGrpMxpbC4iQg1", - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 27, - "g": 38, - "b": 46, - "a": 255 - }, - "_cascadeOpacityEnabled": true, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 960, - "height": 640 - }, - "_skewX": 0, - "_skewY": 0, - "_localZOrder": 0, - "_globalZOrder": 0, - "_opacityModifyRGB": false, - "groupIndex": 0, - "_trs": { - "__type__": "TypedArray", - "ctor": "Float64Array", - "array": [ - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1 - ] - } - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 3 - }, - "_enabled": true, - "isAlignOnce": true, - "_target": null, - "_alignFlags": 45, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_verticalCenter": 0, - "_horizontalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 200, - "_originalHeight": 150 - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 3 - }, - "_enabled": true, - "_spriteFrame": { - "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" - }, - "_type": 1, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_atlas": null - }, - { - "__type__": "cc.Node", - "_name": "cocos", - "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_tag": -1, - "_active": true, - "_components": [ - { - "__id__": 7 - } - ], - "_prefab": null, - "_id": "c4f30YOS65G64U2TwufdJ+2", - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_cascadeOpacityEnabled": true, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 195, - "height": 270 - }, - "_skewX": 0, - "_skewY": 0, - "_localZOrder": 0, - "_globalZOrder": 0, - "_opacityModifyRGB": false, - "groupIndex": 0, - "_trs": { - "__type__": "TypedArray", - "ctor": "Float64Array", - "array": [ - 0, - 50, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1 - ] - } - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 6 - }, - "_enabled": true, - "_spriteFrame": { - "__uuid__": "31bc895a-c003-4566-a9f3-2e54ae1c17dc" - }, - "_type": 0, - "_sizeMode": 1, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_atlas": null - }, - { - "__type__": "cc.Node", - "_name": "label", - "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_tag": -1, - "_active": true, - "_components": [ - { - "__id__": 9 - } - ], - "_prefab": null, - "_id": "31f1bH7V69Ajr1iXhluMpTB", - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_cascadeOpacityEnabled": true, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 342.33, - "height": 60 - }, - "_skewX": 0, - "_skewY": 0, - "_localZOrder": 0, - "_globalZOrder": 0, - "_opacityModifyRGB": false, - "groupIndex": 0, - "_trs": { - "__type__": "TypedArray", - "ctor": "Float64Array", - "array": [ - 0, - -180, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1 - ] - } - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 8 - }, - "_enabled": true, - "_useOriginalSize": false, - "_actualFontSize": 60, - "_fontSize": 60, - "_lineHeight": 60, - "_enableWrapText": true, - "_N$file": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_N$string": "Hello, World!", - "_N$horizontalAlign": 1, - "_N$verticalAlign": 1, - "_N$fontFamily": "Arial", - "_N$overflow": 0 - }, - { - "__type__": "cc.Canvas", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 2 - }, - "_enabled": true, - "_designResolution": { - "__type__": "cc.Size", - "width": 960, - "height": 640 - }, - "_fitWidth": false, - "_fitHeight": true - }, - { - "__type__": "e1b90/rohdEk4SdmmEZANaD", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 2 - }, - "_enabled": true, - "label": { - "__id__": 9 - }, - "text": "hello" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 2 - }, - "_enabled": true, - "alignMode": 1, - "_target": null, - "_alignFlags": 45, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_verticalCenter": 0, - "_horizontalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 0, - "_originalHeight": 0 - } -] \ No newline at end of file diff --git a/assets/Script/Helloworld.ts b/assets/Script/Helloworld.ts deleted file mode 100644 index a9249d0..0000000 --- a/assets/Script/Helloworld.ts +++ /dev/null @@ -1,16 +0,0 @@ -const {ccclass, property} = cc._decorator; - -@ccclass -export default class Helloworld extends cc.Component { - - @property(cc.Label) - label: cc.Label = null; - - @property - text: string = 'hello'; - - start () { - // init logic - this.label.string = this.text; - } -} diff --git a/assets/Script/Home.ts b/assets/Script/Home.ts new file mode 100644 index 0000000..0673b72 --- /dev/null +++ b/assets/Script/Home.ts @@ -0,0 +1,6 @@ +const {ccclass, property} = cc._decorator; + +@ccclass +export default class Home extends cc.Component { + +} diff --git a/assets/Script/Helloworld.ts.meta b/assets/Script/Home.ts.meta similarity index 100% rename from assets/Script/Helloworld.ts.meta rename to assets/Script/Home.ts.meta diff --git a/assets/Texture/HelloWorld.png b/assets/Texture/HelloWorld.png deleted file mode 100755 index 21d4326..0000000 Binary files a/assets/Texture/HelloWorld.png and /dev/null differ diff --git a/assets/Texture/background.jpg b/assets/Texture/background.jpg new file mode 100755 index 0000000..7e1950d Binary files /dev/null and b/assets/Texture/background.jpg differ diff --git a/assets/Texture/HelloWorld.png.meta b/assets/Texture/background.jpg.meta old mode 100755 new mode 100644 similarity index 62% rename from assets/Texture/HelloWorld.png.meta rename to assets/Texture/background.jpg.meta index 478c5ff..f21b799 --- a/assets/Texture/HelloWorld.png.meta +++ b/assets/Texture/background.jpg.meta @@ -1,20 +1,20 @@ { "ver": "2.3.4", - "uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", + "uuid": "26c62249-fd97-446f-943c-d23dea4fbed1", "type": "sprite", "wrapMode": "clamp", "filterMode": "bilinear", "premultiplyAlpha": false, "genMipmaps": false, "packable": true, - "width": 195, - "height": 270, + "width": 512, + "height": 362, "platformSettings": {}, "subMetas": { - "HelloWorld": { + "background": { "ver": "1.0.4", - "uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc", - "rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", + "uuid": "ca2dacae-8064-403e-8c6c-3105a2891922", + "rawTextureUuid": "26c62249-fd97-446f-943c-d23dea4fbed1", "trimType": "auto", "trimThreshold": 1, "rotated": false, @@ -22,10 +22,10 @@ "offsetY": 0, "trimX": 0, "trimY": 0, - "width": 195, - "height": 270, - "rawWidth": 195, - "rawHeight": 270, + "width": 512, + "height": 362, + "rawWidth": 512, + "rawHeight": 362, "borderTop": 0, "borderBottom": 0, "borderLeft": 0, diff --git a/assets/Texture/ground.png b/assets/Texture/ground.png new file mode 100755 index 0000000..7b4a50f Binary files /dev/null and b/assets/Texture/ground.png differ diff --git a/assets/Texture/ground.png.meta b/assets/Texture/ground.png.meta new file mode 100644 index 0000000..5ad30a1 --- /dev/null +++ b/assets/Texture/ground.png.meta @@ -0,0 +1,36 @@ +{ + "ver": "2.3.4", + "uuid": "1d4d90ce-dfa9-4a1a-99b0-b388f16276b4", + "type": "sprite", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "width": 256, + "height": 256, + "platformSettings": {}, + "subMetas": { + "ground": { + "ver": "1.0.4", + "uuid": "51984aa7-901e-478d-ae43-20b08753cb97", + "rawTextureUuid": "1d4d90ce-dfa9-4a1a-99b0-b388f16276b4", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 256, + "height": 256, + "rawWidth": 256, + "rawHeight": 256, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/assets/Texture/npm_1.png b/assets/Texture/npm_1.png new file mode 100755 index 0000000..be142b5 Binary files /dev/null and b/assets/Texture/npm_1.png differ diff --git a/assets/Texture/npm_1.png.meta b/assets/Texture/npm_1.png.meta new file mode 100644 index 0000000..9405849 --- /dev/null +++ b/assets/Texture/npm_1.png.meta @@ -0,0 +1,36 @@ +{ + "ver": "2.3.4", + "uuid": "3f716868-44f8-4ff2-9f85-72917cc049da", + "type": "sprite", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "width": 78, + "height": 67, + "platformSettings": {}, + "subMetas": { + "npm_1": { + "ver": "1.0.4", + "uuid": "d4d6a44a-040e-442d-ab8f-1fa461cafd87", + "rawTextureUuid": "3f716868-44f8-4ff2-9f85-72917cc049da", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 78, + "height": 67, + "rawWidth": 78, + "rawHeight": 67, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/assets/Texture/star.png b/assets/Texture/star.png new file mode 100755 index 0000000..da5f79a Binary files /dev/null and b/assets/Texture/star.png differ diff --git a/assets/Texture/star.png.meta b/assets/Texture/star.png.meta new file mode 100644 index 0000000..26ae695 --- /dev/null +++ b/assets/Texture/star.png.meta @@ -0,0 +1,36 @@ +{ + "ver": "2.3.4", + "uuid": "f4b59ab3-20f5-4e11-9de3-e61599b5e4d9", + "type": "sprite", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "width": 60, + "height": 71, + "platformSettings": {}, + "subMetas": { + "star": { + "ver": "1.0.4", + "uuid": "a4637c7b-9210-47e8-ac88-71fd21356eab", + "rawTextureUuid": "f4b59ab3-20f5-4e11-9de3-e61599b5e4d9", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": -1.5, + "trimX": 0, + "trimY": 4, + "width": 60, + "height": 66, + "rawWidth": 60, + "rawHeight": 71, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/settings/project.json b/settings/project.json index 001aef6..a53b837 100755 --- a/settings/project.json +++ b/settings/project.json @@ -12,27 +12,26 @@ "group-list": [ "default" ], - "start-scene": "2d2f792f-a40c-49bb-a189-ed176a246e49", - "design-resolution-width": 960, - "design-resolution-height": 640, + "design-resolution-width": 1334, + "design-resolution-height": 750, "fit-width": false, "fit-height": true, "use-project-simulator-setting": false, "simulator-orientation": false, - "use-customize-simulator": false, + "use-customize-simulator": true, "simulator-resolution": { - "width": 960, - "height": 640 + "height": 640, + "width": 960 }, "last-module-event-record-time": 0, "assets-sort-type": "name", "facebook": { - "enable": false, "appID": "", - "live": { + "audience": { "enable": false }, - "audience": { + "enable": false, + "live": { "enable": false } } diff --git a/tsconfig.json b/tsconfig.json old mode 100755 new mode 100644 index 86c1149..8eb39c7 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,18 +1,17 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ "dom", "es5", "es2015.promise" ], - "target": "es5", - "allowJs": true, - "experimentalDecorators": true, - "skipLibCheck": true - }, - "exclude": [ - "node_modules", - "library", - "local", - "temp", - "build", - "settings" - ] -} +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ "dom", "es5", "es2015.promise" ], + "target": "es5", + "experimentalDecorators": true, + "skipLibCheck": true + }, + "exclude": [ + "node_modules", + "library", + "local", + "temp", + "build", + "settings" + ] +} \ No newline at end of file