diff --git a/assets/Game.fire b/assets/Game.fire index 65e3191..6d2d4ef 100644 --- a/assets/Game.fire +++ b/assets/Game.fire @@ -66,19 +66,25 @@ }, { "__id__": 8 + }, + { + "__id__": 13 + }, + { + "__id__": 32 } ], "_active": true, "_level": 1, "_components": [ { - "__id__": 14 + "__id__": 38 }, { - "__id__": 15 + "__id__": 39 }, { - "__id__": 16 + "__id__": 40 } ], "_prefab": null, @@ -417,7 +423,7 @@ "__id__": 12 }, { - "__id__": 13 + "__id__": 31 } ], "_prefab": null, @@ -592,10 +598,848 @@ }, "_enabled": true, "greenBullet": { - "__uuid__": "b7521c67-e13a-4a83-affe-f86364304313" + "__uuid__": "9c1eea54-1438-4486-9ff4-c2ba640da280" + }, + "heartContainer": { + "__id__": 13 }, "_id": "15NYjVkItKELZAnW57eLwS" }, + { + "__type__": "cc.Node", + "_name": "LifesBox", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 14 + }, + { + "__id__": 16 + }, + { + "__id__": 18 + }, + { + "__id__": 20 + }, + { + "__id__": 22 + }, + { + "__id__": 24 + }, + { + "__id__": 26 + }, + { + "__id__": 28 + } + ], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 30 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 4712, + "height": 1059 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -340, + "y": 505.619, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.05, + "y": 0.05, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "6aMItszspHrJHmEuaV/tNu" + }, + { + "__type__": "cc.Node", + "_name": "heart1", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 15 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1345, + "height": 1220 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -1400, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.2, + "y": 0.2, + "z": 0.2 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "dai06uqkFGs4eMfdonyDwx" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 14 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "746cf043-7cf7-4d62-86fd-fbe6ff6d470d" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "f8mKW3yO1CWo5z/Idi+2ra" + }, + { + "__type__": "cc.Node", + "_name": "heart2", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 17 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1345, + "height": 1220 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -1000, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.2, + "y": 0.2, + "z": 0.2 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "bfn5dPWwxCJopUR5X/i9fH" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 16 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "746cf043-7cf7-4d62-86fd-fbe6ff6d470d" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "2enbAJYzFDErbwYJ5P+nLA" + }, + { + "__type__": "cc.Node", + "_name": "heart3", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 19 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1345, + "height": 1220 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -600, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.2, + "y": 0.2, + "z": 0.2 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "f2SXgznltHhr3k8Rxlim3w" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 18 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "746cf043-7cf7-4d62-86fd-fbe6ff6d470d" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "ed9HG7wfdGl4Z9BTamoAdB" + }, + { + "__type__": "cc.Node", + "_name": "heart4", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 21 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1345, + "height": 1220 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -200, + "y": -50, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.2, + "y": 0.2, + "z": 0.2 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "c9k72d5D5FpYp/upBV8JNz" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 20 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "746cf043-7cf7-4d62-86fd-fbe6ff6d470d" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "f30gRIEZVP97Ju57uq0ycu" + }, + { + "__type__": "cc.Node", + "_name": "heart5", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 23 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1345, + "height": 1220 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 200, + "y": -100, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.2, + "y": 0.2, + "z": 0.2 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "27YNosXDdPX6Y9PmjpjWud" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 22 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "746cf043-7cf7-4d62-86fd-fbe6ff6d470d" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "75F2/MtJpDlptiqeUFfffE" + }, + { + "__type__": "cc.Node", + "_name": "heart6", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 25 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1345, + "height": 1220 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 600, + "y": -100, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.2, + "y": 0.2, + "z": 0.2 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "5fOCxAgEhCNK7Z8LptpvF5" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 24 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "746cf043-7cf7-4d62-86fd-fbe6ff6d470d" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "85ZSgewPtKa4HXCFrREsmZ" + }, + { + "__type__": "cc.Node", + "_name": "heart7", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 27 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1345, + "height": 1220 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 1000, + "y": -100, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.2, + "y": 0.2, + "z": 0.2 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "b1V+2RpF1L7auiSU5nGUFN" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 26 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "746cf043-7cf7-4d62-86fd-fbe6ff6d470d" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "ae23UcHHpLnbvZh2664cYC" + }, + { + "__type__": "cc.Node", + "_name": "heart8", + "_objFlags": 0, + "_parent": { + "__id__": 13 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 29 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1345, + "height": 1220 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 1400, + "y": -100, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.2, + "y": 0.2, + "z": 0.2 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "adGP/wmfRM74n7kW3jn7Gn" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 28 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "746cf043-7cf7-4d62-86fd-fbe6ff6d470d" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "f4VcB6QtBNdapihFCYQtUj" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "fba0bf13-b989-443d-8fdf-a5f7f8bb391c" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "b4WWoRu6NLE6s5HyuMFdsT" + }, { "__type__": "cc.PolygonCollider", "_name": "", @@ -1294,6 +2138,283 @@ ], "_id": "965MCSJRhGs5q7cLGkd0WT" }, + { + "__type__": "cc.Node", + "_name": "ScoreBox", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 33 + }, + { + "__id__": 35 + } + ], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 37 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 4712, + "height": 1059 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -360, + "y": 440, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.04, + "y": 0.05, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "dfFDmCsINDW5aDZx/G5weV" + }, + { + "__type__": "cc.Node", + "_name": "Score", + "_objFlags": 0, + "_parent": { + "__id__": 32 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 34 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 52.25, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -940, + "y": -20, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 25, + "y": 13.3334, + "z": 25 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "f3DPeS6/ROS4q1Lxdr/9sj" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 33 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_useOriginalSize": false, + "_string": "Score", + "_N$string": "Score", + "_fontSize": 20, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_isUseVerticalKerning": true, + "_verticalKerning": null, + "_spacingX": 0, + "_batchAsBitmap": false, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "2cUvJkK8ZML49lb9rbtYDL" + }, + { + "__type__": "cc.Node", + "_name": "ScoreLabel", + "_objFlags": 0, + "_parent": { + "__id__": 32 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 36 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 11.12, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 911.687, + "y": -81.499, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 25, + "y": 13.3334, + "z": 25 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "03lMV9GWFNbah8HcJOSBHD" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 35 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_useOriginalSize": false, + "_string": "0", + "_N$string": "0", + "_fontSize": 20, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_isUseVerticalKerning": true, + "_verticalKerning": null, + "_spacingX": 0, + "_batchAsBitmap": false, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "3apGlbIAdIHrkLl+Q1y49r" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 32 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "fba0bf13-b989-443d-8fdf-a5f7f8bb391c" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "26ipZuvmdL65GdcIvVjEAd" + }, { "__type__": "cc.Canvas", "_name": "", @@ -1320,13 +2441,13 @@ }, "_enabled": true, "alienship1": { - "__uuid__": "cc9c71b8-6dce-463b-a0a8-99baebb6aa72" + "__uuid__": "4fd20ca9-dc4a-45b4-8c83-4fcc89828fe6" }, "alienship2": { - "__uuid__": "2a44b465-8729-484a-b0d5-8028192c3600" + "__uuid__": "f819b8da-8f4c-4c09-babc-dac7ec7d20a3" }, "alienship3": { - "__uuid__": "022c2978-0c9b-442a-89ef-f4df3dd70646" + "__uuid__": "6c6bd86b-1419-437a-b3db-9e653f754b61" }, "_id": "77Y3BgqzhPzpdYEPdwxYS3" }, diff --git a/assets/Menu.fire b/assets/Menu.fire index b467a94..877184a 100644 --- a/assets/Menu.fire +++ b/assets/Menu.fire @@ -156,7 +156,7 @@ "__type__": "cc.Vec3", "x": 0, "y": 0, - "z": 780.2888888097792 + "z": 539.5338265577053 }, "_scale": { "__type__": "cc.Vec3", diff --git a/assets/Prefabs/alienship3.prefab b/assets/Prefabs/alienship3.prefab index 01f1974..2550302 100644 --- a/assets/Prefabs/alienship3.prefab +++ b/assets/Prefabs/alienship3.prefab @@ -118,6 +118,7 @@ "__id__": 1 }, "_enabled": true, + "scoreLabel": null, "yellowBullet": { "__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb" }, @@ -739,7 +740,7 @@ "asset": { "__id__": 0 }, - "fileId": "c9zFlVfU9Pr7HzSY8BJeaQ", + "fileId": "79n62fy2FB0phxl7o8lzGi", "sync": false } ] \ No newline at end of file diff --git a/assets/Prefabs/alienship3.prefab.meta b/assets/Prefabs/alienship3.prefab.meta index fa35220..c5364e2 100644 --- a/assets/Prefabs/alienship3.prefab.meta +++ b/assets/Prefabs/alienship3.prefab.meta @@ -1,6 +1,6 @@ { "ver": "1.2.1", - "uuid": "cc9c71b8-6dce-463b-a0a8-99baebb6aa72", + "uuid": "4fd20ca9-dc4a-45b4-8c83-4fcc89828fe6", "optimizationPolicy": "AUTO", "asyncLoadAssets": false, "readonly": false, diff --git a/assets/Prefabs/alienship4.prefab b/assets/Prefabs/alienship4.prefab index 07a9de6..dfd4d2f 100644 --- a/assets/Prefabs/alienship4.prefab +++ b/assets/Prefabs/alienship4.prefab @@ -118,6 +118,7 @@ "__id__": 1 }, "_enabled": true, + "scoreLabel": null, "yellowBullet": { "__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb" }, @@ -1104,7 +1105,7 @@ "asset": { "__id__": 0 }, - "fileId": "f9f/isXgZHr78pxJAgRYe9", + "fileId": "a0FzMZOHFP1a3ZrrwMZQvt", "sync": false } ] \ No newline at end of file diff --git a/assets/Prefabs/alienship4.prefab.meta b/assets/Prefabs/alienship4.prefab.meta index 38131bb..5fe82ca 100644 --- a/assets/Prefabs/alienship4.prefab.meta +++ b/assets/Prefabs/alienship4.prefab.meta @@ -1,6 +1,6 @@ { "ver": "1.2.1", - "uuid": "2a44b465-8729-484a-b0d5-8028192c3600", + "uuid": "f819b8da-8f4c-4c09-babc-dac7ec7d20a3", "optimizationPolicy": "AUTO", "asyncLoadAssets": false, "readonly": false, diff --git a/assets/Prefabs/alienship5.prefab b/assets/Prefabs/alienship5.prefab index 4afbbba..78cbedc 100644 --- a/assets/Prefabs/alienship5.prefab +++ b/assets/Prefabs/alienship5.prefab @@ -56,15 +56,15 @@ }, "_position": { "__type__": "cc.Vec3", - "x": 314.563, - "y": 292.913, + "x": -165.437, + "y": -18.058, "z": 0 }, "_scale": { "__type__": "cc.Vec3", "x": 0.5, - "y": 0.5, - "z": 1 + "y": 0.33333, + "z": 0.5 }, "_eulerAngles": { "__type__": "cc.Vec3", @@ -118,6 +118,7 @@ "__id__": 1 }, "_enabled": true, + "scoreLabel": null, "yellowBullet": { "__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb" }, @@ -1139,7 +1140,7 @@ "asset": { "__id__": 0 }, - "fileId": "53aBGR+eRGY7mE48Fc6Wgn", + "fileId": "70RrlGOxlLe4BuVM1d8Jqr", "sync": false } ] \ No newline at end of file diff --git a/assets/Prefabs/alienship5.prefab.meta b/assets/Prefabs/alienship5.prefab.meta index 19d70cb..78c577c 100644 --- a/assets/Prefabs/alienship5.prefab.meta +++ b/assets/Prefabs/alienship5.prefab.meta @@ -1,6 +1,6 @@ { "ver": "1.2.1", - "uuid": "022c2978-0c9b-442a-89ef-f4df3dd70646", + "uuid": "6c6bd86b-1419-437a-b3db-9e653f754b61", "optimizationPolicy": "AUTO", "asyncLoadAssets": false, "readonly": false, diff --git a/assets/Prefabs/greenbullet.prefab b/assets/Prefabs/greenbullet.prefab index 10eb8b7..f547a99 100644 --- a/assets/Prefabs/greenbullet.prefab +++ b/assets/Prefabs/greenbullet.prefab @@ -18,7 +18,7 @@ "_parent": null, "_children": [], "_active": true, - "_level": 2, + "_level": 1, "_components": [ { "__id__": 2 @@ -115,8 +115,7 @@ "__id__": 1 }, "_enabled": true, - "label": null, - "text": "hello", + "scoreLabel": null, "BulletSpeed": -500, "_id": "" }, @@ -181,7 +180,7 @@ "asset": { "__id__": 0 }, - "fileId": "7ecCcOtJ1F1L0KGm/DlBkM", + "fileId": "c01ayalttID5NDkK1bsCpd", "sync": false } ] \ No newline at end of file diff --git a/assets/Prefabs/greenbullet.prefab.meta b/assets/Prefabs/greenbullet.prefab.meta index 4024617..5b35d76 100644 --- a/assets/Prefabs/greenbullet.prefab.meta +++ b/assets/Prefabs/greenbullet.prefab.meta @@ -1,6 +1,6 @@ { "ver": "1.2.1", - "uuid": "b7521c67-e13a-4a83-affe-f86364304313", + "uuid": "9c1eea54-1438-4486-9ff4-c2ba640da280", "optimizationPolicy": "AUTO", "asyncLoadAssets": false, "readonly": false, diff --git a/assets/Protons/glossy-red-heart-symbol-3d-render-shiny-heart 2.png b/assets/Protons/glossy-red-heart-symbol-3d-render-shiny-heart 2.png new file mode 100644 index 0000000..a4424b5 Binary files /dev/null and b/assets/Protons/glossy-red-heart-symbol-3d-render-shiny-heart 2.png differ diff --git a/assets/Protons/glossy-red-heart-symbol-3d-render-shiny-heart 2.png.meta b/assets/Protons/glossy-red-heart-symbol-3d-render-shiny-heart 2.png.meta new file mode 100644 index 0000000..ecbf6be --- /dev/null +++ b/assets/Protons/glossy-red-heart-symbol-3d-render-shiny-heart 2.png.meta @@ -0,0 +1,34 @@ +{ + "ver": "2.3.3", + "uuid": "eba7d3b8-1d34-4939-a6f4-87831b8ea9d0", + "type": "sprite", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "platformSettings": {}, + "subMetas": { + "glossy-red-heart-symbol-3d-render-shiny-heart 2": { + "ver": "1.0.4", + "uuid": "746cf043-7cf7-4d62-86fd-fbe6ff6d470d", + "rawTextureUuid": "eba7d3b8-1d34-4939-a6f4-87831b8ea9d0", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 5.5, + "offsetY": -32, + "trimX": 333, + "trimY": 422, + "width": 1345, + "height": 1220, + "rawWidth": 2000, + "rawHeight": 2000, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/assets/Protons/—Pngtree—violet gradient creative abstract gaming_8152127 2.png b/assets/Protons/—Pngtree—violet gradient creative abstract gaming_8152127 2.png new file mode 100644 index 0000000..5100c21 Binary files /dev/null and b/assets/Protons/—Pngtree—violet gradient creative abstract gaming_8152127 2.png differ diff --git a/assets/Protons/—Pngtree—violet gradient creative abstract gaming_8152127 2.png.meta b/assets/Protons/—Pngtree—violet gradient creative abstract gaming_8152127 2.png.meta new file mode 100644 index 0000000..25c9a9c --- /dev/null +++ b/assets/Protons/—Pngtree—violet gradient creative abstract gaming_8152127 2.png.meta @@ -0,0 +1,34 @@ +{ + "ver": "2.3.3", + "uuid": "8ebaee0c-e662-449f-ab9d-a101bf9a9e50", + "type": "sprite", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "platformSettings": {}, + "subMetas": { + "—Pngtree—violet gradient creative abstract gaming_8152127 2": { + "ver": "1.0.4", + "uuid": "fba0bf13-b989-443d-8fdf-a5f7f8bb391c", + "rawTextureUuid": "8ebaee0c-e662-449f-ab9d-a101bf9a9e50", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": -0.5, + "trimX": 144, + "trimY": 1971, + "width": 4712, + "height": 1059, + "rawWidth": 5000, + "rawHeight": 5000, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/assets/Scripts/EnemyShip.ts b/assets/Scripts/EnemyShip.ts index bd5c57c..5a55b4a 100644 --- a/assets/Scripts/EnemyShip.ts +++ b/assets/Scripts/EnemyShip.ts @@ -15,6 +15,9 @@ const {ccclass, property} = cc._decorator; @ccclass export default class NewClass extends cc.Component { + @property(cc.Label) + scoreLabel: cc.Label = null; + moveAmountX : number = 0; RTL: boolean = false; @@ -52,6 +55,10 @@ export default class NewClass extends cc.Component { this.scheduleOnce(this.setMovements, 0.1); this.schedule(this.shootBullets, GameData.instance.playerShootingInterval * Math.max(0.25, Math.random()), cc.macro.REPEAT_FOREVER, 0); + + if (!this.scoreLabel) { + this.scoreLabel = cc.find("Canvas/ScoreBox/ScoreLabel").getComponent(cc.Label); + } } onCollisionEnter(otherCollider, selfCollider) { if(otherCollider.name === 'greenbullet') { @@ -61,6 +68,7 @@ export default class NewClass extends cc.Component { this.node.stopAllActions(); this.playAnimation = false; this.node.getComponent(cc.Animation).play(); + this.scoreLabel.string = (parseInt(this.scoreLabel.string) + GameData.instance.selectedLevel * 5).toString(); } } if(otherCollider.name === 'player') { diff --git a/assets/Scripts/MoveBullet.ts b/assets/Scripts/MoveBullet.ts index 13cb149..5ae5daa 100644 --- a/assets/Scripts/MoveBullet.ts +++ b/assets/Scripts/MoveBullet.ts @@ -13,12 +13,6 @@ const {ccclass, property} = cc._decorator; @ccclass export default class NewClass extends cc.Component { - @property(cc.Label) - label: cc.Label = null; - - @property - text: string = 'hello'; - @property BulletSpeed: number = -500; diff --git a/assets/Scripts/MoveJet.ts b/assets/Scripts/MoveJet.ts index c467edc..eb12e15 100644 --- a/assets/Scripts/MoveJet.ts +++ b/assets/Scripts/MoveJet.ts @@ -20,11 +20,16 @@ export default class NewClass extends cc.Component { @property(cc.Prefab) greenBullet: cc.Prefab = null; - playerLifes: number = 5; + @property(cc.Node) + heartContainer: cc.Node = null; + + private hearts: cc.Node[] = []; + playerLifes: number = 8; onCollisionEnter(otherCollider, selfCollider) { if(otherCollider.name === 'Bullet') { this.playerLifes--; + this.setLifes(this.playerLifes); otherCollider.node.destroy(); if(this.playerLifes <= 0) { this.node.destroy(); @@ -32,11 +37,12 @@ export default class NewClass extends cc.Component { } } else if(otherCollider.name === 'health') { - this.playerLifes = 5; + this.playerLifes = 8; + this.setLifes(this.playerLifes); otherCollider.node.destroy(); } else if(otherCollider.name === 'rocket') { - this.shootingInterval = Math.min(this.shootingInterval + 1, 3); + this.shootingInterval = Math.min(this.shootingInterval + 1, 5); otherCollider.node.destroy(); } } @@ -53,17 +59,45 @@ export default class NewClass extends cc.Component { this.spawnBullet(0, 40); break; case 2: - this.spawnBullet(-30, 20); - this.spawnBullet(30, 20); + this.spawnBullet(-35, 20); + this.spawnBullet(35, 20); break; case 3: this.spawnBullet(0, 40); - this.spawnBullet(-30, 20); - this.spawnBullet(30, 20); + this.spawnBullet(-35, 20); + this.spawnBullet(35, 20); + break; + case 4: + this.spawnBullet(-35, 20); + this.spawnBullet(17.5, 30); + this.spawnBullet(35, 20); + this.spawnBullet(-17.5, 30); + break; + case 5: + this.spawnBullet(0, 40); + this.spawnBullet(-35, 20); + this.spawnBullet(17.5, 30); + this.spawnBullet(35, 20); + this.spawnBullet(-17.5, 30); break; } } + updateHearts() { + for (let i = 0; i < this.hearts.length; i++) { + if (i < this.playerLifes) { + this.hearts[i].opacity = 255; + } else { + this.hearts[i].opacity = 60; + } + } + } + + setLifes(newLife: number) { + this.playerLifes = newLife; + this.updateHearts(); + } + onLoad() { // Enable touch on this node directly this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this); @@ -71,7 +105,10 @@ export default class NewClass extends cc.Component { this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this); this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd, this); - this.schedule(this.shootBullets, 0.25, cc.macro.REPEAT_FOREVER, 0); + this.schedule(this.shootBullets, 0.35, cc.macro.REPEAT_FOREVER, 0); + + this.hearts = this.heartContainer.children; + this.updateHearts(); } onTouchStart(event: cc.Event.EventTouch) {