diff --git a/assets/Bullet.prefab b/assets/Bullet.prefab new file mode 100644 index 0000000..c664b24 --- /dev/null +++ b/assets/Bullet.prefab @@ -0,0 +1,232 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false, + "readonly": false + }, + { + "__type__": "cc.Node", + "_name": "Bullet", + "_objFlags": 0, + "_parent": null, + "_children": [], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 2 + }, + { + "__id__": 3 + }, + { + "__id__": 4 + } + ], + "_prefab": { + "__id__": 5 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 107, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 20.373, + "y": 168.422, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.075, + "y": 0.1, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 90 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "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__": "e3b2dec1-9de5-459d-8b97-1335000bc60f" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "703c7fWWSFIqLoVKP56Pw8g", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "label": null, + "text": "hello", + "BulletSpeed": 500, + "_id": "" + }, + { + "__type__": "cc.PolygonCollider", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "tag": 0, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "points": [ + { + "__type__": "cc.Vec2", + "x": -12.5, + "y": 20 + }, + { + "__type__": "cc.Vec2", + "x": -37.5, + "y": 15 + }, + { + "__type__": "cc.Vec2", + "x": -47.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -52.5, + "y": 5 + }, + { + "__type__": "cc.Vec2", + "x": -52.5, + "y": -5 + }, + { + "__type__": "cc.Vec2", + "x": -47.5, + "y": -10 + }, + { + "__type__": "cc.Vec2", + "x": -37.5, + "y": -15 + }, + { + "__type__": "cc.Vec2", + "x": -14.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": -13 + }, + { + "__type__": "cc.Vec2", + "x": 43.5, + "y": -11 + }, + { + "__type__": "cc.Vec2", + "x": 47.5, + "y": -10 + }, + { + "__type__": "cc.Vec2", + "x": 53.5, + "y": -2 + }, + { + "__type__": "cc.Vec2", + "x": 51.5, + "y": 6 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": 14 + }, + { + "__type__": "cc.Vec2", + "x": 20.5, + "y": 19 + } + ], + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "f4xpsR+sJJ86l8C4Tf5XS9", + "sync": false + } +] \ No newline at end of file diff --git a/assets/Bullet.prefab.meta b/assets/Bullet.prefab.meta new file mode 100644 index 0000000..56ee25e --- /dev/null +++ b/assets/Bullet.prefab.meta @@ -0,0 +1,8 @@ +{ + "ver": "1.2.1", + "uuid": "d6a31879-4924-4889-995f-06e86f666750", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "readonly": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Game.fire b/assets/Game.fire index 1b11ccd..d5b1512 100644 --- a/assets/Game.fire +++ b/assets/Game.fire @@ -65,35 +65,29 @@ "__id__": 5 }, { - "__id__": 7 + "__id__": 8 }, { - "__id__": 10 - }, - { - "__id__": 13 - }, - { - "__id__": 15 + "__id__": 11 }, { "__id__": 17 }, { - "__id__": 19 + "__id__": 23 }, { - "__id__": 21 + "__id__": 29 } ], "_active": true, "_level": 1, "_components": [ { - "__id__": 25 + "__id__": 34 }, { - "__id__": 26 + "__id__": 35 } ], "_prefab": null, @@ -245,6 +239,9 @@ "_components": [ { "__id__": 6 + }, + { + "__id__": 7 } ], "_prefab": null, @@ -322,6 +319,19 @@ "_atlas": null, "_id": "f78n0242FNsZf7P7VOsLAD" }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "_defaultClip": null, + "_clips": [], + "playOnLoad": false, + "_id": "b6DhhQgd1C76Ux1gaX4sTc" + }, { "__type__": "cc.Node", "_name": "particlesystem", @@ -334,10 +344,10 @@ "_level": 2, "_components": [ { - "__id__": 8 + "__id__": 9 }, { - "__id__": 9 + "__id__": 10 } ], "_prefab": null, @@ -388,7 +398,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 7 + "__id__": 8 }, "_enabled": true, "_materials": [ @@ -493,7 +503,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 7 + "__id__": 8 }, "_enabled": true, "label": null, @@ -507,15 +517,22 @@ "_parent": { "__id__": 2 }, - "_children": [], + "_children": [ + { + "__id__": 12 + } + ], "_active": true, "_level": 2, "_components": [ { - "__id__": 11 + "__id__": 14 }, { - "__id__": 12 + "__id__": 15 + }, + { + "__id__": 16 } ], "_prefab": null, @@ -545,8 +562,8 @@ }, "_scale": { "__type__": "cc.Vec3", - "x": 0.3, - "y": 0.3, + "x": 0.5, + "y": 0.5, "z": 1 }, "_eulerAngles": { @@ -561,12 +578,70 @@ "groupIndex": 3, "_id": "f7jh+kBxhCWakG/dJc/bGy" }, + { + "__type__": "cc.Node", + "_name": "alienship1", + "_objFlags": 0, + "_parent": { + "__id__": 11 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 13 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 165, + "height": 154 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "2cghscU9dIH67SGUN2y7/j" + }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 10 + "__id__": 12 }, "_enabled": true, "_materials": [ @@ -577,7 +652,7 @@ "_srcBlendFactor": 770, "_dstBlendFactor": 771, "_spriteFrame": { - "__uuid__": "875bbb9c-ed50-4318-96c8-e7076ad5f265" + "__uuid__": "14cd4280-b3a7-4ac6-858b-63ca8d96ba56" }, "_type": 0, "_sizeMode": 1, @@ -591,6 +666,36 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, + "_id": "e3jYYahGtA0r3vMlde8BNs" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": null, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, "_id": "130k9PPWVPubyMVLckxDCJ" }, { @@ -598,11 +703,712 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 10 + "__id__": 11 }, "_enabled": true, + "greenBullet": { + "__uuid__": "b7521c67-e13a-4a83-affe-f86364304313" + }, "_id": "15NYjVkItKELZAnW57eLwS" }, + { + "__type__": "cc.PolygonCollider", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "tag": 0, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "points": [ + { + "__type__": "cc.Vec2", + "x": 13.5, + "y": 77 + }, + { + "__type__": "cc.Vec2", + "x": -0.5, + "y": 74 + }, + { + "__type__": "cc.Vec2", + "x": -5.5, + "y": 68 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": 68 + }, + { + "__type__": "cc.Vec2", + "x": -13.5, + "y": 62 + }, + { + "__type__": "cc.Vec2", + "x": -13.5, + "y": 60 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": 57 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": 57 + }, + { + "__type__": "cc.Vec2", + "x": -17.5, + "y": 54 + }, + { + "__type__": "cc.Vec2", + "x": -14.5, + "y": 54 + }, + { + "__type__": "cc.Vec2", + "x": -10.5, + "y": 57 + }, + { + "__type__": "cc.Vec2", + "x": -4.5, + "y": 58 + }, + { + "__type__": "cc.Vec2", + "x": -4.5, + "y": 52 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": 53 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": 51 + }, + { + "__type__": "cc.Vec2", + "x": -14.5, + "y": 49 + }, + { + "__type__": "cc.Vec2", + "x": -12.5, + "y": 46 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 44 + }, + { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 36 + }, + { + "__type__": "cc.Vec2", + "x": 9.5, + "y": 37 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": 31 + }, + { + "__type__": "cc.Vec2", + "x": 2.5, + "y": 31 + }, + { + "__type__": "cc.Vec2", + "x": 1.5, + "y": 29 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 25 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": 21 + }, + { + "__type__": "cc.Vec2", + "x": -5.5, + "y": 20 + }, + { + "__type__": "cc.Vec2", + "x": -5.5, + "y": 18 + }, + { + "__type__": "cc.Vec2", + "x": -19.5, + "y": 24 + }, + { + "__type__": "cc.Vec2", + "x": -28.5, + "y": 24 + }, + { + "__type__": "cc.Vec2", + "x": -30.5, + "y": 22 + }, + { + "__type__": "cc.Vec2", + "x": -33.5, + "y": 23 + }, + { + "__type__": "cc.Vec2", + "x": -53.5, + "y": 17 + }, + { + "__type__": "cc.Vec2", + "x": -60.5, + "y": 18 + }, + { + "__type__": "cc.Vec2", + "x": -68.5, + "y": 13 + }, + { + "__type__": "cc.Vec2", + "x": -77.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -81.5, + "y": 7 + }, + { + "__type__": "cc.Vec2", + "x": -81.5, + "y": 3 + }, + { + "__type__": "cc.Vec2", + "x": -77.5, + "y": 3 + }, + { + "__type__": "cc.Vec2", + "x": -76.5, + "y": 5 + }, + { + "__type__": "cc.Vec2", + "x": -68.5, + "y": 7 + }, + { + "__type__": "cc.Vec2", + "x": -62.5, + "y": 11 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": 8 + }, + { + "__type__": "cc.Vec2", + "x": -71.5, + "y": 4 + }, + { + "__type__": "cc.Vec2", + "x": -73.5, + "y": 2 + }, + { + "__type__": "cc.Vec2", + "x": -72.5, + "y": -2 + }, + { + "__type__": "cc.Vec2", + "x": -45.5, + "y": -3 + }, + { + "__type__": "cc.Vec2", + "x": -46.5, + "y": -5 + }, + { + "__type__": "cc.Vec2", + "x": -64.5, + "y": -9 + }, + { + "__type__": "cc.Vec2", + "x": -73.5, + "y": -6 + }, + { + "__type__": "cc.Vec2", + "x": -79.5, + "y": -2 + }, + { + "__type__": "cc.Vec2", + "x": -82.5, + "y": -3 + }, + { + "__type__": "cc.Vec2", + "x": -81.5, + "y": -8 + }, + { + "__type__": "cc.Vec2", + "x": -73.5, + "y": -11 + }, + { + "__type__": "cc.Vec2", + "x": -72.5, + "y": -13 + }, + { + "__type__": "cc.Vec2", + "x": -68.5, + "y": -14 + }, + { + "__type__": "cc.Vec2", + "x": -63.5, + "y": -18 + }, + { + "__type__": "cc.Vec2", + "x": -41.5, + "y": -18 + }, + { + "__type__": "cc.Vec2", + "x": -37.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": -30.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": -25.5, + "y": -24 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": -18 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": -21 + }, + { + "__type__": "cc.Vec2", + "x": -4.5, + "y": -21 + }, + { + "__type__": "cc.Vec2", + "x": 2.5, + "y": -27 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": -27 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": -32 + }, + { + "__type__": "cc.Vec2", + "x": 2.5, + "y": -31 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -35 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -37 + }, + { + "__type__": "cc.Vec2", + "x": -9.5, + "y": -41 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": -50 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": -53 + }, + { + "__type__": "cc.Vec2", + "x": -14.5, + "y": -53 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -49 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -51 + }, + { + "__type__": "cc.Vec2", + "x": -4.5, + "y": -51 + }, + { + "__type__": "cc.Vec2", + "x": -4.5, + "y": -56 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -57 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -59 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": -54 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": -54 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": -57 + }, + { + "__type__": "cc.Vec2", + "x": 2.5, + "y": -77 + }, + { + "__type__": "cc.Vec2", + "x": 23.5, + "y": -75 + }, + { + "__type__": "cc.Vec2", + "x": 32.5, + "y": -69 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": -64 + }, + { + "__type__": "cc.Vec2", + "x": 49.5, + "y": -65 + }, + { + "__type__": "cc.Vec2", + "x": 82.5, + "y": -58 + }, + { + "__type__": "cc.Vec2", + "x": 82.5, + "y": -52 + }, + { + "__type__": "cc.Vec2", + "x": 78.5, + "y": -49 + }, + { + "__type__": "cc.Vec2", + "x": 52.5, + "y": -45 + }, + { + "__type__": "cc.Vec2", + "x": 50.5, + "y": -43 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": -43 + }, + { + "__type__": "cc.Vec2", + "x": 32.5, + "y": -36 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -33 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -31 + }, + { + "__type__": "cc.Vec2", + "x": 38.5, + "y": -31 + }, + { + "__type__": "cc.Vec2", + "x": 40.5, + "y": -27 + }, + { + "__type__": "cc.Vec2", + "x": 61.5, + "y": -26 + }, + { + "__type__": "cc.Vec2", + "x": 64.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": 72.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": 79.5, + "y": -18 + }, + { + "__type__": "cc.Vec2", + "x": 79.5, + "y": -12 + }, + { + "__type__": "cc.Vec2", + "x": 72.5, + "y": -10 + }, + { + "__type__": "cc.Vec2", + "x": 74.5, + "y": -8 + }, + { + "__type__": "cc.Vec2", + "x": 74.5, + "y": -5 + }, + { + "__type__": "cc.Vec2", + "x": 69.5, + "y": -4 + }, + { + "__type__": "cc.Vec2", + "x": 70.5, + "y": 6 + }, + { + "__type__": "cc.Vec2", + "x": 68.5, + "y": 11 + }, + { + "__type__": "cc.Vec2", + "x": 72.5, + "y": 11 + }, + { + "__type__": "cc.Vec2", + "x": 73.5, + "y": 15 + }, + { + "__type__": "cc.Vec2", + "x": 77.5, + "y": 16 + }, + { + "__type__": "cc.Vec2", + "x": 76.5, + "y": 22 + }, + { + "__type__": "cc.Vec2", + "x": 65.5, + "y": 23 + }, + { + "__type__": "cc.Vec2", + "x": 58.5, + "y": 30 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 31 + }, + { + "__type__": "cc.Vec2", + "x": 33.5, + "y": 35 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": 35 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": 39 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": 41 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": 44 + }, + { + "__type__": "cc.Vec2", + "x": 32.5, + "y": 47 + }, + { + "__type__": "cc.Vec2", + "x": 47.5, + "y": 46 + }, + { + "__type__": "cc.Vec2", + "x": 54.5, + "y": 50 + }, + { + "__type__": "cc.Vec2", + "x": 61.5, + "y": 51 + }, + { + "__type__": "cc.Vec2", + "x": 63.5, + "y": 53 + }, + { + "__type__": "cc.Vec2", + "x": 73.5, + "y": 54 + }, + { + "__type__": "cc.Vec2", + "x": 73.5, + "y": 62 + }, + { + "__type__": "cc.Vec2", + "x": 47.5, + "y": 67 + }, + { + "__type__": "cc.Vec2", + "x": 45.5, + "y": 65 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": 67 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": 66 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": 71 + }, + { + "__type__": "cc.Vec2", + "x": 19.5, + "y": 75 + }, + { + "__type__": "cc.Vec2", + "x": 18.5, + "y": 77 + } + ], + "_id": "965MCSJRhGs5q7cLGkd0WT" + }, { "__type__": "cc.Node", "_name": "alienship3", @@ -615,10 +1421,21 @@ "_level": 2, "_components": [ { - "__id__": 14 + "__id__": 18 + }, + { + "__id__": 19 + }, + { + "__id__": 20 + }, + { + "__id__": 21 } ], - "_prefab": null, + "_prefab": { + "__id__": 22 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -639,14 +1456,14 @@ }, "_position": { "__type__": "cc.Vec3", - "x": 20.299, - "y": 234, + "x": -50.802, + "y": 405.549, "z": 0 }, "_scale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, + "x": 0.5, + "y": 0.5, "z": 1 }, "_eulerAngles": { @@ -666,7 +1483,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 13 + "__id__": 17 }, "_enabled": true, "_materials": [ @@ -693,6 +1510,636 @@ "_atlas": null, "_id": "8bWuC+ns9BbpBj7AgcXW8U" }, + { + "__type__": "1a501MCRppNhZR74uSrFLbc", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 17 + }, + "_enabled": true, + "duratrion": 0.5, + "moveAmountX": 100, + "moveAmountY": 75, + "yellowBullet": { + "__uuid__": "d6a31879-4924-4889-995f-06e86f666750" + }, + "enemyLife": 3, + "_id": "99GXG8cudM4YSjqSEvLNvU" + }, + { + "__type__": "cc.PolygonCollider", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 17 + }, + "_enabled": true, + "tag": 0, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "points": [ + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": 49 + }, + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": 47 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": 45 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": 43 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": 41 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": 40 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": 38 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": 36 + }, + { + "__type__": "cc.Vec2", + "x": 32.5, + "y": 34 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": 34 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": 31 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": 26 + }, + { + "__type__": "cc.Vec2", + "x": 23.5, + "y": 26 + }, + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": 21 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": 22 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": 20 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": 19 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": 17 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": 15 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": 14 + }, + { + "__type__": "cc.Vec2", + "x": 9.5, + "y": 14 + }, + { + "__type__": "cc.Vec2", + "x": 3.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -3.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -3.5, + "y": 8 + }, + { + "__type__": "cc.Vec2", + "x": -11.5, + "y": 8 + }, + { + "__type__": "cc.Vec2", + "x": -10.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -12.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -22.5, + "y": 6 + }, + { + "__type__": "cc.Vec2", + "x": -25.5, + "y": 3 + }, + { + "__type__": "cc.Vec2", + "x": -40.5, + "y": 3 + }, + { + "__type__": "cc.Vec2", + "x": -47.5, + "y": 1 + }, + { + "__type__": "cc.Vec2", + "x": -46.5, + "y": -2 + }, + { + "__type__": "cc.Vec2", + "x": -24.5, + "y": -4 + }, + { + "__type__": "cc.Vec2", + "x": -20.5, + "y": -8 + }, + { + "__type__": "cc.Vec2", + "x": -11.5, + "y": -11 + }, + { + "__type__": "cc.Vec2", + "x": -10.5, + "y": -9 + }, + { + "__type__": "cc.Vec2", + "x": -12.5, + "y": -8 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": -8 + }, + { + "__type__": "cc.Vec2", + "x": -3.5, + "y": -9 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -11 + }, + { + "__type__": "cc.Vec2", + "x": 3.5, + "y": -10 + }, + { + "__type__": "cc.Vec2", + "x": 3.5, + "y": -12 + }, + { + "__type__": "cc.Vec2", + "x": 8.5, + "y": -13 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": -15 + }, + { + "__type__": "cc.Vec2", + "x": 13.5, + "y": -14 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": -16 + }, + { + "__type__": "cc.Vec2", + "x": 13.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": -22 + }, + { + "__type__": "cc.Vec2", + "x": 18.5, + "y": -22 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": -27 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": -27 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": -31 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": -35 + }, + { + "__type__": "cc.Vec2", + "x": 32.5, + "y": -35 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": -39 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": -41 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": -43 + }, + { + "__type__": "cc.Vec2", + "x": 25.5, + "y": -46 + }, + { + "__type__": "cc.Vec2", + "x": 19.5, + "y": -47 + }, + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": -49 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -49 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": -47 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": -46 + }, + { + "__type__": "cc.Vec2", + "x": 38.5, + "y": -43 + }, + { + "__type__": "cc.Vec2", + "x": 40.5, + "y": -39 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": -36 + }, + { + "__type__": "cc.Vec2", + "x": 47.5, + "y": -34 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": -33 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": -26 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": -26 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -24 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": -17 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": -15 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": -15 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": -12 + }, + { + "__type__": "cc.Vec2", + "x": 38.5, + "y": -16 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -16 + }, + { + "__type__": "cc.Vec2", + "x": 34.5, + "y": -13 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -11 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": -9 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -7 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -5 + }, + { + "__type__": "cc.Vec2", + "x": 41.5, + "y": -4 + }, + { + "__type__": "cc.Vec2", + "x": 41.5, + "y": -2 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": -1 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 1 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 1 + }, + { + "__type__": "cc.Vec2", + "x": 40.5, + "y": 4 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": 4 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 7 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 7 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 9 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 11 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 14 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": 15 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 11 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 13 + }, + { + "__type__": "cc.Vec2", + "x": 43.5, + "y": 14 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": 16 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 17 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 19 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": 25 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": 26 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 32 + }, + { + "__type__": "cc.Vec2", + "x": 47.5, + "y": 34 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": 37 + }, + { + "__type__": "cc.Vec2", + "x": 40.5, + "y": 38 + }, + { + "__type__": "cc.Vec2", + "x": 38.5, + "y": 42 + }, + { + "__type__": "cc.Vec2", + "x": 38.5, + "y": 44 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 45 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 47 + } + ], + "_id": "25+A5EiONAkbgRjTQ0zuaP" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 17 + }, + "_enabled": true, + "_defaultClip": { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + }, + "_clips": [ + { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + } + ], + "playOnLoad": false, + "_id": "c2CuVvCCZMsbzSXqspQ7x4" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 17 + }, + "asset": { + "__uuid__": "30cd2ea4-f09d-4e95-ac5a-5da2f6caff02" + }, + "fileId": "a2v8qIaKpJ9KfekoQURhld", + "sync": false + }, { "__type__": "cc.Node", "_name": "alienship4", @@ -705,10 +2152,21 @@ "_level": 2, "_components": [ { - "__id__": 16 + "__id__": 24 + }, + { + "__id__": 25 + }, + { + "__id__": 26 + }, + { + "__id__": 27 } ], - "_prefab": null, + "_prefab": { + "__id__": 28 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -729,14 +2187,14 @@ }, "_position": { "__type__": "cc.Vec3", - "x": -331.221, - "y": 234, + "x": -240.07, + "y": 545.086, "z": 0 }, "_scale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, + "x": 0.5, + "y": 0.5, "z": 1 }, "_eulerAngles": { @@ -756,7 +2214,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 15 + "__id__": 23 }, "_enabled": true, "_materials": [ @@ -783,6 +2241,1001 @@ "_atlas": null, "_id": "c1SmiccQdCU4iSDBfHntiG" }, + { + "__type__": "1a501MCRppNhZR74uSrFLbc", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 23 + }, + "_enabled": true, + "duratrion": 1, + "moveAmountX": 125, + "moveAmountY": 100, + "yellowBullet": { + "__uuid__": "d6a31879-4924-4889-995f-06e86f666750" + }, + "enemyLife": 3, + "_id": "f8jxEwZXdKdJ6Zy5+w03LW" + }, + { + "__type__": "cc.PolygonCollider", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 23 + }, + "_enabled": true, + "tag": 0, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "points": [ + { + "__type__": "cc.Vec2", + "x": -1.5, + "y": 59.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 55.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 51.5 + }, + { + "__type__": "cc.Vec2", + "x": -8.5, + "y": 48.5 + }, + { + "__type__": "cc.Vec2", + "x": -8.5, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": -10.5, + "y": 40.5 + }, + { + "__type__": "cc.Vec2", + "x": -10.5, + "y": 43.5 + }, + { + "__type__": "cc.Vec2", + "x": -14.5, + "y": 48.5 + }, + { + "__type__": "cc.Vec2", + "x": -21.5, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": -21.5, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": -23.5, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": -26.5, + "y": 28.5 + }, + { + "__type__": "cc.Vec2", + "x": -27.5, + "y": 15.5 + }, + { + "__type__": "cc.Vec2", + "x": -29.5, + "y": 14.5 + }, + { + "__type__": "cc.Vec2", + "x": -30.5, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": -30.5, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": -35.5, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": -35.5, + "y": 5.5 + }, + { + "__type__": "cc.Vec2", + "x": -37.5, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": -37.5, + "y": -1.5 + }, + { + "__type__": "cc.Vec2", + "x": -35.5, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": -36.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": -45.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": -45.5, + "y": -9.5 + }, + { + "__type__": "cc.Vec2", + "x": -50.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": -52.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": -5.5 + }, + { + "__type__": "cc.Vec2", + "x": -58.5, + "y": -3.5 + }, + { + "__type__": "cc.Vec2", + "x": -62.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": -58.5, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": -17.5 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": -19.5 + }, + { + "__type__": "cc.Vec2", + "x": -59.5, + "y": -20.5 + }, + { + "__type__": "cc.Vec2", + "x": -60.5, + "y": -24.5 + }, + { + "__type__": "cc.Vec2", + "x": -52.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": -50.5, + "y": -48.5 + }, + { + "__type__": "cc.Vec2", + "x": -50.5, + "y": -53.5 + }, + { + "__type__": "cc.Vec2", + "x": -48.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": -47.5, + "y": -53.5 + }, + { + "__type__": "cc.Vec2", + "x": -43.5, + "y": -56.5 + }, + { + "__type__": "cc.Vec2", + "x": -40.5, + "y": -54.5 + }, + { + "__type__": "cc.Vec2", + "x": -39.5, + "y": -59.5 + }, + { + "__type__": "cc.Vec2", + "x": -37.5, + "y": -59.5 + }, + { + "__type__": "cc.Vec2", + "x": -38.5, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": -36.5, + "y": -45.5 + }, + { + "__type__": "cc.Vec2", + "x": -35.5, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -34.5, + "y": -50.5 + }, + { + "__type__": "cc.Vec2", + "x": -31.5, + "y": -50.5 + }, + { + "__type__": "cc.Vec2", + "x": -28.5, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -29.5, + "y": -28.5 + }, + { + "__type__": "cc.Vec2", + "x": -31.5, + "y": -29.5 + }, + { + "__type__": "cc.Vec2", + "x": -31.5, + "y": -27.5 + }, + { + "__type__": "cc.Vec2", + "x": -28.5, + "y": -25.5 + }, + { + "__type__": "cc.Vec2", + "x": -27.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": -25.5, + "y": -24.5 + }, + { + "__type__": "cc.Vec2", + "x": -22.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": -24.5, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": -20.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": -20.5, + "y": -3.5 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": -19.5, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": -19.5, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": -17.5, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": -15.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": -9.5, + "y": 24.5 + }, + { + "__type__": "cc.Vec2", + "x": -8.5, + "y": 27.5 + }, + { + "__type__": "cc.Vec2", + "x": -4.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 21.5 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": 18.5 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": -11.5, + "y": -10.5 + }, + { + "__type__": "cc.Vec2", + "x": -13.5, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": -15.5, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": -14.5, + "y": -26.5 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": -32.5 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": -43.5 + }, + { + "__type__": "cc.Vec2", + "x": -13.5, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -9.5, + "y": -48.5 + }, + { + "__type__": "cc.Vec2", + "x": -9.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": -50.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": -52.5 + }, + { + "__type__": "cc.Vec2", + "x": -3.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 1.5, + "y": -52.5 + }, + { + "__type__": "cc.Vec2", + "x": 1.5, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": 3.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": -49.5 + }, + { + "__type__": "cc.Vec2", + "x": 7.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 9.5, + "y": -50.5 + }, + { + "__type__": "cc.Vec2", + "x": 9.5, + "y": -47.5 + }, + { + "__type__": "cc.Vec2", + "x": 13.5, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": 16.5, + "y": -43.5 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": -28.5 + }, + { + "__type__": "cc.Vec2", + "x": 15.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": 12.5, + "y": -19.5 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": 7.5, + "y": -3.5 + }, + { + "__type__": "cc.Vec2", + "x": 8.5, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": 4.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": 27.5 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": 15.5, + "y": 19.5 + }, + { + "__type__": "cc.Vec2", + "x": 19.5, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": 19.5, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 16.5, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": 15.5, + "y": 5.5 + }, + { + "__type__": "cc.Vec2", + "x": 18.5, + "y": 2.5 + }, + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": -1.5 + }, + { + "__type__": "cc.Vec2", + "x": 20.5, + "y": -4.5 + }, + { + "__type__": "cc.Vec2", + "x": 19.5, + "y": -7.5 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": 22.5, + "y": -19.5 + }, + { + "__type__": "cc.Vec2", + "x": 22.5, + "y": -23.5 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": -24.5 + }, + { + "__type__": "cc.Vec2", + "x": 25.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": -26.5 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": -27.5 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": -28.5 + }, + { + "__type__": "cc.Vec2", + "x": 29.5, + "y": -36.5 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": -37.5 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 33.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 33.5, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -45.5 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": -45.5 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -59.5 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": -58.5 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": 48.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": 48.5, + "y": -53.5 + }, + { + "__type__": "cc.Vec2", + "x": 52.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 52.5, + "y": -47.5 + }, + { + "__type__": "cc.Vec2", + "x": 55.5, + "y": -42.5 + }, + { + "__type__": "cc.Vec2", + "x": 55.5, + "y": -35.5 + }, + { + "__type__": "cc.Vec2", + "x": 59.5, + "y": -26.5 + }, + { + "__type__": "cc.Vec2", + "x": 59.5, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": 56.5, + "y": -20.5 + }, + { + "__type__": "cc.Vec2", + "x": 56.5, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": 58.5, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": 58.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": 62.5, + "y": -4.5 + }, + { + "__type__": "cc.Vec2", + "x": 62.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": 59.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": 55.5, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": 55.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": 51.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": 49.5, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 45.5, + "y": -9.5 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": 40.5, + "y": -10.5 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -9.5 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 7.5 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": 15.5 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": 19.5 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": 15.5 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": 25.5, + "y": 30.5 + }, + { + "__type__": "cc.Vec2", + "x": 23.5, + "y": 31.5 + }, + { + "__type__": "cc.Vec2", + "x": 23.5, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": 21.5, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": 18.5, + "y": 44.5 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": 48.5 + }, + { + "__type__": "cc.Vec2", + "x": 12.5, + "y": 48.5 + }, + { + "__type__": "cc.Vec2", + "x": 12.5, + "y": 45.5 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": 45.5 + }, + { + "__type__": "cc.Vec2", + "x": 9.5, + "y": 40.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": 7.5, + "y": 50.5 + }, + { + "__type__": "cc.Vec2", + "x": 5.5, + "y": 53.5 + }, + { + "__type__": "cc.Vec2", + "x": 5.5, + "y": 57.5 + } + ], + "_id": "58VZJCiDRKq6PFaKBElm8d" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 23 + }, + "_enabled": true, + "_defaultClip": { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + }, + "_clips": [ + { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + } + ], + "playOnLoad": false, + "_id": "5bnoGYmd1ADK97/+IgIEQU" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 23 + }, + "asset": { + "__uuid__": "ae1edc08-8943-4d97-9dc5-cafe25f7c26f" + }, + "fileId": "abaWHTg1VBt7IU8cLHOhFV", + "sync": false + }, { "__type__": "cc.Node", "_name": "alienship5", @@ -795,7 +3248,16 @@ "_level": 2, "_components": [ { - "__id__": 18 + "__id__": 30 + }, + { + "__id__": 31 + }, + { + "__id__": 32 + }, + { + "__id__": 33 } ], "_prefab": null, @@ -819,14 +3281,14 @@ }, "_position": { "__type__": "cc.Vec3", - "x": 314.563, - "y": 234, + "x": 251.738, + "y": 457.068, "z": 0 }, "_scale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, + "x": 0.5, + "y": 0.5, "z": 1 }, "_eulerAngles": { @@ -846,7 +3308,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 17 + "__id__": 29 }, "_enabled": true, "_materials": [ @@ -874,210 +3336,28 @@ "_id": "7a+u8+55lLSJL08EPKddLq" }, { - "__type__": "cc.Node", - "_name": "Bullet", - "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_level": 2, - "_components": [ - { - "__id__": 20 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 107, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 20.373, - "y": 168.422, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 0.15, - "y": 0.2, - "z": 1 - }, - "_eulerAngles": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 90 - }, - "_skewX": 0, - "_skewY": 0, - "_is3DNode": false, - "groupIndex": 0, - "_id": "f4xpsR+sJJ86l8C4Tf5XS9" - }, - { - "__type__": "cc.Sprite", + "__type__": "1a501MCRppNhZR74uSrFLbc", "_name": "", "_objFlags": 0, "node": { - "__id__": 19 + "__id__": 29 }, "_enabled": true, - "_materials": [ - { - "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" - } - ], - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "e3b2dec1-9de5-459d-8b97-1335000bc60f" + "duratrion": 1.5, + "moveAmountX": 300, + "moveAmountY": 75, + "yellowBullet": { + "__uuid__": "d6a31879-4924-4889-995f-06e86f666750" }, - "_type": 0, - "_sizeMode": 1, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_atlas": null, - "_id": "17nHSxCp1INpfWOpL2+uPy" - }, - { - "__type__": "cc.Node", - "_name": "greenbullet", - "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_level": 2, - "_components": [ - { - "__id__": 22 - }, - { - "__id__": 23 - }, - { - "__id__": 24 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 30, - "height": 5 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 23.334, - "y": -180.667, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 0.4, - "y": 1, - "z": 1 - }, - "_eulerAngles": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 90 - }, - "_skewX": 0, - "_skewY": 0, - "_is3DNode": false, - "groupIndex": 1, - "_id": "7ecCcOtJ1F1L0KGm/DlBkM" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 21 - }, - "_enabled": true, - "_materials": [ - { - "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" - } - ], - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "4b8db938-46ea-4d13-baae-2576f0d38610" - }, - "_type": 0, - "_sizeMode": 1, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_atlas": null, - "_id": "8f5/Nu625BkpbGoxZj/LEO" - }, - { - "__type__": "703c7fWWSFIqLoVKP56Pw8g", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 21 - }, - "_enabled": true, - "label": null, - "text": "hello", - "BulletSpeed": -500, - "_id": "01vS3EADhFDa1/Pux7n4sn" + "enemyLife": 3, + "_id": "eexXrshxRC76vDZ29vxlaT" }, { "__type__": "cc.PolygonCollider", "_name": "", "_objFlags": 0, "node": { - "__id__": 21 + "__id__": 29 }, "_enabled": true, "tag": 0, @@ -1089,41 +3369,990 @@ "points": [ { "__type__": "cc.Vec2", - "x": -12, - "y": 2.5 + "x": -7, + "y": 46.5 }, { "__type__": "cc.Vec2", - "x": -15, - "y": 1.5 + "x": -7, + "y": 38.5 }, { "__type__": "cc.Vec2", - "x": -15, - "y": -1.5 + "x": -11, + "y": 41.5 }, { "__type__": "cc.Vec2", - "x": -13, + "x": -10, + "y": 37.5 + }, + { + "__type__": "cc.Vec2", + "x": -14, + "y": 36.5 + }, + { + "__type__": "cc.Vec2", + "x": -16, + "y": 40.5 + }, + { + "__type__": "cc.Vec2", + "x": -17, + "y": 35.5 + }, + { + "__type__": "cc.Vec2", + "x": -25, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": -27, + "y": 30.5 + }, + { + "__type__": "cc.Vec2", + "x": -32, + "y": 28.5 + }, + { + "__type__": "cc.Vec2", + "x": -37, + "y": 23.5 + }, + { + "__type__": "cc.Vec2", + "x": -37, + "y": 21.5 + }, + { + "__type__": "cc.Vec2", + "x": -38, + "y": 26.5 + }, + { + "__type__": "cc.Vec2", + "x": -32, + "y": 30.5 + }, + { + "__type__": "cc.Vec2", + "x": -29, + "y": 30.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": 34.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": 37.5 + }, + { + "__type__": "cc.Vec2", + "x": -28, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": -31, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": -36, + "y": 34.5 + }, + { + "__type__": "cc.Vec2", + "x": -42, + "y": 23.5 + }, + { + "__type__": "cc.Vec2", + "x": -42, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": -45, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": -49, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": -50, + "y": -4.5 + }, + { + "__type__": "cc.Vec2", + "x": -50, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": -47, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": -47, + "y": -17.5 + }, + { + "__type__": "cc.Vec2", + "x": -51, + "y": -18.5 + }, + { + "__type__": "cc.Vec2", + "x": -51, + "y": -34.5 + }, + { + "__type__": "cc.Vec2", + "x": -49, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -46, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": -48, + "y": -34.5 + }, + { + "__type__": "cc.Vec2", + "x": -47, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": -46, + "y": -26.5 + }, + { + "__type__": "cc.Vec2", + "x": -43, + "y": -30.5 + }, + { + "__type__": "cc.Vec2", + "x": -44, + "y": -34.5 + }, + { + "__type__": "cc.Vec2", + "x": -42, + "y": -38.5 + }, + { + "__type__": "cc.Vec2", + "x": -40, + "y": -38.5 + }, + { + "__type__": "cc.Vec2", + "x": -38, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": -31, + "y": -42.5 + }, + { + "__type__": "cc.Vec2", + "x": -29, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -22, + "y": -36.5 + }, + { + "__type__": "cc.Vec2", + "x": -20, + "y": -31.5 + }, + { + "__type__": "cc.Vec2", + "x": -20, + "y": -20.5 + }, + { + "__type__": "cc.Vec2", + "x": -24, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": -33, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": -32, "y": -2.5 }, { "__type__": "cc.Vec2", - "x": 15, - "y": -1.5 + "x": -34, + "y": -2.5 }, { "__type__": "cc.Vec2", - "x": 14, + "x": -36, "y": 1.5 }, { "__type__": "cc.Vec2", - "x": 10, + "x": -34, "y": 2.5 + }, + { + "__type__": "cc.Vec2", + "x": -35, + "y": 7.5 + }, + { + "__type__": "cc.Vec2", + "x": -33, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": -30, + "y": 2.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": -30, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": -30, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": -27, + "y": 14.5 + }, + { + "__type__": "cc.Vec2", + "x": -27, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": -24, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": -22, + "y": 6.5 + }, + { + "__type__": "cc.Vec2", + "x": -19, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": -17, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": -22, + "y": 13.5 + }, + { + "__type__": "cc.Vec2", + "x": -21, + "y": 19.5 + }, + { + "__type__": "cc.Vec2", + "x": -18, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": -15, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": -6, + "y": 15.5 + }, + { + "__type__": "cc.Vec2", + "x": -5, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": -6, + "y": -4.5 + }, + { + "__type__": "cc.Vec2", + "x": -8, + "y": -1.5 + }, + { + "__type__": "cc.Vec2", + "x": -7, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": 5.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": -14, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": -13, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": -11, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": -11, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": -13, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": -13, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": -8, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": -7, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": -5, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": -5, + "y": -31.5 + }, + { + "__type__": "cc.Vec2", + "x": -1, + "y": -20.5 + }, + { + "__type__": "cc.Vec2", + "x": -1, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": 2, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": 0, + "y": -18.5 + }, + { + "__type__": "cc.Vec2", + "x": 4, + "y": -28.5 + }, + { + "__type__": "cc.Vec2", + "x": 4, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": 7, + "y": -38.5 + }, + { + "__type__": "cc.Vec2", + "x": 6, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": 8, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": -23.5 + }, + { + "__type__": "cc.Vec2", + "x": 13, + "y": -14.5 + }, + { + "__type__": "cc.Vec2", + "x": 13, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 11, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 11, + "y": -14.5 + }, + { + "__type__": "cc.Vec2", + "x": 10, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 13, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": 14, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": 12, + "y": -0.5 + }, + { + "__type__": "cc.Vec2", + "x": 11, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": -7.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": 7.5 + }, + { + "__type__": "cc.Vec2", + "x": 7, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": 8, + "y": 1.5 + }, + { + "__type__": "cc.Vec2", + "x": 6, + "y": -3.5 + }, + { + "__type__": "cc.Vec2", + "x": 4, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": 6, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": 5, + "y": 14.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": 10, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": 8, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 10, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 15, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": 21, + "y": 18.5 + }, + { + "__type__": "cc.Vec2", + "x": 21, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": 16, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": 18, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": 23, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": 27, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": 27, + "y": 13.5 + }, + { + "__type__": "cc.Vec2", + "x": 29, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 29, + "y": 7.5 + }, + { + "__type__": "cc.Vec2", + "x": 25, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": 27, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": 31, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": 32, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": 34, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": 35, + "y": 2.5 + }, + { + "__type__": "cc.Vec2", + "x": 35, + "y": -0.5 + }, + { + "__type__": "cc.Vec2", + "x": 32, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": 33, + "y": -5.5 + }, + { + "__type__": "cc.Vec2", + "x": 28, + "y": -10.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": -10.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 20, + "y": -19.5 + }, + { + "__type__": "cc.Vec2", + "x": 20, + "y": -33.5 + }, + { + "__type__": "cc.Vec2", + "x": 22, + "y": -37.5 + }, + { + "__type__": "cc.Vec2", + "x": 30, + "y": -42.5 + }, + { + "__type__": "cc.Vec2", + "x": 35, + "y": -42.5 + }, + { + "__type__": "cc.Vec2", + "x": 39, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": 43, + "y": -35.5 + }, + { + "__type__": "cc.Vec2", + "x": 43, + "y": -29.5 + }, + { + "__type__": "cc.Vec2", + "x": 45, + "y": -27.5 + }, + { + "__type__": "cc.Vec2", + "x": 46, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": 48, + "y": -25.5 + }, + { + "__type__": "cc.Vec2", + "x": 48, + "y": -31.5 + }, + { + "__type__": "cc.Vec2", + "x": 45, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": 49, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": 51, + "y": -32.5 + }, + { + "__type__": "cc.Vec2", + "x": 50, + "y": -17.5 + }, + { + "__type__": "cc.Vec2", + "x": 47, + "y": -17.5 + }, + { + "__type__": "cc.Vec2", + "x": 47, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 49, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": 48, + "y": 5.5 + }, + { + "__type__": "cc.Vec2", + "x": 37, + "y": 32.5 + }, + { + "__type__": "cc.Vec2", + "x": 30, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": 38.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": 32.5 + }, + { + "__type__": "cc.Vec2", + "x": 31, + "y": 29.5 + }, + { + "__type__": "cc.Vec2", + "x": 34, + "y": 29.5 + }, + { + "__type__": "cc.Vec2", + "x": 38, + "y": 25.5 + }, + { + "__type__": "cc.Vec2", + "x": 37, + "y": 21.5 + }, + { + "__type__": "cc.Vec2", + "x": 35, + "y": 25.5 + }, + { + "__type__": "cc.Vec2", + "x": 28, + "y": 29.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": 32.5 + }, + { + "__type__": "cc.Vec2", + "x": 20, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": 20, + "y": 35.5 + }, + { + "__type__": "cc.Vec2", + "x": 18, + "y": 34.5 + }, + { + "__type__": "cc.Vec2", + "x": 16, + "y": 36.5 + }, + { + "__type__": "cc.Vec2", + "x": 16, + "y": 40.5 + }, + { + "__type__": "cc.Vec2", + "x": 14, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": 14, + "y": 36.5 + }, + { + "__type__": "cc.Vec2", + "x": 10, + "y": 36.5 + }, + { + "__type__": "cc.Vec2", + "x": 11, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": 8, + "y": 38.5 + }, + { + "__type__": "cc.Vec2", + "x": 6, + "y": 38.5 + }, + { + "__type__": "cc.Vec2", + "x": 7, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": 5, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": 3, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": 1, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": 0, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": -3, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": -5, + "y": 45.5 } ], - "_id": "71V6W6+DpALrLKIrb3VnkD" + "_id": "4cpxWhepRH6LauwD/5qQvk" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 29 + }, + "_enabled": true, + "_defaultClip": { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + }, + "_clips": [ + { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + } + ], + "playOnLoad": false, + "_id": "23xpWgGTVEd7BhgIdP2Mx/" }, { "__type__": "cc.Canvas", @@ -1138,7 +4367,7 @@ "width": 960, "height": 640 }, - "_fitWidth": false, + "_fitWidth": true, "_fitHeight": true, "_id": "e2OE2J5mRL6KAZyjKQpoOc" }, @@ -1150,8 +4379,15 @@ "__id__": 2 }, "_enabled": true, - "label": null, - "text": "hello", + "alienship1": { + "__uuid__": "30cd2ea4-f09d-4e95-ac5a-5da2f6caff02" + }, + "alienship2": { + "__uuid__": "ae1edc08-8943-4d97-9dc5-cafe25f7c26f" + }, + "alienship3": { + "__uuid__": "62c4d241-de53-40eb-bdb5-4911b2509030" + }, "_id": "77Y3BgqzhPzpdYEPdwxYS3" } ] \ No newline at end of file diff --git a/assets/Scripts/EnemyShip.ts b/assets/Scripts/EnemyShip.ts new file mode 100644 index 0000000..7198e91 --- /dev/null +++ b/assets/Scripts/EnemyShip.ts @@ -0,0 +1,82 @@ +// Learn TypeScript: +// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html +// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html +// Learn Attribute: +// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html +// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html +// Learn life-cycle callbacks: +// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html +// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html + +const {ccclass, property} = cc._decorator; + +@ccclass +export default class NewClass extends cc.Component { + + @property + duratrion : number = 0.5; + @property + moveAmountX : number = 100; + @property + moveAmountY : number = 50; + moveEnemy : cc.ActionInterval; + + @property(cc.Prefab) + yellowBullet: cc.Prefab = null; + + @property + enemyLife: number = 3 + + playAnimation : Boolean = true; + + setMovements() { + var moveLeft = cc.moveBy(this.duratrion, cc.v2(-this.moveAmountX, -this.moveAmountY)).easing(cc.easeCircleActionInOut()); + var moveRight = cc.moveBy(this.duratrion, cc.v2(this.moveAmountX, -this.moveAmountY)).easing(cc.easeCircleActionInOut()); + return cc.repeatForever(cc.sequence(moveLeft, moveRight)); + } + + shootBullets() { + var bullet = cc.instantiate(this.yellowBullet); + bullet.setPosition(this.node.position.x, this.node.position.y - 60); + this.node.parent.addChild(bullet); + } + + // LIFE-CYCLE CALLBACKS: + + onLoad () { + this.moveEnemy = this.setMovements(); + this.node.runAction(this.moveEnemy); + + this.schedule(this.shootBullets, Math.random() * 0.5 + 0.5, cc.macro.REPEAT_FOREVER, 0); + } + onCollisionEnter(otherCollider, selfCollider) { + if(otherCollider.name === 'greenbullet') { + this.enemyLife--; + if(this.enemyLife <= 0 && this.playAnimation) { + this.node.stopAllActions(); + this.playAnimation = false; + this.node.getComponent(cc.Animation).play(); + } + } + if(otherCollider.name === 'player') { + this.node.destroy(); + cc.director.loadScene('Menu'); + } + } + + removeExplosion() { + this.node.destroy(); + this.node.parent.getComponent('Game').spawnShips(); + } + + start () { + + } + + update (dt) { + if(this.node.position.y <= -(this.node.parent.getContentSize().height)) { + this.node.destroy(); + cc.director.loadScene('Menu'); + } + } +} diff --git a/assets/Scripts/EnemyShip.ts.meta b/assets/Scripts/EnemyShip.ts.meta new file mode 100644 index 0000000..5f0a11a --- /dev/null +++ b/assets/Scripts/EnemyShip.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "1a501302-469a-4d85-947b-e2e4ab14b6dc", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scripts/Game.ts b/assets/Scripts/Game.ts index 4d86fba..5a57921 100644 --- a/assets/Scripts/Game.ts +++ b/assets/Scripts/Game.ts @@ -13,13 +13,21 @@ const {ccclass, property} = cc._decorator; @ccclass export default class NewClass extends cc.Component { - @property(cc.Label) - label: cc.Label = null; + @property(cc.Prefab) + alienship1: cc.Prefab = null; - @property - text: string = 'hello'; + @property(cc.Prefab) + alienship2: cc.Prefab = null; - // LIFE-CYCLE CALLBACKS: + @property(cc.Prefab) + alienship3: cc.Prefab = null; + + spawnShips() { + var ships = [this.alienship1, this.alienship2, this.alienship3]; + var ship = cc.instantiate(ships[Math.floor(Math.random() * ships.length)]); + ship.setPosition(Math.random() * 800 - 400, this.node.position.y + ship.getContentSize().height * 5); + this.node.addChild(ship); + } onLoad () { var manager = cc.director.getCollisionManager(); diff --git a/assets/Scripts/MoveBullet.ts b/assets/Scripts/MoveBullet.ts index 604f606..13cb149 100644 --- a/assets/Scripts/MoveBullet.ts +++ b/assets/Scripts/MoveBullet.ts @@ -24,7 +24,15 @@ export default class NewClass extends cc.Component { // LIFE-CYCLE CALLBACKS: - // onLoad () {} + onCollisionEnter(otherCollider, selfCollider) { + if(['alienship3', 'alienship4', 'alienship5'].indexOf(otherCollider.name) !== -1) { + this.node.destroy(); + } + } + + onLoad () { + cc.director.preloadScene('Menu'); + } start () { diff --git a/assets/Scripts/MoveJet.ts b/assets/Scripts/MoveJet.ts index 2702423..b680bb0 100644 --- a/assets/Scripts/MoveJet.ts +++ b/assets/Scripts/MoveJet.ts @@ -19,6 +19,18 @@ export default class NewClass extends cc.Component { @property(cc.Prefab) greenBullet: cc.Prefab = null; + playerLifes: number = 5; + + onCollisionEnter(otherCollider, selfCollider) { + if(otherCollider.name === 'Bullet') { + this.playerLifes--; + otherCollider.node.destroy(); + if(this.playerLifes <= 0) { + this.node.destroy(); + cc.director.loadScene('Menu'); + } + } + } shootBullets() { var bullet = cc.instantiate(this.greenBullet); bullet.setPosition(this.node.position.x, this.node.position.y + 40); diff --git a/assets/alienship1.png b/assets/alienship1.png deleted file mode 100644 index 980e7e6..0000000 Binary files a/assets/alienship1.png and /dev/null differ diff --git a/assets/alienship1.png.meta b/assets/alienship1.png.meta deleted file mode 100644 index 2a8a86d..0000000 --- a/assets/alienship1.png.meta +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ver": "2.3.3", - "uuid": "cc2e67f0-0ceb-4da8-9632-bd91b3dcab54", - "type": "sprite", - "wrapMode": "clamp", - "filterMode": "bilinear", - "premultiplyAlpha": false, - "genMipmaps": false, - "packable": true, - "platformSettings": {}, - "subMetas": { - "alienship1": { - "ver": "1.0.4", - "uuid": "875bbb9c-ed50-4318-96c8-e7076ad5f265", - "rawTextureUuid": "cc2e67f0-0ceb-4da8-9632-bd91b3dcab54", - "trimType": "auto", - "trimThreshold": 1, - "rotated": false, - "offsetX": 8, - "offsetY": 3, - "trimX": 17, - "trimY": 2, - "width": 165, - "height": 154, - "rawWidth": 183, - "rawHeight": 164, - "borderTop": 0, - "borderBottom": 0, - "borderLeft": 0, - "borderRight": 0, - "subMetas": {} - } - } -} \ No newline at end of file diff --git a/assets/alienship3.prefab b/assets/alienship3.prefab new file mode 100644 index 0000000..f1e7d66 --- /dev/null +++ b/assets/alienship3.prefab @@ -0,0 +1,743 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false, + "readonly": false + }, + { + "__type__": "cc.Node", + "_name": "alienship3", + "_objFlags": 0, + "_parent": null, + "_children": [], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 2 + }, + { + "__id__": 3 + }, + { + "__id__": 4 + }, + { + "__id__": 5 + } + ], + "_prefab": { + "__id__": 6 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 95, + "height": 98 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 20.299, + "y": 291.321, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 90 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 2, + "_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__": "858a9413-cff3-4cca-a59f-f366483b9b62" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "1a501MCRppNhZR74uSrFLbc", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "duratrion": 0.5, + "moveAmountX": 100, + "moveAmountY": 75, + "yellowBullet": { + "__uuid__": "d6a31879-4924-4889-995f-06e86f666750" + }, + "enemyLife": 3, + "_id": "" + }, + { + "__type__": "cc.PolygonCollider", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "tag": 0, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "points": [ + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": 49 + }, + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": 47 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": 45 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": 43 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": 41 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": 40 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": 38 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": 36 + }, + { + "__type__": "cc.Vec2", + "x": 32.5, + "y": 34 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": 34 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": 31 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": 26 + }, + { + "__type__": "cc.Vec2", + "x": 23.5, + "y": 26 + }, + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": 21 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": 22 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": 20 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": 19 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": 17 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": 15 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": 14 + }, + { + "__type__": "cc.Vec2", + "x": 9.5, + "y": 14 + }, + { + "__type__": "cc.Vec2", + "x": 3.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -3.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -3.5, + "y": 8 + }, + { + "__type__": "cc.Vec2", + "x": -11.5, + "y": 8 + }, + { + "__type__": "cc.Vec2", + "x": -10.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -12.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": -22.5, + "y": 6 + }, + { + "__type__": "cc.Vec2", + "x": -25.5, + "y": 3 + }, + { + "__type__": "cc.Vec2", + "x": -40.5, + "y": 3 + }, + { + "__type__": "cc.Vec2", + "x": -47.5, + "y": 1 + }, + { + "__type__": "cc.Vec2", + "x": -46.5, + "y": -2 + }, + { + "__type__": "cc.Vec2", + "x": -24.5, + "y": -4 + }, + { + "__type__": "cc.Vec2", + "x": -20.5, + "y": -8 + }, + { + "__type__": "cc.Vec2", + "x": -11.5, + "y": -11 + }, + { + "__type__": "cc.Vec2", + "x": -10.5, + "y": -9 + }, + { + "__type__": "cc.Vec2", + "x": -12.5, + "y": -8 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": -8 + }, + { + "__type__": "cc.Vec2", + "x": -3.5, + "y": -9 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -11 + }, + { + "__type__": "cc.Vec2", + "x": 3.5, + "y": -10 + }, + { + "__type__": "cc.Vec2", + "x": 3.5, + "y": -12 + }, + { + "__type__": "cc.Vec2", + "x": 8.5, + "y": -13 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": -15 + }, + { + "__type__": "cc.Vec2", + "x": 13.5, + "y": -14 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": -16 + }, + { + "__type__": "cc.Vec2", + "x": 13.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": -20 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": -22 + }, + { + "__type__": "cc.Vec2", + "x": 18.5, + "y": -22 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": -27 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": -27 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": -31 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": -35 + }, + { + "__type__": "cc.Vec2", + "x": 32.5, + "y": -35 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": -39 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": -41 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": -43 + }, + { + "__type__": "cc.Vec2", + "x": 25.5, + "y": -46 + }, + { + "__type__": "cc.Vec2", + "x": 19.5, + "y": -47 + }, + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": -49 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -49 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": -47 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": -46 + }, + { + "__type__": "cc.Vec2", + "x": 38.5, + "y": -43 + }, + { + "__type__": "cc.Vec2", + "x": 40.5, + "y": -39 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": -36 + }, + { + "__type__": "cc.Vec2", + "x": 47.5, + "y": -34 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": -33 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": -26 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": -26 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -24 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": -17 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": -15 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": -15 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": -12 + }, + { + "__type__": "cc.Vec2", + "x": 38.5, + "y": -16 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -16 + }, + { + "__type__": "cc.Vec2", + "x": 34.5, + "y": -13 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -11 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": -9 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -7 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -5 + }, + { + "__type__": "cc.Vec2", + "x": 41.5, + "y": -4 + }, + { + "__type__": "cc.Vec2", + "x": 41.5, + "y": -2 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": -1 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 1 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 1 + }, + { + "__type__": "cc.Vec2", + "x": 40.5, + "y": 4 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": 4 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 7 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 7 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 9 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": 10 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 11 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 14 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": 15 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 11 + }, + { + "__type__": "cc.Vec2", + "x": 46.5, + "y": 13 + }, + { + "__type__": "cc.Vec2", + "x": 43.5, + "y": 14 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": 16 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 17 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 19 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": 25 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": 26 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 32 + }, + { + "__type__": "cc.Vec2", + "x": 47.5, + "y": 34 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": 37 + }, + { + "__type__": "cc.Vec2", + "x": 40.5, + "y": 38 + }, + { + "__type__": "cc.Vec2", + "x": 38.5, + "y": 42 + }, + { + "__type__": "cc.Vec2", + "x": 38.5, + "y": 44 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 45 + }, + { + "__type__": "cc.Vec2", + "x": 42.5, + "y": 47 + } + ], + "_id": "" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_defaultClip": { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + }, + "_clips": [ + { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + } + ], + "playOnLoad": false, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "a2v8qIaKpJ9KfekoQURhld", + "sync": false + } +] \ No newline at end of file diff --git a/assets/alienship3.prefab.meta b/assets/alienship3.prefab.meta new file mode 100644 index 0000000..370bc79 --- /dev/null +++ b/assets/alienship3.prefab.meta @@ -0,0 +1,8 @@ +{ + "ver": "1.2.1", + "uuid": "30cd2ea4-f09d-4e95-ac5a-5da2f6caff02", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "readonly": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/alienship4.prefab b/assets/alienship4.prefab new file mode 100644 index 0000000..631ab33 --- /dev/null +++ b/assets/alienship4.prefab @@ -0,0 +1,1108 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false, + "readonly": false + }, + { + "__type__": "cc.Node", + "_name": "alienship4", + "_objFlags": 0, + "_parent": null, + "_children": [], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 2 + }, + { + "__id__": 3 + }, + { + "__id__": 4 + }, + { + "__id__": 5 + } + ], + "_prefab": { + "__id__": 6 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 125, + "height": 119 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -332.813, + "y": 284.952, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 2, + "_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__": "48bbad1f-0b60-4f3e-89e0-777274ef9cda" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "1a501MCRppNhZR74uSrFLbc", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "duratrion": 1, + "moveAmountX": 125, + "moveAmountY": 100, + "yellowBullet": { + "__uuid__": "d6a31879-4924-4889-995f-06e86f666750" + }, + "enemyLife": 3, + "_id": "" + }, + { + "__type__": "cc.PolygonCollider", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "tag": 0, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "points": [ + { + "__type__": "cc.Vec2", + "x": -1.5, + "y": 59.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 55.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 51.5 + }, + { + "__type__": "cc.Vec2", + "x": -8.5, + "y": 48.5 + }, + { + "__type__": "cc.Vec2", + "x": -8.5, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": -10.5, + "y": 40.5 + }, + { + "__type__": "cc.Vec2", + "x": -10.5, + "y": 43.5 + }, + { + "__type__": "cc.Vec2", + "x": -14.5, + "y": 48.5 + }, + { + "__type__": "cc.Vec2", + "x": -21.5, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": -21.5, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": -23.5, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": -26.5, + "y": 28.5 + }, + { + "__type__": "cc.Vec2", + "x": -27.5, + "y": 15.5 + }, + { + "__type__": "cc.Vec2", + "x": -29.5, + "y": 14.5 + }, + { + "__type__": "cc.Vec2", + "x": -30.5, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": -30.5, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": -35.5, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": -35.5, + "y": 5.5 + }, + { + "__type__": "cc.Vec2", + "x": -37.5, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": -37.5, + "y": -1.5 + }, + { + "__type__": "cc.Vec2", + "x": -35.5, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": -36.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": -45.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": -45.5, + "y": -9.5 + }, + { + "__type__": "cc.Vec2", + "x": -50.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": -52.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": -5.5 + }, + { + "__type__": "cc.Vec2", + "x": -58.5, + "y": -3.5 + }, + { + "__type__": "cc.Vec2", + "x": -62.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": -58.5, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": -17.5 + }, + { + "__type__": "cc.Vec2", + "x": -56.5, + "y": -19.5 + }, + { + "__type__": "cc.Vec2", + "x": -59.5, + "y": -20.5 + }, + { + "__type__": "cc.Vec2", + "x": -60.5, + "y": -24.5 + }, + { + "__type__": "cc.Vec2", + "x": -52.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": -50.5, + "y": -48.5 + }, + { + "__type__": "cc.Vec2", + "x": -50.5, + "y": -53.5 + }, + { + "__type__": "cc.Vec2", + "x": -48.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": -47.5, + "y": -53.5 + }, + { + "__type__": "cc.Vec2", + "x": -43.5, + "y": -56.5 + }, + { + "__type__": "cc.Vec2", + "x": -40.5, + "y": -54.5 + }, + { + "__type__": "cc.Vec2", + "x": -39.5, + "y": -59.5 + }, + { + "__type__": "cc.Vec2", + "x": -37.5, + "y": -59.5 + }, + { + "__type__": "cc.Vec2", + "x": -38.5, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": -36.5, + "y": -45.5 + }, + { + "__type__": "cc.Vec2", + "x": -35.5, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -34.5, + "y": -50.5 + }, + { + "__type__": "cc.Vec2", + "x": -31.5, + "y": -50.5 + }, + { + "__type__": "cc.Vec2", + "x": -28.5, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -29.5, + "y": -28.5 + }, + { + "__type__": "cc.Vec2", + "x": -31.5, + "y": -29.5 + }, + { + "__type__": "cc.Vec2", + "x": -31.5, + "y": -27.5 + }, + { + "__type__": "cc.Vec2", + "x": -28.5, + "y": -25.5 + }, + { + "__type__": "cc.Vec2", + "x": -27.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": -25.5, + "y": -24.5 + }, + { + "__type__": "cc.Vec2", + "x": -22.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": -24.5, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": -20.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": -20.5, + "y": -3.5 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": -18.5, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": -19.5, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": -19.5, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": -17.5, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": -15.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": -9.5, + "y": 24.5 + }, + { + "__type__": "cc.Vec2", + "x": -8.5, + "y": 27.5 + }, + { + "__type__": "cc.Vec2", + "x": -4.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": 21.5 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": 18.5 + }, + { + "__type__": "cc.Vec2", + "x": -7.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": -11.5, + "y": -10.5 + }, + { + "__type__": "cc.Vec2", + "x": -13.5, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": -15.5, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": -14.5, + "y": -26.5 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": -32.5 + }, + { + "__type__": "cc.Vec2", + "x": -16.5, + "y": -43.5 + }, + { + "__type__": "cc.Vec2", + "x": -13.5, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -9.5, + "y": -48.5 + }, + { + "__type__": "cc.Vec2", + "x": -9.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": -50.5 + }, + { + "__type__": "cc.Vec2", + "x": -6.5, + "y": -52.5 + }, + { + "__type__": "cc.Vec2", + "x": -3.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": -2.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 1.5, + "y": -52.5 + }, + { + "__type__": "cc.Vec2", + "x": 1.5, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": 3.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": -49.5 + }, + { + "__type__": "cc.Vec2", + "x": 7.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 9.5, + "y": -50.5 + }, + { + "__type__": "cc.Vec2", + "x": 9.5, + "y": -47.5 + }, + { + "__type__": "cc.Vec2", + "x": 13.5, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": 16.5, + "y": -43.5 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": -28.5 + }, + { + "__type__": "cc.Vec2", + "x": 15.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": 12.5, + "y": -19.5 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": 7.5, + "y": -3.5 + }, + { + "__type__": "cc.Vec2", + "x": 8.5, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": 4.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": 27.5 + }, + { + "__type__": "cc.Vec2", + "x": 11.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": 22.5 + }, + { + "__type__": "cc.Vec2", + "x": 15.5, + "y": 19.5 + }, + { + "__type__": "cc.Vec2", + "x": 19.5, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": 19.5, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 16.5, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": 15.5, + "y": 5.5 + }, + { + "__type__": "cc.Vec2", + "x": 18.5, + "y": 2.5 + }, + { + "__type__": "cc.Vec2", + "x": 17.5, + "y": -1.5 + }, + { + "__type__": "cc.Vec2", + "x": 20.5, + "y": -4.5 + }, + { + "__type__": "cc.Vec2", + "x": 19.5, + "y": -7.5 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": 22.5, + "y": -19.5 + }, + { + "__type__": "cc.Vec2", + "x": 22.5, + "y": -23.5 + }, + { + "__type__": "cc.Vec2", + "x": 24.5, + "y": -24.5 + }, + { + "__type__": "cc.Vec2", + "x": 25.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": -26.5 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": -27.5 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": -28.5 + }, + { + "__type__": "cc.Vec2", + "x": 29.5, + "y": -36.5 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": -37.5 + }, + { + "__type__": "cc.Vec2", + "x": 27.5, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": 31.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 33.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 33.5, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -45.5 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": -45.5 + }, + { + "__type__": "cc.Vec2", + "x": 36.5, + "y": -59.5 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": -58.5 + }, + { + "__type__": "cc.Vec2", + "x": 39.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": 48.5, + "y": -55.5 + }, + { + "__type__": "cc.Vec2", + "x": 48.5, + "y": -53.5 + }, + { + "__type__": "cc.Vec2", + "x": 52.5, + "y": -51.5 + }, + { + "__type__": "cc.Vec2", + "x": 52.5, + "y": -47.5 + }, + { + "__type__": "cc.Vec2", + "x": 55.5, + "y": -42.5 + }, + { + "__type__": "cc.Vec2", + "x": 55.5, + "y": -35.5 + }, + { + "__type__": "cc.Vec2", + "x": 59.5, + "y": -26.5 + }, + { + "__type__": "cc.Vec2", + "x": 59.5, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": 56.5, + "y": -20.5 + }, + { + "__type__": "cc.Vec2", + "x": 56.5, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": 58.5, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": 58.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": 62.5, + "y": -4.5 + }, + { + "__type__": "cc.Vec2", + "x": 62.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": 59.5, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": 55.5, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": 55.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": 51.5, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": 49.5, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 45.5, + "y": -9.5 + }, + { + "__type__": "cc.Vec2", + "x": 44.5, + "y": -11.5 + }, + { + "__type__": "cc.Vec2", + "x": 40.5, + "y": -10.5 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": -9.5 + }, + { + "__type__": "cc.Vec2", + "x": 37.5, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": 35.5, + "y": 7.5 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": 15.5 + }, + { + "__type__": "cc.Vec2", + "x": 30.5, + "y": 19.5 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": 28.5, + "y": 15.5 + }, + { + "__type__": "cc.Vec2", + "x": 26.5, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": 25.5, + "y": 30.5 + }, + { + "__type__": "cc.Vec2", + "x": 23.5, + "y": 31.5 + }, + { + "__type__": "cc.Vec2", + "x": 23.5, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": 21.5, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": 18.5, + "y": 44.5 + }, + { + "__type__": "cc.Vec2", + "x": 14.5, + "y": 48.5 + }, + { + "__type__": "cc.Vec2", + "x": 12.5, + "y": 48.5 + }, + { + "__type__": "cc.Vec2", + "x": 12.5, + "y": 45.5 + }, + { + "__type__": "cc.Vec2", + "x": 10.5, + "y": 45.5 + }, + { + "__type__": "cc.Vec2", + "x": 9.5, + "y": 40.5 + }, + { + "__type__": "cc.Vec2", + "x": 6.5, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": 7.5, + "y": 50.5 + }, + { + "__type__": "cc.Vec2", + "x": 5.5, + "y": 53.5 + }, + { + "__type__": "cc.Vec2", + "x": 5.5, + "y": 57.5 + } + ], + "_id": "" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_defaultClip": { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + }, + "_clips": [ + { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + } + ], + "playOnLoad": false, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "abaWHTg1VBt7IU8cLHOhFV", + "sync": false + } +] \ No newline at end of file diff --git a/assets/alienship4.prefab.meta b/assets/alienship4.prefab.meta new file mode 100644 index 0000000..06fdceb --- /dev/null +++ b/assets/alienship4.prefab.meta @@ -0,0 +1,8 @@ +{ + "ver": "1.2.1", + "uuid": "ae1edc08-8943-4d97-9dc5-cafe25f7c26f", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "readonly": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/alienship5.prefab b/assets/alienship5.prefab new file mode 100644 index 0000000..45176d6 --- /dev/null +++ b/assets/alienship5.prefab @@ -0,0 +1,1143 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false, + "readonly": false + }, + { + "__type__": "cc.Node", + "_name": "alienship5", + "_objFlags": 0, + "_parent": null, + "_children": [], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 2 + }, + { + "__id__": 3 + }, + { + "__id__": 4 + }, + { + "__id__": 5 + } + ], + "_prefab": { + "__id__": 6 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 102, + "height": 93 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 314.563, + "y": 292.913, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 2, + "_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__": "e04fd863-3d05-44ce-b7e5-fcfddaf73dfd" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "1a501MCRppNhZR74uSrFLbc", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "duratrion": 1.5, + "moveAmountX": 300, + "moveAmountY": 75, + "yellowBullet": { + "__uuid__": "d6a31879-4924-4889-995f-06e86f666750" + }, + "enemyLife": 3, + "_id": "" + }, + { + "__type__": "cc.PolygonCollider", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "tag": 0, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "points": [ + { + "__type__": "cc.Vec2", + "x": -7, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": -7, + "y": 38.5 + }, + { + "__type__": "cc.Vec2", + "x": -11, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": 37.5 + }, + { + "__type__": "cc.Vec2", + "x": -14, + "y": 36.5 + }, + { + "__type__": "cc.Vec2", + "x": -16, + "y": 40.5 + }, + { + "__type__": "cc.Vec2", + "x": -17, + "y": 35.5 + }, + { + "__type__": "cc.Vec2", + "x": -25, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": -27, + "y": 30.5 + }, + { + "__type__": "cc.Vec2", + "x": -32, + "y": 28.5 + }, + { + "__type__": "cc.Vec2", + "x": -37, + "y": 23.5 + }, + { + "__type__": "cc.Vec2", + "x": -37, + "y": 21.5 + }, + { + "__type__": "cc.Vec2", + "x": -38, + "y": 26.5 + }, + { + "__type__": "cc.Vec2", + "x": -32, + "y": 30.5 + }, + { + "__type__": "cc.Vec2", + "x": -29, + "y": 30.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": 34.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": 37.5 + }, + { + "__type__": "cc.Vec2", + "x": -28, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": -31, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": -36, + "y": 34.5 + }, + { + "__type__": "cc.Vec2", + "x": -42, + "y": 23.5 + }, + { + "__type__": "cc.Vec2", + "x": -42, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": -45, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": -49, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": -50, + "y": -4.5 + }, + { + "__type__": "cc.Vec2", + "x": -50, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": -47, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": -47, + "y": -17.5 + }, + { + "__type__": "cc.Vec2", + "x": -51, + "y": -18.5 + }, + { + "__type__": "cc.Vec2", + "x": -51, + "y": -34.5 + }, + { + "__type__": "cc.Vec2", + "x": -49, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -46, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": -48, + "y": -34.5 + }, + { + "__type__": "cc.Vec2", + "x": -47, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": -46, + "y": -26.5 + }, + { + "__type__": "cc.Vec2", + "x": -43, + "y": -30.5 + }, + { + "__type__": "cc.Vec2", + "x": -44, + "y": -34.5 + }, + { + "__type__": "cc.Vec2", + "x": -42, + "y": -38.5 + }, + { + "__type__": "cc.Vec2", + "x": -40, + "y": -38.5 + }, + { + "__type__": "cc.Vec2", + "x": -38, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": -31, + "y": -42.5 + }, + { + "__type__": "cc.Vec2", + "x": -29, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": -22, + "y": -36.5 + }, + { + "__type__": "cc.Vec2", + "x": -20, + "y": -31.5 + }, + { + "__type__": "cc.Vec2", + "x": -20, + "y": -20.5 + }, + { + "__type__": "cc.Vec2", + "x": -24, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": -33, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": -32, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": -34, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": -36, + "y": 1.5 + }, + { + "__type__": "cc.Vec2", + "x": -34, + "y": 2.5 + }, + { + "__type__": "cc.Vec2", + "x": -35, + "y": 7.5 + }, + { + "__type__": "cc.Vec2", + "x": -33, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": -30, + "y": 2.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": -30, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": -30, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": -27, + "y": 14.5 + }, + { + "__type__": "cc.Vec2", + "x": -27, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": -26, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": -24, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": -22, + "y": 6.5 + }, + { + "__type__": "cc.Vec2", + "x": -19, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": -17, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": -22, + "y": 13.5 + }, + { + "__type__": "cc.Vec2", + "x": -21, + "y": 19.5 + }, + { + "__type__": "cc.Vec2", + "x": -18, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": -15, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": -6, + "y": 15.5 + }, + { + "__type__": "cc.Vec2", + "x": -5, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": -6, + "y": -4.5 + }, + { + "__type__": "cc.Vec2", + "x": -8, + "y": -1.5 + }, + { + "__type__": "cc.Vec2", + "x": -7, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": 5.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": -14, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": -13, + "y": -8.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": -11, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": -11, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": -13, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": -13, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": -10, + "y": -21.5 + }, + { + "__type__": "cc.Vec2", + "x": -8, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": -7, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": -5, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": -5, + "y": -31.5 + }, + { + "__type__": "cc.Vec2", + "x": -1, + "y": -20.5 + }, + { + "__type__": "cc.Vec2", + "x": -1, + "y": -13.5 + }, + { + "__type__": "cc.Vec2", + "x": 2, + "y": -16.5 + }, + { + "__type__": "cc.Vec2", + "x": 0, + "y": -18.5 + }, + { + "__type__": "cc.Vec2", + "x": 4, + "y": -28.5 + }, + { + "__type__": "cc.Vec2", + "x": 4, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": 7, + "y": -38.5 + }, + { + "__type__": "cc.Vec2", + "x": 6, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": 8, + "y": -46.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": -23.5 + }, + { + "__type__": "cc.Vec2", + "x": 13, + "y": -14.5 + }, + { + "__type__": "cc.Vec2", + "x": 13, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 11, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 11, + "y": -14.5 + }, + { + "__type__": "cc.Vec2", + "x": 10, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 13, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": 14, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": 12, + "y": -0.5 + }, + { + "__type__": "cc.Vec2", + "x": 11, + "y": -6.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": -7.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": 7.5 + }, + { + "__type__": "cc.Vec2", + "x": 7, + "y": 9.5 + }, + { + "__type__": "cc.Vec2", + "x": 8, + "y": 1.5 + }, + { + "__type__": "cc.Vec2", + "x": 6, + "y": -3.5 + }, + { + "__type__": "cc.Vec2", + "x": 4, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": 6, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": 5, + "y": 14.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": 17.5 + }, + { + "__type__": "cc.Vec2", + "x": 10, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": 8, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 10, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 15, + "y": 20.5 + }, + { + "__type__": "cc.Vec2", + "x": 21, + "y": 18.5 + }, + { + "__type__": "cc.Vec2", + "x": 21, + "y": 11.5 + }, + { + "__type__": "cc.Vec2", + "x": 16, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": 18, + "y": 3.5 + }, + { + "__type__": "cc.Vec2", + "x": 23, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": 27, + "y": 16.5 + }, + { + "__type__": "cc.Vec2", + "x": 27, + "y": 13.5 + }, + { + "__type__": "cc.Vec2", + "x": 29, + "y": 12.5 + }, + { + "__type__": "cc.Vec2", + "x": 29, + "y": 7.5 + }, + { + "__type__": "cc.Vec2", + "x": 25, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": 27, + "y": 0.5 + }, + { + "__type__": "cc.Vec2", + "x": 31, + "y": 4.5 + }, + { + "__type__": "cc.Vec2", + "x": 32, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": 34, + "y": 8.5 + }, + { + "__type__": "cc.Vec2", + "x": 35, + "y": 2.5 + }, + { + "__type__": "cc.Vec2", + "x": 35, + "y": -0.5 + }, + { + "__type__": "cc.Vec2", + "x": 32, + "y": -2.5 + }, + { + "__type__": "cc.Vec2", + "x": 33, + "y": -5.5 + }, + { + "__type__": "cc.Vec2", + "x": 28, + "y": -10.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": -10.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 20, + "y": -19.5 + }, + { + "__type__": "cc.Vec2", + "x": 20, + "y": -33.5 + }, + { + "__type__": "cc.Vec2", + "x": 22, + "y": -37.5 + }, + { + "__type__": "cc.Vec2", + "x": 30, + "y": -42.5 + }, + { + "__type__": "cc.Vec2", + "x": 35, + "y": -42.5 + }, + { + "__type__": "cc.Vec2", + "x": 39, + "y": -40.5 + }, + { + "__type__": "cc.Vec2", + "x": 43, + "y": -35.5 + }, + { + "__type__": "cc.Vec2", + "x": 43, + "y": -29.5 + }, + { + "__type__": "cc.Vec2", + "x": 45, + "y": -27.5 + }, + { + "__type__": "cc.Vec2", + "x": 46, + "y": -22.5 + }, + { + "__type__": "cc.Vec2", + "x": 48, + "y": -25.5 + }, + { + "__type__": "cc.Vec2", + "x": 48, + "y": -31.5 + }, + { + "__type__": "cc.Vec2", + "x": 45, + "y": -41.5 + }, + { + "__type__": "cc.Vec2", + "x": 49, + "y": -39.5 + }, + { + "__type__": "cc.Vec2", + "x": 51, + "y": -32.5 + }, + { + "__type__": "cc.Vec2", + "x": 50, + "y": -17.5 + }, + { + "__type__": "cc.Vec2", + "x": 47, + "y": -17.5 + }, + { + "__type__": "cc.Vec2", + "x": 47, + "y": -12.5 + }, + { + "__type__": "cc.Vec2", + "x": 49, + "y": -15.5 + }, + { + "__type__": "cc.Vec2", + "x": 48, + "y": 5.5 + }, + { + "__type__": "cc.Vec2", + "x": 37, + "y": 32.5 + }, + { + "__type__": "cc.Vec2", + "x": 30, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": 38.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": 32.5 + }, + { + "__type__": "cc.Vec2", + "x": 31, + "y": 29.5 + }, + { + "__type__": "cc.Vec2", + "x": 34, + "y": 29.5 + }, + { + "__type__": "cc.Vec2", + "x": 38, + "y": 25.5 + }, + { + "__type__": "cc.Vec2", + "x": 37, + "y": 21.5 + }, + { + "__type__": "cc.Vec2", + "x": 35, + "y": 25.5 + }, + { + "__type__": "cc.Vec2", + "x": 28, + "y": 29.5 + }, + { + "__type__": "cc.Vec2", + "x": 26, + "y": 32.5 + }, + { + "__type__": "cc.Vec2", + "x": 20, + "y": 33.5 + }, + { + "__type__": "cc.Vec2", + "x": 20, + "y": 35.5 + }, + { + "__type__": "cc.Vec2", + "x": 18, + "y": 34.5 + }, + { + "__type__": "cc.Vec2", + "x": 16, + "y": 36.5 + }, + { + "__type__": "cc.Vec2", + "x": 16, + "y": 40.5 + }, + { + "__type__": "cc.Vec2", + "x": 14, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": 14, + "y": 36.5 + }, + { + "__type__": "cc.Vec2", + "x": 10, + "y": 36.5 + }, + { + "__type__": "cc.Vec2", + "x": 11, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": 9, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": 8, + "y": 38.5 + }, + { + "__type__": "cc.Vec2", + "x": 6, + "y": 38.5 + }, + { + "__type__": "cc.Vec2", + "x": 7, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": 5, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": 3, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": 1, + "y": 41.5 + }, + { + "__type__": "cc.Vec2", + "x": 0, + "y": 46.5 + }, + { + "__type__": "cc.Vec2", + "x": -3, + "y": 39.5 + }, + { + "__type__": "cc.Vec2", + "x": -5, + "y": 45.5 + } + ], + "_id": "" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_defaultClip": { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + }, + "_clips": [ + { + "__uuid__": "e351c2ae-7a11-4a05-b5d6-e6c91d934581" + } + ], + "playOnLoad": false, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "42Y7rKoIZAuawCU18pO6kh", + "sync": false + } +] \ No newline at end of file diff --git a/assets/alienship5.prefab.meta b/assets/alienship5.prefab.meta new file mode 100644 index 0000000..fdcf25e --- /dev/null +++ b/assets/alienship5.prefab.meta @@ -0,0 +1,8 @@ +{ + "ver": "1.2.1", + "uuid": "62c4d241-de53-40eb-bdb5-4911b2509030", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "readonly": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/explosion.anim b/assets/explosion.anim new file mode 100644 index 0000000..67d7c06 --- /dev/null +++ b/assets/explosion.anim @@ -0,0 +1,86 @@ +{ + "__type__": "cc.AnimationClip", + "_name": "explosion", + "_objFlags": 0, + "_native": "", + "_duration": 0.6833333333333333, + "sample": 60, + "speed": 1, + "wrapMode": 1, + "curveData": { + "comps": { + "cc.Sprite": { + "spriteFrame": [ + { + "frame": 0, + "value": { + "__uuid__": "272e7776-a643-43f8-add8-764c5a2f407f" + } + }, + { + "frame": 0.08333333333333333, + "value": { + "__uuid__": "659d2d21-a496-4367-97be-676a28431ba3" + } + }, + { + "frame": 0.16666666666666666, + "value": { + "__uuid__": "3642f3f5-43ca-49c8-8470-5a27370efedd" + } + }, + { + "frame": 0.25, + "value": { + "__uuid__": "5949b190-dda4-4860-8d3c-30e7b567de7c" + } + }, + { + "frame": 0.3333333333333333, + "value": { + "__uuid__": "9611d0c9-7ba3-4088-a3d6-f8165e9a321c" + } + }, + { + "frame": 0.4166666666666667, + "value": { + "__uuid__": "bc0e1999-c2dc-42df-ae10-597118fa8914" + } + }, + { + "frame": 0.5, + "value": { + "__uuid__": "0c3fc7eb-274f-4c1d-8480-4814a0bafc34" + } + }, + { + "frame": 0.5833333333333334, + "value": { + "__uuid__": "4c848579-85b3-47af-8a99-dc56231d1cd4" + } + }, + { + "frame": 0.6666666666666666, + "value": { + "__uuid__": "7b947948-8b2b-4fd7-86a5-679934e7d265" + } + } + ] + } + } + }, + "events": [ + { + "frame": 0, + "func": "", + "params": [] + }, + { + "frame": 0.6666666666666666, + "func": "removeExplosion", + "params": [ + "" + ] + } + ] +} \ No newline at end of file diff --git a/assets/explosion.anim.meta b/assets/explosion.anim.meta new file mode 100644 index 0000000..67fc032 --- /dev/null +++ b/assets/explosion.anim.meta @@ -0,0 +1,5 @@ +{ + "ver": "2.1.0", + "uuid": "e351c2ae-7a11-4a05-b5d6-e6c91d934581", + "subMetas": {} +} \ No newline at end of file diff --git a/assets/greenbullet.prefab b/assets/greenbullet.prefab index 8662280..10eb8b7 100644 --- a/assets/greenbullet.prefab +++ b/assets/greenbullet.prefab @@ -59,8 +59,8 @@ }, "_scale": { "__type__": "cc.Vec3", - "x": 0.4, - "y": 1, + "x": 0.8, + "y": 2, "z": 1 }, "_eulerAngles": { diff --git a/assets/greenbullet.prefab.meta b/assets/greenbullet.prefab.meta index 7c1fdb7..4024617 100644 --- a/assets/greenbullet.prefab.meta +++ b/assets/greenbullet.prefab.meta @@ -1,6 +1,6 @@ { "ver": "1.2.1", - "uuid": "80ebb5d6-8175-4c2a-918e-375e3bb9fcaf", + "uuid": "b7521c67-e13a-4a83-affe-f86364304313", "optimizationPolicy": "AUTO", "asyncLoadAssets": false, "readonly": false,