Compare commits

..

No commits in common. "main" and "Background-Effect" have entirely different histories.

127 changed files with 209 additions and 9311 deletions

View File

@ -1,7 +0,0 @@
{
"ver": "1.0.1",
"uuid": "eb820398-5b1e-4369-a836-2ea1ac0c55fb",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "26ba3709-42f1-4bf4-a4e4-e2ddca92c6a3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"apocalypse": {
"ver": "1.0.4",
"uuid": "542adeba-4357-4891-8f12-8fd4dad28b06",
"rawTextureUuid": "26ba3709-42f1-4bf4-a4e4-e2ddca92c6a3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -2,
"trimX": 153,
"trimY": 132,
"width": 774,
"height": 820,
"rawWidth": 1080,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "674338e2-75cd-4c0d-bf57-03130ccb025b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"closegame": {
"ver": "1.0.4",
"uuid": "181fdba8-d507-4cdd-801d-1929957e02e6",
"rawTextureUuid": "674338e2-75cd-4c0d-bf57-03130ccb025b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 2.5,
"trimX": 69,
"trimY": 52,
"width": 361,
"height": 391,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 849 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "c52c84c1-155e-40f4-bbda-a9b2b3c2c6bb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"comandor": {
"ver": "1.0.4",
"uuid": "5080ca06-afd1-437b-b102-b853b8b4f9c3",
"rawTextureUuid": "c52c84c1-155e-40f4-bbda-a9b2b3c2c6bb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -2.5,
"trimX": 170,
"trimY": 149,
"width": 740,
"height": 787,
"rawWidth": 1080,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "f0569c84-d343-448c-8a64-9a864349d41e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"explode": {
"ver": "1.0.4",
"uuid": "09de5113-ef8f-4bb9-8c6d-1df17906e978",
"rawTextureUuid": "f0569c84-d343-448c-8a64-9a864349d41e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -2,
"offsetY": -0.5,
"trimX": 46,
"trimY": 44,
"width": 404,
"height": 413,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "c1c1e95d-6a5a-4f63-8272-3d0e3bbab123",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"goback": {
"ver": "1.0.4",
"uuid": "98e2ff50-ce1b-4b6c-bde1-d9517b6be722",
"rawTextureUuid": "c1c1e95d-6a5a-4f63-8272-3d0e3bbab123",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 82,
"trimY": 79,
"width": 336,
"height": 341,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "6041f684-59d7-4144-83c9-7b5dddce10fe",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"menu": {
"ver": "1.0.4",
"uuid": "8484061a-f0be-458f-a9a0-5a2ebac52482",
"rawTextureUuid": "6041f684-59d7-4144-83c9-7b5dddce10fe",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1.5,
"offsetY": 5,
"trimX": 82,
"trimY": 83,
"width": 339,
"height": 324,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "178a3fab-8b5c-42d6-b6c0-fcf03a3159e1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"pilot": {
"ver": "1.0.4",
"uuid": "e1e2dedc-78b7-420e-a7e4-0a1411efd690",
"rawTextureUuid": "178a3fab-8b5c-42d6-b6c0-fcf03a3159e1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 0,
"trimX": 150,
"trimY": 135,
"width": 778,
"height": 810,
"rawWidth": 1080,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "f1acda4b-f4dd-400d-ab44-c580c53c1745",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"resultscore": {
"ver": "1.0.4",
"uuid": "6f374223-327e-4d47-8671-0d4f379dbd07",
"rawTextureUuid": "f1acda4b-f4dd-400d-ab44-c580c53c1745",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 2,
"offsetY": 8,
"trimX": 116,
"trimY": 33,
"width": 272,
"height": 418,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "61ef4b76-ea31-470f-af82-bc4fbee2bf69",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"select": {
"ver": "1.0.4",
"uuid": "19079cc6-f48e-4ef9-bf7c-b53624d3bad6",
"rawTextureUuid": "61ef4b76-ea31-470f-af82-bc4fbee2bf69",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 79,
"trimY": 84,
"width": 453,
"height": 240,
"rawWidth": 612,
"rawHeight": 408,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "48aeb9dc-565f-4dff-9ea8-87edec42cd8e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"selected": {
"ver": "1.0.4",
"uuid": "ff64caa3-19f2-46ca-8c65-ba297df0f85b",
"rawTextureUuid": "48aeb9dc-565f-4dff-9ea8-87edec42cd8e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -7,
"trimX": 57,
"trimY": 107,
"width": 386,
"height": 300,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "95bb0bf8-78d3-4358-85dd-fe8463e2af39",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"settings-modal": {
"ver": "1.0.4",
"uuid": "f06c442e-7357-4371-b505-c0e86e22aef5",
"rawTextureUuid": "95bb0bf8-78d3-4358-85dd-fe8463e2af39",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 2,
"offsetY": 17,
"trimX": 31,
"trimY": 68,
"width": 350,
"height": 442,
"rawWidth": 408,
"rawHeight": 612,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "b4220f86-5134-435a-b1d9-07e973964587",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"settings": {
"ver": "1.0.4",
"uuid": "137a4fa3-a5b5-4d35-8ca0-0aef23ca8a59",
"rawTextureUuid": "b4220f86-5134-435a-b1d9-07e973964587",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": -7.5,
"trimX": 56,
"trimY": 68,
"width": 387,
"height": 379,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "5b46f0ce-183e-4519-92d9-024b60854192",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"start": {
"ver": "1.0.4",
"uuid": "0008b6dc-7fd4-42be-b9d5-ee0b456fc33f",
"rawTextureUuid": "5b46f0ce-183e-4519-92d9-024b60854192",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 53,
"trimY": 61,
"width": 394,
"height": 378,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 203 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "d5a4cceb-814a-4da2-8392-18fa4a00df30",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"store": {
"ver": "1.0.4",
"uuid": "6a617218-3c12-47bf-a1fa-6432bff4391c",
"rawTextureUuid": "d5a4cceb-814a-4da2-8392-18fa4a00df30",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -1,
"trimX": 50,
"trimY": 74,
"width": 400,
"height": 354,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "b3492cc9-c08b-45ca-8220-4fc4cff3d528",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"warlord": {
"ver": "1.0.4",
"uuid": "95a21e05-ce49-4013-a4c9-a9fcac7033c2",
"rawTextureUuid": "b3492cc9-c08b-45ca-8220-4fc4cff3d528",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -2,
"trimX": 163,
"trimY": 138,
"width": 754,
"height": 808,
"rawWidth": 1080,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
{
"ver": "1.2.1",
"uuid": "3eba991d-703c-4c11-ac81-b6548a4722ec",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

View File

@ -63,28 +63,16 @@
}, },
{ {
"__id__": 5 "__id__": 5
},
{
"__id__": 11
},
{
"__id__": 17
},
{
"__id__": 22
} }
], ],
"_active": true, "_active": true,
"_level": 1, "_level": 1,
"_components": [ "_components": [
{ {
"__id__": 27 "__id__": 8
}, },
{ {
"__id__": 28 "__id__": 9
},
{
"__id__": 29
} }
], ],
"_prefab": null, "_prefab": null,
@ -168,7 +156,7 @@
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 0, "y": 0,
"z": 781.4336326653525 "z": 876.417708629852
}, },
"_scale": { "_scale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -225,80 +213,18 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "button", "_name": "play",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [],
{
"__id__": 6
}
],
"_active": true, "_active": true,
"_level": 2, "_level": 2,
"_components": [ "_components": [
{ {
"__id__": 8 "__id__": 6
}, },
{
"__id__": 10
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 500,
"height": 500
},
"_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": 0.44445,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "69HYmEC4hC1aoSBRgg0FAJ"
},
{
"__type__": "cc.Node",
"_name": "start",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_level": 3,
"_components": [
{ {
"__id__": 7 "__id__": 7
} }
@ -314,8 +240,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 500, "width": 416,
"height": 500 "height": 108
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -331,7 +257,7 @@
"_scale": { "_scale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 1,
"y": 1, "y": 0.66,
"z": 1 "z": 1
}, },
"_eulerAngles": { "_eulerAngles": {
@ -344,14 +270,14 @@
"_skewY": 0, "_skewY": 0,
"_is3DNode": false, "_is3DNode": false,
"groupIndex": 0, "groupIndex": 0,
"_id": "28KkYfVFZJzIm2yFVo3e+a" "_id": "9c/kR6zopOCq2Elgf3X+l+"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 6 "__id__": 5
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
@ -362,10 +288,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "0008b6dc-7fd4-42be-b9d5-ee0b456fc33f" "__uuid__": "983fa58a-66aa-4526-a54d-dc95037f1259"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 1,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -376,99 +302,7 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "48xgiOxMRM1ZGlvUOzDDHM" "_id": "3bA5w73CpHDrHFTBeG9DGv"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 9
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 2,
"transition": 2,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": null,
"_id": "04Dqh37IRDyLnnoepjmU10"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 5
},
"component": "",
"_componentId": "3a2abJhRaJFyrM9SBg5rWtB",
"handler": "loadScene",
"customEventData": "Level"
}, },
{ {
"__type__": "3a2abJhRaJFyrM9SBg5rWtB", "__type__": "3a2abJhRaJFyrM9SBg5rWtB",
@ -478,578 +312,9 @@
"__id__": 5 "__id__": 5
}, },
"_enabled": true, "_enabled": true,
"_id": "b1l7jFcrZGValOGBcgRpBB" "label": null,
}, "text": "hello",
{ "_id": "c9ABQ2655OSa44WE6gYPfI"
"__type__": "cc.Node",
"_name": "settings",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 12
},
{
"__id__": 13
},
{
"__id__": 14
},
{
"__id__": 16
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"height": 150
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -360,
"y": 500,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 0.7,
"y": 0.7,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "35D9sfXk1B/bXTnd0UD26Q"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "137a4fa3-a5b5-4d35-8ca0-0aef23ca8a59"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "32T8+u0j9LE4Qliu4SvW1L"
},
{
"__type__": "3a2abJhRaJFyrM9SBg5rWtB",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_id": "d2fPfqTpdLt5xGmp8DKfYU"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 15
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "71QrqFThBM2oFVHDHtcICv"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 11
},
"component": "",
"_componentId": "3a2abJhRaJFyrM9SBg5rWtB",
"handler": "loadScene",
"customEventData": "Settings"
},
{
"__type__": "3a2abJhRaJFyrM9SBg5rWtB",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_id": "52lnLNPYlDFJiujnKqDoa9"
},
{
"__type__": "cc.Node",
"_name": "closeTheGame",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 18
},
{
"__id__": 19
},
{
"__id__": 21
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 400,
"y": 500,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 0.6,
"y": 0.6,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "75o6Nt1g5KBoTpCSkhzL6a"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "181fdba8-d507-4cdd-801d-1929957e02e6"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "809ak7JrtBppxAxjhRLbgV"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 20
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "96gTxmFx1GDr38ty/9OIdD"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 17
},
"component": "",
"_componentId": "3a2abJhRaJFyrM9SBg5rWtB",
"handler": "killGame",
"customEventData": ""
},
{
"__type__": "3a2abJhRaJFyrM9SBg5rWtB",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_id": "51E8zpuHRFWLDHsTbGhIA+"
},
{
"__type__": "cc.Node",
"_name": "store",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 23
},
{
"__id__": 24
},
{
"__id__": 26
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 200
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -1,
"y": -180,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 0.44,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "42YIx2Q65JeY2wwZpRL+KD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6a617218-3c12-47bf-a1fa-6432bff4391c"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "9eghOuG3ZJ5LEkvSTze7lr"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 25
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "d262sPCHNCRL0e3yX+sRZ2"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 22
},
"component": "",
"_componentId": "3a2abJhRaJFyrM9SBg5rWtB",
"handler": "loadScene",
"customEventData": "Store"
},
{
"__type__": "3a2abJhRaJFyrM9SBg5rWtB",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_id": "91rA30YV5CVojuLNftsAyb"
}, },
{ {
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
@ -1086,15 +351,5 @@
"__uuid__": "9c3d7d56-f77a-4e1f-a64c-865e00c80cff" "__uuid__": "9c3d7d56-f77a-4e1f-a64c-865e00c80cff"
}, },
"_id": "0erRnoKLBJhIFfRGuNB7Qo" "_id": "0erRnoKLBJhIFfRGuNB7Qo"
},
{
"__type__": "1e5d46Ai89Cn4miJXf2Ka71",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_id": "8akbMFRTxMJoUZES0nQNaf"
} }
] ]

View File

@ -18,7 +18,7 @@
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
"_level": 2, "_level": 1,
"_components": [ "_components": [
{ {
"__id__": 2 "__id__": 2
@ -118,16 +118,9 @@
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"scoreLabel": null,
"yellowBullet": { "yellowBullet": {
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb" "__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
}, },
"rocket": {
"__uuid__": "941946c0-687a-41ee-ba1f-ff4993adeacd"
},
"health": {
"__uuid__": "afab2f55-c2a7-4b21-9a71-f4d566ff70bc"
},
"_id": "" "_id": ""
}, },
{ {
@ -740,7 +733,7 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "79n62fy2FB0phxl7o8lzGi", "fileId": "93DZ+g/9FEeKshIA/tJS3m",
"sync": false "sync": false
} }
] ]

View File

@ -1,6 +1,6 @@
{ {
"ver": "1.2.1", "ver": "1.2.1",
"uuid": "4fd20ca9-dc4a-45b4-8c83-4fcc89828fe6", "uuid": "26432aa1-71c9-45a0-bd88-35e669d6d66b",
"optimizationPolicy": "AUTO", "optimizationPolicy": "AUTO",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"readonly": false, "readonly": false,

View File

@ -18,7 +18,7 @@
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
"_level": 2, "_level": 1,
"_components": [ "_components": [
{ {
"__id__": 2 "__id__": 2
@ -118,16 +118,9 @@
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"scoreLabel": null,
"yellowBullet": { "yellowBullet": {
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb" "__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
}, },
"rocket": {
"__uuid__": "941946c0-687a-41ee-ba1f-ff4993adeacd"
},
"health": {
"__uuid__": "afab2f55-c2a7-4b21-9a71-f4d566ff70bc"
},
"_id": "" "_id": ""
}, },
{ {
@ -1105,7 +1098,7 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "a0FzMZOHFP1a3ZrrwMZQvt", "fileId": "2ek+AbmdVAUYR1SE39v44O",
"sync": false "sync": false
} }
] ]

View File

@ -1,6 +1,6 @@
{ {
"ver": "1.2.1", "ver": "1.2.1",
"uuid": "f819b8da-8f4c-4c09-babc-dac7ec7d20a3", "uuid": "3d6dff29-ac6e-4b8b-8506-3f1ed9083ffc",
"optimizationPolicy": "AUTO", "optimizationPolicy": "AUTO",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"readonly": false, "readonly": false,

View File

@ -18,7 +18,7 @@
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
"_level": 2, "_level": 1,
"_components": [ "_components": [
{ {
"__id__": 2 "__id__": 2
@ -56,15 +56,15 @@
}, },
"_position": { "_position": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -165.437, "x": 314.563,
"y": -18.058, "y": 292.913,
"z": 0 "z": 0
}, },
"_scale": { "_scale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.5, "x": 0.5,
"y": 0.33333, "y": 0.5,
"z": 0.5 "z": 1
}, },
"_eulerAngles": { "_eulerAngles": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -118,16 +118,9 @@
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"scoreLabel": null,
"yellowBullet": { "yellowBullet": {
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb" "__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
}, },
"rocket": {
"__uuid__": "941946c0-687a-41ee-ba1f-ff4993adeacd"
},
"health": {
"__uuid__": "afab2f55-c2a7-4b21-9a71-f4d566ff70bc"
},
"_id": "" "_id": ""
}, },
{ {
@ -1140,7 +1133,7 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "70RrlGOxlLe4BuVM1d8Jqr", "fileId": "6en9Mka0pKSKby4zJcoJBv",
"sync": false "sync": false
} }
] ]

View File

@ -1,6 +1,6 @@
{ {
"ver": "1.2.1", "ver": "1.2.1",
"uuid": "6c6bd86b-1419-437a-b3db-9e653f754b61", "uuid": "02d85ab4-7c96-4a14-9cd8-5e02c91ac383",
"optimizationPolicy": "AUTO", "optimizationPolicy": "AUTO",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"readonly": false, "readonly": false,

View File

@ -18,7 +18,7 @@
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
"_level": 1, "_level": 2,
"_components": [ "_components": [
{ {
"__id__": 2 "__id__": 2
@ -115,7 +115,8 @@
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"scoreLabel": null, "label": null,
"text": "hello",
"BulletSpeed": -500, "BulletSpeed": -500,
"_id": "" "_id": ""
}, },
@ -180,7 +181,7 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "c01ayalttID5NDkK1bsCpd", "fileId": "7ecCcOtJ1F1L0KGm/DlBkM",
"sync": false "sync": false
} }
] ]

View File

@ -1,6 +1,6 @@
{ {
"ver": "1.2.1", "ver": "1.2.1",
"uuid": "9c1eea54-1438-4486-9ff4-c2ba640da280", "uuid": "b7521c67-e13a-4a83-affe-f86364304313",
"optimizationPolicy": "AUTO", "optimizationPolicy": "AUTO",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"readonly": false, "readonly": false,

View File

@ -1,259 +0,0 @@
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "health",
"_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": 48,
"height": 28
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -158.356,
"y": 27.383,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 0.6,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 4,
"_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__": "3f307ec9-399d-4075-842b-f3a3c22bee25"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_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,
"y": 14
},
{
"__type__": "cc.Vec2",
"x": -15,
"y": 9
},
{
"__type__": "cc.Vec2",
"x": -18,
"y": 9
},
{
"__type__": "cc.Vec2",
"x": -21,
"y": 6
},
{
"__type__": "cc.Vec2",
"x": -21,
"y": 4
},
{
"__type__": "cc.Vec2",
"x": -24,
"y": 3
},
{
"__type__": "cc.Vec2",
"x": -24,
"y": -3
},
{
"__type__": "cc.Vec2",
"x": -22,
"y": -3
},
{
"__type__": "cc.Vec2",
"x": -17,
"y": -9
},
{
"__type__": "cc.Vec2",
"x": -14,
"y": -9
},
{
"__type__": "cc.Vec2",
"x": -14,
"y": -12
},
{
"__type__": "cc.Vec2",
"x": -12,
"y": -14
},
{
"__type__": "cc.Vec2",
"x": 13,
"y": -14
},
{
"__type__": "cc.Vec2",
"x": 16,
"y": -11
},
{
"__type__": "cc.Vec2",
"x": 16,
"y": -9
},
{
"__type__": "cc.Vec2",
"x": 19,
"y": -9
},
{
"__type__": "cc.Vec2",
"x": 24,
"y": -4
},
{
"__type__": "cc.Vec2",
"x": 24,
"y": 4
},
{
"__type__": "cc.Vec2",
"x": 20,
"y": 8
},
{
"__type__": "cc.Vec2",
"x": 16,
"y": 8
},
{
"__type__": "cc.Vec2",
"x": 16,
"y": 11
},
{
"__type__": "cc.Vec2",
"x": 13,
"y": 14
}
],
"_id": ""
},
{
"__type__": "4cc23PKJspLG7P/IBljP2/H",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "6dVfqDhfNIdKWl08hFRkvL",
"sync": false
}
]

View File

@ -1,8 +0,0 @@
{
"ver": "1.2.1",
"uuid": "afab2f55-c2a7-4b21-9a71-f4d566ff70bc",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

View File

@ -1,264 +0,0 @@
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "rocket",
"_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": 47,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 14.357,
"y": 21.601,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 0.6,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 5,
"_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__": "4c53dcbf-af4f-4475-9922-6cfdbcfbd7e4"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_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": -11.5,
"y": 14.5
},
{
"__type__": "cc.Vec2",
"x": -12.5,
"y": 12.5
},
{
"__type__": "cc.Vec2",
"x": -14.5,
"y": 12.5
},
{
"__type__": "cc.Vec2",
"x": -15.5,
"y": 7.5
},
{
"__type__": "cc.Vec2",
"x": -19.5,
"y": 7.5
},
{
"__type__": "cc.Vec2",
"x": -20.5,
"y": 4.5
},
{
"__type__": "cc.Vec2",
"x": -23.5,
"y": 2.5
},
{
"__type__": "cc.Vec2",
"x": -23.5,
"y": -3.5
},
{
"__type__": "cc.Vec2",
"x": -20.5,
"y": -5.5
},
{
"__type__": "cc.Vec2",
"x": -20.5,
"y": -7.5
},
{
"__type__": "cc.Vec2",
"x": -15.5,
"y": -9.5
},
{
"__type__": "cc.Vec2",
"x": -14.5,
"y": -13.5
},
{
"__type__": "cc.Vec2",
"x": 12.5,
"y": -14.5
},
{
"__type__": "cc.Vec2",
"x": 15.5,
"y": -11.5
},
{
"__type__": "cc.Vec2",
"x": 15.5,
"y": -9.5
},
{
"__type__": "cc.Vec2",
"x": 17.5,
"y": -9.5
},
{
"__type__": "cc.Vec2",
"x": 23.5,
"y": -3.5
},
{
"__type__": "cc.Vec2",
"x": 23.5,
"y": 2.5
},
{
"__type__": "cc.Vec2",
"x": 19.5,
"y": 5.5
},
{
"__type__": "cc.Vec2",
"x": 19.5,
"y": 7.5
},
{
"__type__": "cc.Vec2",
"x": 15.5,
"y": 7.5
},
{
"__type__": "cc.Vec2",
"x": 15.5,
"y": 10.5
},
{
"__type__": "cc.Vec2",
"x": 11.5,
"y": 14.5
}
],
"_id": ""
},
{
"__type__": "4cc23PKJspLG7P/IBljP2/H",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "89l6vGXMxG6ZmqMkvQt1+Q",
"sync": false
}
]

View File

@ -1,8 +0,0 @@
{
"ver": "1.2.1",
"uuid": "941946c0-687a-41ee-ba1f-ff4993adeacd",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

View File

@ -1,47 +0,0 @@
{
"ver": "2.3.3",
"uuid": "8ebaee0c-e662-449f-ab9d-a101bf9a9e50",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {
"ios": {
"formats": [
{
"name": "png",
"quality": 80
},
{
"name": "pvrtc_4bits",
"quality": "normal"
}
]
}
},
"subMetas": {
"box": {
"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": 13,
"trimX": 0,
"trimY": 0,
"width": 1199,
"height": 268,
"rawWidth": 1199,
"rawHeight": 294,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 KiB

View File

@ -1,34 +0,0 @@
{
"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": {}
}
}
}

View File

@ -1,654 +0,0 @@
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": false,
"_level": 0,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_is3DNode": true,
"groupIndex": 0,
"autoReleaseAssets": false,
"_id": "05ba92df-ca08-4e47-95f5-c25985ae7f4b"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 9
}
],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 14
},
{
"__id__": 15
},
{
"__id__": 16
},
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 640
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 480,
"y": 320,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1.5,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "e03U2yj2BBgK1w5qVM6hpB"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 4
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 769.896583964366
},
"_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": "70UE+JzuVEHoSjYiK6IxUT"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_id": "1fLtkQZShKY5qtgpvcrWyk"
},
{
"__type__": "cc.Node",
"_name": "resultscore",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 6
}
],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 8
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 350,
"height": 330
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 133.919,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 0.88,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "7cTATvi5lDbII0sjnYH0gb"
},
{
"__type__": "cc.Node",
"_name": "ScoreLabel",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_level": 3,
"_components": [
{
"__id__": 7
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.33,
"height": 44.44
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": -35.008,
"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": "b3KErLyKFNZJdZlis+dCXR"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_useOriginalSize": false,
"_string": "0",
"_N$string": "0",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "ed6e9c58-b82d-466a-abfd-b916a22e224c"
},
"_isSystemFontUsed": false,
"_isUseVerticalKerning": true,
"_verticalKerning": null,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "2bM7Gf5n9PgIo67jFR6i9c"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6f374223-327e-4d47-8671-0d4f379dbd07"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "abZ8VShtdIwZUUvdUkm/ZG"
},
{
"__type__": "cc.Node",
"_name": "menu",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 10
},
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 200
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -1.401,
"y": -48.251,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 0.316,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "464H9zRSRIAqH2SP43xj2h"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8484061a-f0be-458f-a9a0-5a2ebac52482"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d80ZFFu4xLSpT/c9OSy7SN"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 12
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "7080oabmNLcbpdUxxSWJxS"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 9
},
"component": "",
"_componentId": "3a2abJhRaJFyrM9SBg5rWtB",
"handler": "loadScene",
"customEventData": "Menu"
},
{
"__type__": "3a2abJhRaJFyrM9SBg5rWtB",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_id": "e0VIvEqWBF/5f4Cll1p7s2"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 960,
"height": 640
},
"_fitWidth": true,
"_fitHeight": true,
"_id": "7dLGaIeR5L9IgTdEUV5JAV"
},
{
"__type__": "19aaeSYSZZGULvtl5gcIKyn",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"protonSM": {
"__uuid__": "59b8f7eb-f327-47e0-aa01-42ecad377557"
},
"protonMD": {
"__uuid__": "75af4f59-790b-4c40-ba2e-54ffc1cc3c23"
},
"protonLG": {
"__uuid__": "9c3d7d56-f77a-4e1f-a64c-865e00c80cff"
},
"_id": "0erRnoKLBJhIFfRGuNB7Qo"
},
{
"__type__": "1e5d46Ai89Cn4miJXf2Ka71",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_id": "8akbMFRTxMJoUZES0nQNaf"
},
{
"__type__": "9d626BM2d5JeqXd/gdPNSoQ",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"label": {
"__id__": 7
},
"_id": "f05gdg8R1FcYiH/+7HcjQi"
}
]

View File

@ -1,7 +0,0 @@
{
"ver": "1.2.1",
"uuid": "05ba92df-ca08-4e47-95f5-c25985ae7f4b",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

View File

@ -1,39 +0,0 @@
// 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 {
setMovements() {
var moveDown = cc.moveBy(2, cc.v2(0, -this.node.parent.getContentSize().height * 0.95));
this.node.runAction(cc.repeatForever(moveDown));
}
setScale() {
const scaleUp = cc.scaleTo(0.5, 1.25, 1);
const scaleDown = cc.scaleTo(0.5, 1, 1);
const scalePulse = cc.sequence(scaleUp, scaleDown);
this.node.runAction(cc.repeatForever(scalePulse));
}
onLoad () {
this.scheduleOnce(this.setMovements, 0.1);
this.scheduleOnce(this.setScale, 0.1);
}
update (dt) {
if(this.node.position.y <= -(this.node.parent.getContentSize().height)) {
this.node.destroy();
}
}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "4cc233ca-26ca-4b1b-b3ff-2019633f6fc7",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -8,47 +8,32 @@
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html // - [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 // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
import GameData from "./GameData";
import SoundManager from "./SoundsManager";
const {ccclass, property} = cc._decorator; const {ccclass, property} = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@property(cc.Label) duratrion : number = 15;
scoreLabel: cc.Label = null; moveAmountY : number = 25;
moveAmountX : number = 0;
RTL: boolean = false;
specialItem: string = null;
moveEnemy : cc.ActionInterval; moveEnemy : cc.ActionInterval;
@property(cc.Prefab) @property(cc.Prefab)
yellowBullet: cc.Prefab = null; yellowBullet: cc.Prefab = null;
@property(cc.Prefab) enemyLife: number = 1
rocket: cc.Prefab = null;
@property(cc.Prefab)
health: cc.Prefab = null;
enemyLife: number = GameData.instance.enemyHealth;
playAnimation : Boolean = true; playAnimation : Boolean = true;
setMovements() { setMovements() {
var moveLeft = cc.moveBy(GameData.instance.enemyMoveTime, cc.v2(-this.moveAmountX, -this.node.parent.getContentSize().height * 0.32)); var moveDown = cc.moveBy(this.duratrion, cc.v2(0, -this.node.parent.getContentSize().height * 0.95));
var moveRight = cc.moveBy(GameData.instance.enemyMoveTime, cc.v2(this.moveAmountX, -this.node.parent.getContentSize().height * 0.32)); this.node.runAction(cc.repeatForever(moveDown));
this.node.runAction(cc.repeatForever(this.RTL ? cc.sequence(moveRight, moveLeft) : cc.sequence(moveLeft, moveRight)));
} }
shootBullets() { shootBullets() {
var bullet = cc.instantiate(this.yellowBullet); var bullet = cc.instantiate(this.yellowBullet);
bullet.setPosition(this.node.position.x, this.node.position.y - 60); bullet.setPosition(this.node.position.x, this.node.position.y - 60);
this.node.parent.addChild(bullet); this.node.parent.addChild(bullet);
SoundManager.instance.playEffect('gun2');
} }
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
@ -56,44 +41,26 @@ export default class NewClass extends cc.Component {
onLoad () { onLoad () {
this.scheduleOnce(this.setMovements, 0.1); this.scheduleOnce(this.setMovements, 0.1);
this.schedule(this.shootBullets, GameData.instance.playerShootingInterval * Math.max(0.25, Math.random()), cc.macro.REPEAT_FOREVER, 0); this.schedule(this.shootBullets, Math.random() * 1 + 1, cc.macro.REPEAT_FOREVER, 0);
if (!this.scoreLabel) {
this.scoreLabel = cc.find("Canvas/ScoreBox/ScoreLabel").getComponent(cc.Label);
}
} }
onCollisionEnter(otherCollider, selfCollider) { onCollisionEnter(otherCollider, selfCollider) {
if(otherCollider.name === 'greenbullet<PolygonCollider>') { if(otherCollider.name === 'greenbullet<PolygonCollider>') {
this.enemyLife--; this.enemyLife--;
if(this.enemyLife <= 0 && this.playAnimation) { if(this.enemyLife <= 0 && this.playAnimation) {
SoundManager.instance.playEffect('explosion');
this.node.getComponent(cc.Collider).enabled = false; this.node.getComponent(cc.Collider).enabled = false;
this.node.stopAllActions(); this.node.stopAllActions();
this.playAnimation = false; this.playAnimation = false;
this.node.getComponent(cc.Animation).play(); this.node.getComponent(cc.Animation).play();
GameData.instance.setScore(GameData.instance.getScore() + GameData.instance.selectedLevel * 5);
this.scoreLabel.string = GameData.instance.getScore().toString();
} }
} }
if(otherCollider.name === 'player<PolygonCollider>') { if(otherCollider.name === 'player<PolygonCollider>') {
SoundManager.instance.stopMusic();
this.node.destroy(); this.node.destroy();
cc.director.loadScene('Score'); cc.director.loadScene('Menu');
} }
} }
removeExplosion() { removeExplosion() {
this.node.destroy(); this.node.destroy();
if(this.specialItem === 'rocket') {
var rocket = cc.instantiate(this.rocket);
rocket.setPosition(this.node.position.x, this.node.position.y);
this.node.parent.addChild(rocket);
}
if(this.specialItem === 'health') {
var health = cc.instantiate(this.health);
health.setPosition(this.node.position.x, this.node.position.y);
this.node.parent.addChild(health);
}
} }
start () { start () {
@ -102,9 +69,8 @@ export default class NewClass extends cc.Component {
update (dt) { update (dt) {
if(this.node.position.y <= -(this.node.parent.getContentSize().height)) { if(this.node.position.y <= -(this.node.parent.getContentSize().height)) {
SoundManager.instance.stopMusic();
this.node.destroy(); this.node.destroy();
cc.director.loadScene('Score'); cc.director.loadScene('Menu');
} }
} }
} }

View File

@ -1,76 +0,0 @@
// 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
import GameData from "./GameData";
import SoundManager from "./SoundsManager";
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Label)
scoreLabel: cc.Label = null;
@property(cc.Node)
flashOverlay: cc.Node = null;
explisionEnabled: boolean = false;
isOnCooldown: boolean = false;
onLoad() {
if (!this.scoreLabel) {
this.scoreLabel = cc.find("Canvas/ScoreBox/ScoreLabel").getComponent(cc.Label);
}
if (this.flashOverlay) {
this.flashOverlay.opacity = 0;
}
}
explode() {
if (!this.explisionEnabled || this.isOnCooldown) return;
this.flashOverlay.runAction(cc.fadeTo(0.25, 100));
if (this.flashOverlay) {
this.scheduleOnce(() => {
SoundManager.instance.playEffect('LoudExplosion');
this.flashOverlay.stopAllActions();
this.flashOverlay.runAction(cc.fadeOut(1));
const enemies = this.node.parent.children.filter(n => n.getComponent("EnemyShip"));
GameData.instance.setScore(GameData.instance.getScore() - 100);
this.scoreLabel.string = (parseInt(this.scoreLabel.string) - 100).toString();
enemies.forEach(enemy => {
enemy.getComponent(cc.Collider).enabled = false;
enemy.stopAllActions();
enemy.getComponent(cc.Animation).play();
});
}, 0.5);
}
this.isOnCooldown = true;
this.node.opacity = 50;
this.scheduleOnce(() => {
this.isOnCooldown = false;
}, 30);
}
update(dt) {
if (parseInt(this.scoreLabel.string) > 100 && !this.isOnCooldown) {
this.explisionEnabled = true;
this.node.opacity = 255;
} else {
this.explisionEnabled = false;
this.node.opacity = 50;
}
}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "e5d86ae1-fafe-4288-b455-0ea495ab1b6d",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -1,32 +0,0 @@
// 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
import GameData from "./GameData";
import SoundManager from "./SoundsManager";
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
onLoad () {
this.label.string = GameData.instance.getScore().toString();
SoundManager.instance.playMusic('Judgement', true);
}
// update (dt) {}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "9d62604c-d9de-497a-a5dd-fe074f352a10",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -8,9 +8,6 @@
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html // - [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 // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
import GameData from "./GameData";
import SoundManager from "./SoundsManager";
const {ccclass, property} = cc._decorator; const {ccclass, property} = cc._decorator;
@ccclass @ccclass
@ -27,52 +24,20 @@ export default class NewClass extends cc.Component {
spawnShips() { spawnShips() {
var ships = [this.alienship1, this.alienship2, this.alienship3]; var ships = [this.alienship1, this.alienship2, this.alienship3];
var randomShip = Math.floor(Math.random() * ships.length); var ship = cc.instantiate(ships[Math.floor(Math.random() * ships.length)]);
var RTL = Math.random() < 0.5; const shipX = Math.random() * 800 - 400;
var shipPrefab = ships[randomShip]; const shipY = this.node.getContentSize().height * 0.95;
ship.setPosition(shipX, shipY);
const batchMoveAmountX = Math.random() * 200 + 200; this.node.addChild(ship);
const shipY = this.node.getContentSize().height;
const screenHalfWidth = this.node.getContentSize().width / 2;
const shipMaxMove = batchMoveAmountX;
const margin = 0;
const shipXMin = -screenHalfWidth + shipMaxMove + margin;
const shipXMax = screenHalfWidth - shipMaxMove - margin;
const shipX = Math.random() * (shipXMax - shipXMin) + shipXMin;
const randomNumber = Math.ceil(Math.random() * 10);
const specialItem = randomNumber%2 === 0 ? null : randomNumber%3 === 0 ? 'health' : 'rocket';
const specialItemIndex = Math.floor(Math.random() * GameData.instance.enemySpawnInterval);
for (let i = 0; i < GameData.instance.enemySpawnInterval; i++) {
this.scheduleOnce(() => {
const ship = cc.instantiate(shipPrefab);
ship.setPosition(shipX, shipY);
this.node.addChild(ship);
const shipScript = ship.getComponent('EnemyShip');
shipScript.moveAmountX = batchMoveAmountX;
shipScript.RTL = RTL;
if(i === specialItemIndex && specialItem !== null) {
shipScript.specialItem = specialItem;
}
}, i * GameData.instance.enemyMoveTime * 0.25);
}
} }
onLoad () { onLoad () {
var manager = cc.director.getCollisionManager(); var manager = cc.director.getCollisionManager();
manager.enabled = true; manager.enabled = true;
SoundManager.instance.playMusic('Dududum', true);
} }
start () { start () {
this.schedule(this.spawnShips, GameData.instance.selectedLevel * 3, cc.macro.REPEAT_FOREVER, 1); this.schedule(this.spawnShips, 1, cc.macro.REPEAT_FOREVER, 1);
} }
// update (dt) {} // update (dt) {}

View File

@ -1,81 +0,0 @@
// 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 GameData extends cc.Component {
private static _instance: GameData = null;
public selectedLevel: number = 1;
public score: number = 0;
public soundEnabled: boolean = true;
public musicEnabled: boolean = true;
public selectedShip: number = 1;
public static get instance(): GameData {
if (!this._instance) {
this._instance = new GameData();
this._instance.soundEnabled = cc.sys.localStorage.getItem('soundEnabled') !== 'false';
this._instance.musicEnabled = cc.sys.localStorage.getItem('musicEnabled') !== 'false';
this._instance.selectedShip = Number(cc.sys.localStorage.getItem('selectedShip')) || 1;
}
return this._instance;
}
public setSelectedShip(ship: number) {
this.selectedShip = ship;
cc.sys.localStorage.setItem('selectedShip', ship.toString());
}
public setSoundEnabled(enabled: boolean) {
this.soundEnabled = enabled;
cc.sys.localStorage.setItem('soundEnabled', enabled.toString());
}
public setMusicEnabled(enabled: boolean) {
this.musicEnabled = enabled;
cc.sys.localStorage.setItem('musicEnabled', enabled.toString());
}
public setScore(score: number) {
this.score = score;
}
public getScore(): number {
return this.score;
}
public get enemyHealth(): number {
return this.selectedLevel;
}
private levelConfig = {
1: { shootingSpeed: 6, spawnInterval: 6, playerSpeed: 2.5 },
2: { shootingSpeed: 5, spawnInterval: 8, playerSpeed: 3 },
3: { shootingSpeed: 4, spawnInterval: 10, playerSpeed: 3.5 },
4: { shootingSpeed: 3, spawnInterval: 12, playerSpeed: 4 },
};
public get playerShootingInterval(): number {
return this.levelConfig[this.selectedLevel].shootingSpeed;
}
public get enemySpawnInterval(): number {
return this.levelConfig[this.selectedLevel].spawnInterval;
}
public get enemyMoveTime(): number {
return this.levelConfig[this.selectedLevel].playerSpeed;
}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "58f17fa0-2478-408d-8bcd-790f44f2386e",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -30,7 +30,6 @@ export default class NewClass extends cc.Component {
const protonX = Math.random() * this.node.getContentSize().width - this.node.getContentSize().width / 2; const protonX = Math.random() * this.node.getContentSize().width - this.node.getContentSize().width / 2;
const protonY = this.node.getContentSize().height; const protonY = this.node.getContentSize().height;
proton.setPosition(protonX, protonY); proton.setPosition(protonX, protonY);
proton.zIndex = -1;
this.node.addChild(proton); this.node.addChild(proton);
} }

View File

@ -13,6 +13,12 @@ const {ccclass, property} = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
@property
text: string = 'hello';
@property @property
BulletSpeed: number = -500; BulletSpeed: number = -500;

View File

@ -8,8 +8,6 @@
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html // - [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 // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
import SoundManager from "./SoundsManager";
const {ccclass, property} = cc._decorator; const {ccclass, property} = cc._decorator;
@ccclass @ccclass
@ -17,92 +15,26 @@ export default class NewClass extends cc.Component {
private isDragging: boolean = false; private isDragging: boolean = false;
private touchOffset: cc.Vec2 = cc.v2(0, 0); private touchOffset: cc.Vec2 = cc.v2(0, 0);
private shootingInterval: number = 1;
@property(cc.Prefab) @property(cc.Prefab)
greenBullet: cc.Prefab = null; greenBullet: cc.Prefab = null;
@property(cc.Node) playerLifes: number = 5;
heartContainer: cc.Node = null;
private hearts: cc.Node[] = [];
playerLifes: number = 8;
onCollisionEnter(otherCollider, selfCollider) { onCollisionEnter(otherCollider, selfCollider) {
if(otherCollider.name === 'Bullet<PolygonCollider>') { if(otherCollider.name === 'Bullet<PolygonCollider>') {
this.playerLifes--; this.playerLifes--;
SoundManager.instance.playEffect('healthaddon');
this.setLifes(this.playerLifes);
otherCollider.node.destroy(); otherCollider.node.destroy();
if(this.playerLifes <= 0) { if(this.playerLifes <= 0) {
SoundManager.instance.stopMusic();
this.node.destroy(); this.node.destroy();
cc.director.loadScene('Score'); cc.director.loadScene('Menu');
} }
} }
else if(otherCollider.name === 'health<PolygonCollider>') {
this.playerLifes = 8;
this.setLifes(this.playerLifes);
SoundManager.instance.playEffect('gunaddon');
otherCollider.node.destroy();
}
else if(otherCollider.name === 'rocket<PolygonCollider>') {
this.shootingInterval = Math.min(this.shootingInterval + 1, 5);
SoundManager.instance.playEffect('gunaddon');
otherCollider.node.destroy();
}
} }
spawnBullet(offsetX: number, offsetY: number) {
var bullet = cc.instantiate(this.greenBullet);
bullet.setPosition(this.node.position.x + offsetX, this.node.position.y + offsetY);
this.node.parent.addChild(bullet);
}
shootBullets() { shootBullets() {
SoundManager.instance.playEffect('gun'); var bullet = cc.instantiate(this.greenBullet);
switch (this.shootingInterval) { bullet.setPosition(this.node.position.x, this.node.position.y + 40);
case 1: this.node.parent.addChild(bullet);
this.spawnBullet(0, 40);
break;
case 2:
this.spawnBullet(-35, 20);
this.spawnBullet(35, 20);
break;
case 3:
this.spawnBullet(0, 40);
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() { onLoad() {
@ -112,10 +44,7 @@ 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_END, this.onTouchEnd, this);
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd, this); this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd, this);
this.schedule(this.shootBullets, 0.35, cc.macro.REPEAT_FOREVER, 0); this.schedule(this.shootBullets, 0.25, cc.macro.REPEAT_FOREVER, 0);
this.hearts = this.heartContainer.children;
this.updateHearts();
} }
onTouchStart(event: cc.Event.EventTouch) { onTouchStart(event: cc.Event.EventTouch) {

View File

@ -1,20 +0,0 @@
// 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;
import SoundManager from "./SoundsManager";
@ccclass
export default class NewClass extends cc.Component {
onLoad() {
SoundManager.instance.preloadSounds();
}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "1e5d4e80-8bcf-429f-89a2-2577f629aef5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -1,59 +0,0 @@
// 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;
import SoundManager from "./SoundsManager";
import GameData from "./GameData";
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Label)
soundLabel: cc.Label = null;
@property(cc.Label)
musicLabel: cc.Label = null;
controlSound() {
SoundManager.instance.playEffect('click');
if(GameData.instance.soundEnabled) {
this.soundLabel.string = 'OFF';
} else {
this.soundLabel.string = 'ON';
}
GameData.instance.setSoundEnabled(!GameData.instance.soundEnabled);
}
controlMusic() {
SoundManager.instance.playEffect('click');
if(GameData.instance.musicEnabled) {
this.musicLabel.string = 'OFF';
GameData.instance.setMusicEnabled(!GameData.instance.musicEnabled);
SoundManager.instance.stopMusic();
} else {
this.musicLabel.string = 'ON';
GameData.instance.setMusicEnabled(!GameData.instance.musicEnabled);
SoundManager.instance.playMusic('Judgement', true);
}
}
onLoad() {
if(GameData.instance.soundEnabled) {
this.soundLabel.string = 'ON';
} else {
this.soundLabel.string = 'OFF';
}
if(GameData.instance.musicEnabled) {
this.musicLabel.string = 'ON';
} else {
this.musicLabel.string = 'OFF';
}
}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "300f0ae2-df3d-4140-9830-e23556d238dc",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -1,83 +0,0 @@
// 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
import GameData from "./GameData";
const {ccclass, property} = cc._decorator;
@ccclass
export default class SoundManager extends cc.Component {
private static _instance: SoundManager = null;
private sounds: { [key: string]: cc.AudioClip } = {};
private musicId: number = -1;
public static get instance(): SoundManager {
if (!this._instance) {
const node = new cc.Node("SoundManager");
cc.game.addPersistRootNode(node); // stays across scenes
this._instance = node.addComponent(SoundManager);
}
return this._instance;
}
// ✅ Preload all your sounds at startup
preloadSounds() {
cc.loader.loadResDir("sounds", cc.AudioClip, (err, clips, urls) => {
if (err) {
cc.error("Error loading sounds:", err);
return;
}
for (let i = 0; i < clips.length; i++) {
const key = urls[i].split("/").pop(); // file name without path
this.sounds[key] = clips[i];
}
cc.audioEngine.setMusicVolume(0.1);
});
}
// ✅ Play short effects (clicks, shots, explosions)
playEffect(name: string, loop: boolean = false) {
if(!GameData.instance.soundEnabled) {
return;
}
const clip = this.sounds[name];
if (clip) {
cc.audioEngine.setEffectsVolume(0.2);
cc.audioEngine.playEffect(clip, loop);
} else {
cc.warn(`Sound '${name}' not found. Make sure it's preloaded.`);
}
}
// ✅ Play/Stop background music
playMusic(name: string, loop: boolean = true) {
if(!GameData.instance.musicEnabled) {
return;
}
const clip = this.sounds[name];
if (clip) {
if (this.musicId !== -1) {
cc.audioEngine.stop(this.musicId);
}
this.musicId = cc.audioEngine.playMusic(clip, loop);
} else {
cc.warn(`Music '${name}' not found. Make sure it's preloaded.`);
}
}
stopMusic() {
cc.audioEngine.stopMusic();
this.musicId = -1;
}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "37d707d8-0ba1-44a6-9ba3-398124444f75",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -1,54 +0,0 @@
// 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;
import GameData from "./GameData";
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Node)
ship1Selector: cc.Node = null;
@property(cc.Node)
ship2Selector: cc.Node = null;
@property(cc.Node)
ship3Selector: cc.Node = null;
@property(cc.SpriteFrame)
selectFrame: cc.SpriteFrame = null;
@property(cc.SpriteFrame)
selectedFrame: cc.SpriteFrame = null;
onLoad () {
if(GameData.instance.selectedShip === 1) {
this.ship1Selector.getComponent(cc.Sprite).spriteFrame = this.selectedFrame;
} else if(GameData.instance.selectedShip === 2) {
this.ship2Selector.getComponent(cc.Sprite).spriteFrame = this.selectedFrame;
} else if(GameData.instance.selectedShip === 3) {
this.ship3Selector.getComponent(cc.Sprite).spriteFrame = this.selectedFrame;
}
}
update (dt) {
this.ship1Selector.getComponent(cc.Sprite).spriteFrame = this.selectFrame;
this.ship2Selector.getComponent(cc.Sprite).spriteFrame = this.selectFrame;
this.ship3Selector.getComponent(cc.Sprite).spriteFrame = this.selectFrame;
if(GameData.instance.selectedShip === 1) {
this.ship1Selector.getComponent(cc.Sprite).spriteFrame = this.selectedFrame;
} else if(GameData.instance.selectedShip === 2) {
this.ship2Selector.getComponent(cc.Sprite).spriteFrame = this.selectedFrame;
} else if(GameData.instance.selectedShip === 3) {
this.ship3Selector.getComponent(cc.Sprite).spriteFrame = this.selectedFrame;
}
}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "d15cde6d-e9ed-4f7d-805b-966a3dbcf4d8",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -1,23 +0,0 @@
// 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
import GameData from "./GameData";
import SoundManager from "./SoundsManager";
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
switchPlane(event, customData) {
SoundManager.instance.playEffect('click');
GameData.instance.setSelectedShip(Number(customData));
}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "b56649ef-1bc0-457f-b4d4-e020a7dd0729",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -8,49 +8,25 @@
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html // - [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 // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
import GameData from "./GameData";
import SoundManager from "./SoundsManager";
const {ccclass, property} = cc._decorator; const {ccclass, property} = cc._decorator;
@ccclass @ccclass
export default class MenuScreen extends cc.Component { export default class NewClass extends cc.Component {
onLoad() { @property(cc.Label)
const scene = cc.director.getScene().name; label: cc.Label = null;
if(scene === 'Menu') {
this.scheduleOnce(() => {
SoundManager.instance.playMusic('Judgement', true);
}, 0.1);
}
}
loadGameScene(event, customData) { @property
SoundManager.instance.playEffect('click'); text: string = 'hello';
const selectedLevel = Number(customData);
GameData.instance.selectedLevel = selectedLevel; // LIFE-CYCLE CALLBACKS:
SoundManager.instance.stopMusic();
cc.director.preloadScene('Game', () => { // onLoad () {}
start () {
cc.director.preloadScene('Game');
this.node.on('touchstart', () => {
cc.director.loadScene('Game'); cc.director.loadScene('Game');
}); }, this);
}
loadScene(event, sceneName) {
SoundManager.instance.playEffect('click');
if(sceneName === 'Menu') {
SoundManager.instance.stopMusic();
}
cc.director.preloadScene(sceneName, () => {
cc.director.loadScene(sceneName);
});
}
killGame() {
GameData.instance.setScore(0);
SoundManager.instance.playEffect('click');
this.scheduleOnce(() => {
SoundManager.instance.stopMusic();
cc.game.end();
}, 0.25);
} }
} }

View File

@ -1,40 +0,0 @@
// 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
import GameData from "./GameData";
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property(cc.SpriteFrame)
jet1: cc.SpriteFrame = null;
@property(cc.SpriteFrame)
jet2: cc.SpriteFrame = null;
@property(cc.SpriteFrame)
jet3: cc.SpriteFrame = null;
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
if(GameData.instance.selectedShip === 1) {
this.node.getComponent(cc.Sprite).spriteFrame = this.jet1;
} else if(GameData.instance.selectedShip === 2) {
this.node.getComponent(cc.Sprite).spriteFrame = this.jet2;
} else if(GameData.instance.selectedShip === 3) {
this.node.getComponent(cc.Sprite).spriteFrame = this.jet3;
}
}
}

View File

@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "ddcfe31b-176f-4ff0-b47e-6262c199084b",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
{
"ver": "1.2.1",
"uuid": "6dfa2e82-6ef5-4231-bb1f-7ad1d2ec5cce",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
{
"ver": "1.2.1",
"uuid": "b9648456-60cb-4d20-b846-8a96221d7570",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

View File

@ -1,7 +0,0 @@
{
"ver": "1.0.1",
"uuid": "f2df831b-59ae-48ef-bf79-c73b646914e6",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -1,34 +0,0 @@
{
"ver": "2.3.3",
"uuid": "47576a33-93e4-4363-aec1-dc94f4735c2c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"Powerup_Health_png_processed": {
"ver": "1.0.4",
"uuid": "3f307ec9-399d-4075-842b-f3a3c22bee25",
"rawTextureUuid": "47576a33-93e4-4363-aec1-dc94f4735c2c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 0,
"trimY": 1,
"width": 48,
"height": 28,
"rawWidth": 48,
"rawHeight": 29,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -1,7 +0,0 @@
{
"ver": "1.0.1",
"uuid": "15b8d2c7-11d3-420f-bf15-c26bd47a2346",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

View File

@ -1,5 +0,0 @@
{
"ver": "1.1.0",
"uuid": "9c6522cf-87ff-4ae7-b020-9ca4e6c6a755",
"subMetas": {}
}

View File

@ -1,93 +0,0 @@
Copyright 2011 The Michroma Project Authors (https://github.com/googlefonts/Michroma-font)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@ -1,5 +0,0 @@
{
"ver": "2.0.0",
"uuid": "16e8825e-df41-4e4f-b147-13242c09698c",
"subMetas": {}
}

BIN
assets/play.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -1,6 +1,6 @@
{ {
"ver": "2.3.3", "ver": "2.3.3",
"uuid": "b86733b4-4748-4f4a-ba68-b3cbb69bb3bb", "uuid": "2ca4193f-b750-49e3-afdd-d62a6855f675",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
@ -9,10 +9,10 @@
"packable": true, "packable": true,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"Powerup_Rockets_png_processed": { "play": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "4c53dcbf-af4f-4475-9922-6cfdbcfbd7e4", "uuid": "983fa58a-66aa-4526-a54d-dc95037f1259",
"rawTextureUuid": "b86733b4-4748-4f4a-ba68-b3cbb69bb3bb", "rawTextureUuid": "2ca4193f-b750-49e3-afdd-d62a6855f675",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
@ -20,10 +20,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 47, "width": 416,
"height": 29, "height": 108,
"rawWidth": 47, "rawWidth": 416,
"rawHeight": 29, "rawHeight": 108,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,

View File

@ -1,7 +0,0 @@
{
"ver": "1.0.1",
"uuid": "1c8ac613-25f0-4b91-9b77-dd606628cb4f",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

View File

@ -1,6 +0,0 @@
{
"ver": "2.0.0",
"uuid": "e0aa5105-8a33-4bc8-b753-6c79f60a22c1",
"downloadMode": 0,
"subMetas": {}
}

View File

@ -1,6 +0,0 @@
{
"ver": "2.0.0",
"uuid": "2706ae7b-cfee-4a86-9e6b-47ef26183b6d",
"downloadMode": 0,
"subMetas": {}
}

Some files were not shown because too many files have changed in this diff Show More