Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5c816cfc01 | |||
| 712814b98e | |||
| 929f165c45 | |||
| f666d01370 | |||
| 8640cca10f | |||
| d2525f5022 | |||
| deea8522c4 | |||
| 6e5912f50e | |||
| f17cad716a |
7
assets/Buttons.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.1",
|
||||||
|
"uuid": "eb820398-5b1e-4369-a836-2ea1ac0c55fb",
|
||||||
|
"isSubpackage": false,
|
||||||
|
"subpackageName": "",
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/apocalypse.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
34
assets/Buttons/apocalypse.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/closegame.png
Normal file
|
After Width: | Height: | Size: 177 KiB |
34
assets/Buttons/closegame.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/comandor.png
Normal file
|
After Width: | Height: | Size: 849 KiB |
34
assets/Buttons/comandor.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/explode.png
Normal file
|
After Width: | Height: | Size: 115 KiB |
34
assets/Buttons/explode.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/frame.png
Normal file
|
After Width: | Height: | Size: 68 KiB |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ver": "2.3.3",
|
"ver": "2.3.3",
|
||||||
"uuid": "d77cf131-dcf8-4a59-9e14-8f8ea6f44715",
|
"uuid": "5081a280-3f38-463a-8e51-d89aa64a9d65",
|
||||||
"type": "sprite",
|
"type": "sprite",
|
||||||
"wrapMode": "clamp",
|
"wrapMode": "clamp",
|
||||||
"filterMode": "bilinear",
|
"filterMode": "bilinear",
|
||||||
@ -9,21 +9,21 @@
|
|||||||
"packable": true,
|
"packable": true,
|
||||||
"platformSettings": {},
|
"platformSettings": {},
|
||||||
"subMetas": {
|
"subMetas": {
|
||||||
"bigboss": {
|
"frame": {
|
||||||
"ver": "1.0.4",
|
"ver": "1.0.4",
|
||||||
"uuid": "7f8c4faa-1d94-4c72-8fbe-0e7e6caaa72d",
|
"uuid": "e5d1a5e1-1c0e-4cf7-a537-9b884ae8641e",
|
||||||
"rawTextureUuid": "d77cf131-dcf8-4a59-9e14-8f8ea6f44715",
|
"rawTextureUuid": "5081a280-3f38-463a-8e51-d89aa64a9d65",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
"trimThreshold": 1,
|
"trimThreshold": 1,
|
||||||
"rotated": false,
|
"rotated": false,
|
||||||
"offsetX": 0.5,
|
"offsetX": 0.5,
|
||||||
"offsetY": 2,
|
"offsetY": 0.5,
|
||||||
"trimX": 34,
|
"trimX": 83,
|
||||||
"trimY": 15,
|
"trimY": 66,
|
||||||
"width": 333,
|
"width": 447,
|
||||||
"height": 366,
|
"height": 275,
|
||||||
"rawWidth": 400,
|
"rawWidth": 612,
|
||||||
"rawHeight": 400,
|
"rawHeight": 408,
|
||||||
"borderTop": 0,
|
"borderTop": 0,
|
||||||
"borderBottom": 0,
|
"borderBottom": 0,
|
||||||
"borderLeft": 0,
|
"borderLeft": 0,
|
||||||
BIN
assets/Buttons/goback.png
Normal file
|
After Width: | Height: | Size: 196 KiB |
34
assets/Buttons/goback.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/menu.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
34
assets/Buttons/menu.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/pilot.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
34
assets/Buttons/pilot.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/resultscore.png
Normal file
|
After Width: | Height: | Size: 160 KiB |
34
assets/Buttons/resultscore.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/select.png
Normal file
|
After Width: | Height: | Size: 186 KiB |
34
assets/Buttons/select.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/selected.png
Normal file
|
After Width: | Height: | Size: 172 KiB |
34
assets/Buttons/selected.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/settings-modal.png
Normal file
|
After Width: | Height: | Size: 234 KiB |
34
assets/Buttons/settings-modal.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/settings.png
Normal file
|
After Width: | Height: | Size: 210 KiB |
34
assets/Buttons/settings.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/start.png
Normal file
|
After Width: | Height: | Size: 212 KiB |
34
assets/Buttons/start.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/store.png
Normal file
|
After Width: | Height: | Size: 203 KiB |
34
assets/Buttons/store.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/Buttons/warlord.png
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
34
assets/Buttons/warlord.png.meta
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1694
assets/Game.fire
1343
assets/Level.fire
757
assets/Menu.fire
@ -63,16 +63,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 5
|
"__id__": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 11
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 17
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 22
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_level": 1,
|
"_level": 1,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 14
|
"__id__": 27
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 15
|
"__id__": 28
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 29
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": null,
|
"_prefab": null,
|
||||||
@ -156,7 +168,7 @@
|
|||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
"z": 780.2888888097792
|
"z": 781.4336326653525
|
||||||
},
|
},
|
||||||
"_scale": {
|
"_scale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@ -227,10 +239,10 @@
|
|||||||
"_level": 2,
|
"_level": 2,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 11
|
"__id__": 8
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 13
|
"__id__": 10
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": null,
|
"_prefab": null,
|
||||||
@ -244,8 +256,8 @@
|
|||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 416,
|
"width": 500,
|
||||||
"height": 148
|
"height": 500
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
@ -278,82 +290,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Node",
|
"__type__": "cc.Node",
|
||||||
"_name": "Background",
|
"_name": "start",
|
||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"_parent": {
|
"_parent": {
|
||||||
"__id__": 5
|
"__id__": 5
|
||||||
},
|
},
|
||||||
"_children": [
|
|
||||||
{
|
|
||||||
"__id__": 7
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_level": 2,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_prefab": null,
|
|
||||||
"_opacity": 255,
|
|
||||||
"_color": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 26,
|
|
||||||
"g": 26,
|
|
||||||
"b": 26,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_contentSize": {
|
|
||||||
"__type__": "cc.Size",
|
|
||||||
"width": 416,
|
|
||||||
"height": 148
|
|
||||||
},
|
|
||||||
"_anchorPoint": {
|
|
||||||
"__type__": "cc.Vec2",
|
|
||||||
"x": 0.5,
|
|
||||||
"y": 0.5
|
|
||||||
},
|
|
||||||
"_position": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": 0,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"_scale": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 1,
|
|
||||||
"y": 1,
|
|
||||||
"z": 1
|
|
||||||
},
|
|
||||||
"_eulerAngles": {
|
|
||||||
"__type__": "cc.Vec3",
|
|
||||||
"x": 0,
|
|
||||||
"y": 0,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"_skewX": 0,
|
|
||||||
"_skewY": 0,
|
|
||||||
"_is3DNode": false,
|
|
||||||
"groupIndex": 0,
|
|
||||||
"_id": "a3huG/zeRBTLCQROSq3ztB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Node",
|
|
||||||
"_name": "Label",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"_parent": {
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
"_children": [],
|
"_children": [],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_level": 3,
|
"_level": 3,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 8
|
"__id__": 7
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": null,
|
"_prefab": null,
|
||||||
@ -367,8 +314,8 @@
|
|||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 200,
|
"width": 500,
|
||||||
"height": 100
|
"height": 500
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
@ -397,39 +344,7 @@
|
|||||||
"_skewY": 0,
|
"_skewY": 0,
|
||||||
"_is3DNode": false,
|
"_is3DNode": false,
|
||||||
"groupIndex": 0,
|
"groupIndex": 0,
|
||||||
"_id": "f7ZK1FmCpCZ5ivVxgV+zW0"
|
"_id": "28KkYfVFZJzIm2yFVo3e+a"
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Label",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 7
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"_materials": [
|
|
||||||
{
|
|
||||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_useOriginalSize": false,
|
|
||||||
"_string": "START",
|
|
||||||
"_N$string": "START",
|
|
||||||
"_fontSize": 50,
|
|
||||||
"_lineHeight": 40,
|
|
||||||
"_enableWrapText": false,
|
|
||||||
"_N$file": null,
|
|
||||||
"_isSystemFontUsed": true,
|
|
||||||
"_isUseVerticalKerning": true,
|
|
||||||
"_verticalKerning": null,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_batchAsBitmap": false,
|
|
||||||
"_N$horizontalAlign": 1,
|
|
||||||
"_N$verticalAlign": 1,
|
|
||||||
"_N$fontFamily": "Arial",
|
|
||||||
"_N$overflow": 1,
|
|
||||||
"_N$cacheMode": 0,
|
|
||||||
"_id": "e35+dINdxC/49nsWhSHhH3"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Sprite",
|
"__type__": "cc.Sprite",
|
||||||
@ -447,9 +362,9 @@
|
|||||||
"_srcBlendFactor": 770,
|
"_srcBlendFactor": 770,
|
||||||
"_dstBlendFactor": 771,
|
"_dstBlendFactor": 771,
|
||||||
"_spriteFrame": {
|
"_spriteFrame": {
|
||||||
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
|
"__uuid__": "0008b6dc-7fd4-42be-b9d5-ee0b456fc33f"
|
||||||
},
|
},
|
||||||
"_type": 1,
|
"_type": 0,
|
||||||
"_sizeMode": 0,
|
"_sizeMode": 0,
|
||||||
"_fillType": 0,
|
"_fillType": 0,
|
||||||
"_fillCenter": {
|
"_fillCenter": {
|
||||||
@ -461,34 +376,7 @@
|
|||||||
"_fillRange": 0,
|
"_fillRange": 0,
|
||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_atlas": null,
|
"_atlas": null,
|
||||||
"_id": "6d7ZTBMFxAvrmL5zbdC4vz"
|
"_id": "48xgiOxMRM1ZGlvUOzDDHM"
|
||||||
},
|
|
||||||
{
|
|
||||||
"__type__": "cc.Widget",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"node": {
|
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"alignMode": 0,
|
|
||||||
"_target": null,
|
|
||||||
"_alignFlags": 45,
|
|
||||||
"_left": 0,
|
|
||||||
"_right": 0,
|
|
||||||
"_top": 0,
|
|
||||||
"_bottom": 0,
|
|
||||||
"_verticalCenter": 0,
|
|
||||||
"_horizontalCenter": 0,
|
|
||||||
"_isAbsLeft": true,
|
|
||||||
"_isAbsRight": true,
|
|
||||||
"_isAbsTop": true,
|
|
||||||
"_isAbsBottom": true,
|
|
||||||
"_isAbsHorizontalCenter": true,
|
|
||||||
"_isAbsVerticalCenter": true,
|
|
||||||
"_originalWidth": 100,
|
|
||||||
"_originalHeight": 40,
|
|
||||||
"_id": "65HbE6twJMupjXdRg8qNia"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Button",
|
"__type__": "cc.Button",
|
||||||
@ -502,7 +390,7 @@
|
|||||||
"zoomScale": 1.2,
|
"zoomScale": 1.2,
|
||||||
"clickEvents": [
|
"clickEvents": [
|
||||||
{
|
{
|
||||||
"__id__": 12
|
"__id__": 9
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_N$interactable": true,
|
"_N$interactable": true,
|
||||||
@ -569,9 +457,7 @@
|
|||||||
"_N$disabledSprite": {
|
"_N$disabledSprite": {
|
||||||
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
|
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
|
||||||
},
|
},
|
||||||
"_N$target": {
|
"_N$target": null,
|
||||||
"__id__": 6
|
|
||||||
},
|
|
||||||
"_id": "04Dqh37IRDyLnnoepjmU10"
|
"_id": "04Dqh37IRDyLnnoepjmU10"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -581,8 +467,8 @@
|
|||||||
},
|
},
|
||||||
"component": "",
|
"component": "",
|
||||||
"_componentId": "3a2abJhRaJFyrM9SBg5rWtB",
|
"_componentId": "3a2abJhRaJFyrM9SBg5rWtB",
|
||||||
"handler": "loadLevelsScene",
|
"handler": "loadScene",
|
||||||
"customEventData": ""
|
"customEventData": "Level"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "3a2abJhRaJFyrM9SBg5rWtB",
|
"__type__": "3a2abJhRaJFyrM9SBg5rWtB",
|
||||||
@ -594,6 +480,577 @@
|
|||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"_id": "b1l7jFcrZGValOGBcgRpBB"
|
"_id": "b1l7jFcrZGValOGBcgRpBB"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"__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",
|
||||||
"_name": "",
|
"_name": "",
|
||||||
@ -629,5 +1086,15 @@
|
|||||||
"__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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -118,6 +118,7 @@
|
|||||||
"__id__": 1
|
"__id__": 1
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
|
"scoreLabel": null,
|
||||||
"yellowBullet": {
|
"yellowBullet": {
|
||||||
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
|
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
|
||||||
},
|
},
|
||||||
@ -739,7 +740,7 @@
|
|||||||
"asset": {
|
"asset": {
|
||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "c9zFlVfU9Pr7HzSY8BJeaQ",
|
"fileId": "79n62fy2FB0phxl7o8lzGi",
|
||||||
"sync": false
|
"sync": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ver": "1.2.1",
|
"ver": "1.2.1",
|
||||||
"uuid": "cc9c71b8-6dce-463b-a0a8-99baebb6aa72",
|
"uuid": "4fd20ca9-dc4a-45b4-8c83-4fcc89828fe6",
|
||||||
"optimizationPolicy": "AUTO",
|
"optimizationPolicy": "AUTO",
|
||||||
"asyncLoadAssets": false,
|
"asyncLoadAssets": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
|
|||||||
@ -118,6 +118,7 @@
|
|||||||
"__id__": 1
|
"__id__": 1
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
|
"scoreLabel": null,
|
||||||
"yellowBullet": {
|
"yellowBullet": {
|
||||||
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
|
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
|
||||||
},
|
},
|
||||||
@ -1104,7 +1105,7 @@
|
|||||||
"asset": {
|
"asset": {
|
||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "f9f/isXgZHr78pxJAgRYe9",
|
"fileId": "a0FzMZOHFP1a3ZrrwMZQvt",
|
||||||
"sync": false
|
"sync": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ver": "1.2.1",
|
"ver": "1.2.1",
|
||||||
"uuid": "2a44b465-8729-484a-b0d5-8028192c3600",
|
"uuid": "f819b8da-8f4c-4c09-babc-dac7ec7d20a3",
|
||||||
"optimizationPolicy": "AUTO",
|
"optimizationPolicy": "AUTO",
|
||||||
"asyncLoadAssets": false,
|
"asyncLoadAssets": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
|
|||||||
@ -56,15 +56,15 @@
|
|||||||
},
|
},
|
||||||
"_position": {
|
"_position": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 314.563,
|
"x": -165.437,
|
||||||
"y": 292.913,
|
"y": -18.058,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_scale": {
|
"_scale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0.5,
|
"x": 0.5,
|
||||||
"y": 0.5,
|
"y": 0.33333,
|
||||||
"z": 1
|
"z": 0.5
|
||||||
},
|
},
|
||||||
"_eulerAngles": {
|
"_eulerAngles": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@ -118,6 +118,7 @@
|
|||||||
"__id__": 1
|
"__id__": 1
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
|
"scoreLabel": null,
|
||||||
"yellowBullet": {
|
"yellowBullet": {
|
||||||
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
|
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
|
||||||
},
|
},
|
||||||
@ -1139,7 +1140,7 @@
|
|||||||
"asset": {
|
"asset": {
|
||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "53aBGR+eRGY7mE48Fc6Wgn",
|
"fileId": "70RrlGOxlLe4BuVM1d8Jqr",
|
||||||
"sync": false
|
"sync": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ver": "1.2.1",
|
"ver": "1.2.1",
|
||||||
"uuid": "022c2978-0c9b-442a-89ef-f4df3dd70646",
|
"uuid": "6c6bd86b-1419-437a-b3db-9e653f754b61",
|
||||||
"optimizationPolicy": "AUTO",
|
"optimizationPolicy": "AUTO",
|
||||||
"asyncLoadAssets": false,
|
"asyncLoadAssets": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
"_parent": null,
|
"_parent": null,
|
||||||
"_children": [],
|
"_children": [],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_level": 2,
|
"_level": 1,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 2
|
"__id__": 2
|
||||||
@ -115,8 +115,7 @@
|
|||||||
"__id__": 1
|
"__id__": 1
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"label": null,
|
"scoreLabel": null,
|
||||||
"text": "hello",
|
|
||||||
"BulletSpeed": -500,
|
"BulletSpeed": -500,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
@ -181,7 +180,7 @@
|
|||||||
"asset": {
|
"asset": {
|
||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "7ecCcOtJ1F1L0KGm/DlBkM",
|
"fileId": "c01ayalttID5NDkK1bsCpd",
|
||||||
"sync": false
|
"sync": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ver": "1.2.1",
|
"ver": "1.2.1",
|
||||||
"uuid": "b7521c67-e13a-4a83-affe-f86364304313",
|
"uuid": "9c1eea54-1438-4486-9ff4-c2ba640da280",
|
||||||
"optimizationPolicy": "AUTO",
|
"optimizationPolicy": "AUTO",
|
||||||
"asyncLoadAssets": false,
|
"asyncLoadAssets": false,
|
||||||
"readonly": false,
|
"readonly": false,
|
||||||
|
|||||||
BIN
assets/Protons/box.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
47
assets/Protons/box.png.meta
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 385 KiB |
@ -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": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
654
assets/Score.fire
Normal file
@ -0,0 +1,654 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"__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"
|
||||||
|
}
|
||||||
|
]
|
||||||
7
assets/Score.fire.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.1",
|
||||||
|
"uuid": "05ba92df-ca08-4e47-95f5-c25985ae7f4b",
|
||||||
|
"asyncLoadAssets": false,
|
||||||
|
"autoReleaseAssets": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
@ -9,12 +9,16 @@
|
|||||||
// - [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 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)
|
||||||
|
scoreLabel: cc.Label = null;
|
||||||
|
|
||||||
moveAmountX : number = 0;
|
moveAmountX : number = 0;
|
||||||
RTL: boolean = false;
|
RTL: boolean = false;
|
||||||
|
|
||||||
@ -44,6 +48,7 @@ export default class NewClass extends cc.Component {
|
|||||||
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:
|
||||||
@ -52,20 +57,28 @@ export default class NewClass extends cc.Component {
|
|||||||
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, 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) {
|
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('Menu');
|
cc.director.loadScene('Score');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,8 +102,9 @@ 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('Menu');
|
cc.director.loadScene('Score');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
76
assets/Scripts/Explosion.ts
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
// 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
assets/Scripts/Explosion.ts.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.5",
|
||||||
|
"uuid": "e5d86ae1-fafe-4288-b455-0ea495ab1b6d",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
32
assets/Scripts/FinalScore.ts
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
// 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) {}
|
||||||
|
}
|
||||||
9
assets/Scripts/FinalScore.ts.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.5",
|
||||||
|
"uuid": "9d62604c-d9de-497a-a5dd-fe074f352a10",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
@ -9,6 +9,7 @@
|
|||||||
// - [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 GameData from "./GameData";
|
||||||
|
import SoundManager from "./SoundsManager";
|
||||||
|
|
||||||
const {ccclass, property} = cc._decorator;
|
const {ccclass, property} = cc._decorator;
|
||||||
|
|
||||||
@ -32,7 +33,7 @@ export default class NewClass extends cc.Component {
|
|||||||
|
|
||||||
const batchMoveAmountX = Math.random() * 200 + 200;
|
const batchMoveAmountX = Math.random() * 200 + 200;
|
||||||
|
|
||||||
const shipY = this.node.getContentSize().height * 0.95;
|
const shipY = this.node.getContentSize().height;
|
||||||
|
|
||||||
const screenHalfWidth = this.node.getContentSize().width / 2;
|
const screenHalfWidth = this.node.getContentSize().width / 2;
|
||||||
const shipMaxMove = batchMoveAmountX;
|
const shipMaxMove = batchMoveAmountX;
|
||||||
@ -66,6 +67,8 @@ export default class NewClass extends cc.Component {
|
|||||||
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 () {
|
||||||
|
|||||||
@ -16,23 +16,55 @@ export default class GameData extends cc.Component {
|
|||||||
private static _instance: GameData = null;
|
private static _instance: GameData = null;
|
||||||
|
|
||||||
public selectedLevel: number = 1;
|
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 {
|
public static get instance(): GameData {
|
||||||
if (!this._instance) {
|
if (!this._instance) {
|
||||||
this._instance = new GameData();
|
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;
|
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 {
|
public get enemyHealth(): number {
|
||||||
return this.selectedLevel;
|
return this.selectedLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
private levelConfig = {
|
private levelConfig = {
|
||||||
1: { shootingSpeed: 8, spawnInterval: 6, playerSpeed: 3 },
|
1: { shootingSpeed: 6, spawnInterval: 6, playerSpeed: 2.5 },
|
||||||
2: { shootingSpeed: 6, spawnInterval: 8, playerSpeed: 4 },
|
2: { shootingSpeed: 5, spawnInterval: 8, playerSpeed: 3 },
|
||||||
3: { shootingSpeed: 4, spawnInterval: 10, playerSpeed: 5 },
|
3: { shootingSpeed: 4, spawnInterval: 10, playerSpeed: 3.5 },
|
||||||
4: { shootingSpeed: 2, spawnInterval: 12, playerSpeed: 6 },
|
4: { shootingSpeed: 3, spawnInterval: 12, playerSpeed: 4 },
|
||||||
};
|
};
|
||||||
|
|
||||||
public get playerShootingInterval(): number {
|
public get playerShootingInterval(): number {
|
||||||
|
|||||||
@ -13,12 +13,6 @@ 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;
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,8 @@
|
|||||||
// - [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
|
||||||
@ -20,23 +22,33 @@ export default class NewClass extends cc.Component {
|
|||||||
@property(cc.Prefab)
|
@property(cc.Prefab)
|
||||||
greenBullet: cc.Prefab = null;
|
greenBullet: cc.Prefab = null;
|
||||||
|
|
||||||
playerLifes: number = 5;
|
@property(cc.Node)
|
||||||
|
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('Menu');
|
cc.director.loadScene('Score');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(otherCollider.name === 'health<PolygonCollider>') {
|
else if(otherCollider.name === 'health<PolygonCollider>') {
|
||||||
this.playerLifes = 5;
|
this.playerLifes = 8;
|
||||||
|
this.setLifes(this.playerLifes);
|
||||||
|
SoundManager.instance.playEffect('gunaddon');
|
||||||
otherCollider.node.destroy();
|
otherCollider.node.destroy();
|
||||||
}
|
}
|
||||||
else if(otherCollider.name === 'rocket<PolygonCollider>') {
|
else if(otherCollider.name === 'rocket<PolygonCollider>') {
|
||||||
this.shootingInterval = Math.min(this.shootingInterval + 1, 3);
|
this.shootingInterval = Math.min(this.shootingInterval + 1, 5);
|
||||||
|
SoundManager.instance.playEffect('gunaddon');
|
||||||
otherCollider.node.destroy();
|
otherCollider.node.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -48,22 +60,51 @@ export default class NewClass extends cc.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shootBullets() {
|
shootBullets() {
|
||||||
|
SoundManager.instance.playEffect('gun');
|
||||||
switch (this.shootingInterval) {
|
switch (this.shootingInterval) {
|
||||||
case 1:
|
case 1:
|
||||||
this.spawnBullet(0, 40);
|
this.spawnBullet(0, 40);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
this.spawnBullet(-30, 20);
|
this.spawnBullet(-35, 20);
|
||||||
this.spawnBullet(30, 20);
|
this.spawnBullet(35, 20);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
this.spawnBullet(0, 40);
|
this.spawnBullet(0, 40);
|
||||||
this.spawnBullet(-30, 20);
|
this.spawnBullet(-35, 20);
|
||||||
this.spawnBullet(30, 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;
|
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() {
|
||||||
// Enable touch on this node directly
|
// Enable touch on this node directly
|
||||||
this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
|
this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
|
||||||
@ -71,7 +112,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_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.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) {
|
onTouchStart(event: cc.Event.EventTouch) {
|
||||||
|
|||||||
20
assets/Scripts/Root.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// 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();
|
||||||
|
}
|
||||||
|
}
|
||||||
9
assets/Scripts/Root.ts.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.5",
|
||||||
|
"uuid": "1e5d4e80-8bcf-429f-89a2-2577f629aef5",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
59
assets/Scripts/Settings.ts
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
// 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';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
assets/Scripts/Settings.ts.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.5",
|
||||||
|
"uuid": "300f0ae2-df3d-4140-9830-e23556d238dc",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
83
assets/Scripts/SoundsManager.ts
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
// 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
9
assets/Scripts/SoundsManager.ts.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.5",
|
||||||
|
"uuid": "37d707d8-0ba1-44a6-9ba3-398124444f75",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
54
assets/Scripts/Store.ts
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
// 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
assets/Scripts/Store.ts.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.5",
|
||||||
|
"uuid": "d15cde6d-e9ed-4f7d-805b-966a3dbcf4d8",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
23
assets/Scripts/SwitchPlane.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// 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));
|
||||||
|
}
|
||||||
|
}
|
||||||
9
assets/Scripts/SwitchPlane.ts.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.5",
|
||||||
|
"uuid": "b56649ef-1bc0-457f-b4d4-e020a7dd0729",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
@ -9,23 +9,48 @@
|
|||||||
// - [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 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 MenuScreen extends cc.Component {
|
||||||
|
|
||||||
loadLevelsScene() {
|
onLoad() {
|
||||||
cc.director.preloadScene('Level', () => {
|
const scene = cc.director.getScene().name;
|
||||||
cc.director.loadScene('Level');
|
if(scene === 'Menu') {
|
||||||
});
|
this.scheduleOnce(() => {
|
||||||
|
SoundManager.instance.playMusic('Judgement', true);
|
||||||
|
}, 0.1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loadGameScene(event, customData) {
|
loadGameScene(event, customData) {
|
||||||
|
SoundManager.instance.playEffect('click');
|
||||||
const selectedLevel = Number(customData);
|
const selectedLevel = Number(customData);
|
||||||
GameData.instance.selectedLevel = selectedLevel;
|
GameData.instance.selectedLevel = selectedLevel;
|
||||||
|
SoundManager.instance.stopMusic();
|
||||||
cc.director.preloadScene('Game', () => {
|
cc.director.preloadScene('Game', () => {
|
||||||
cc.director.loadScene('Game');
|
cc.director.loadScene('Game');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
40
assets/Scripts/UsedJet.ts
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
// 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
assets/Scripts/UsedJet.ts.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.5",
|
||||||
|
"uuid": "ddcfe31b-176f-4ff0-b47e-6262c199084b",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
1092
assets/Settings.fire
Normal file
7
assets/Settings.fire.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.1",
|
||||||
|
"uuid": "6dfa2e82-6ef5-4231-bb1f-7ad1d2ec5cce",
|
||||||
|
"asyncLoadAssets": false,
|
||||||
|
"autoReleaseAssets": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
1405
assets/Store.fire
Normal file
7
assets/Store.fire.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.1",
|
||||||
|
"uuid": "b9648456-60cb-4d20-b846-8a96221d7570",
|
||||||
|
"asyncLoadAssets": false,
|
||||||
|
"autoReleaseAssets": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
7
assets/fonts/Michroma.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.1",
|
||||||
|
"uuid": "15b8d2c7-11d3-420f-bf15-c26bd47a2346",
|
||||||
|
"isSubpackage": false,
|
||||||
|
"subpackageName": "",
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
BIN
assets/fonts/Michroma/Michroma-Regular.ttf
Normal file
5
assets/fonts/Michroma/Michroma-Regular.ttf.meta
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.1.0",
|
||||||
|
"uuid": "9c6522cf-87ff-4ae7-b020-9ca4e6c6a755",
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
93
assets/fonts/Michroma/OFL.txt
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
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.
|
||||||
5
assets/fonts/Michroma/OFL.txt.meta
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.0.0",
|
||||||
|
"uuid": "16e8825e-df41-4e4f-b147-13242c09698c",
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
7
assets/resources.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.1",
|
||||||
|
"uuid": "1c8ac613-25f0-4b91-9b77-dd606628cb4f",
|
||||||
|
"isSubpackage": false,
|
||||||
|
"subpackageName": "",
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
BIN
assets/resources/sounds/explosion.mp3
Normal file
6
assets/resources/sounds/explosion.mp3.meta
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.0.0",
|
||||||
|
"uuid": "e0aa5105-8a33-4bc8-b753-6c79f60a22c1",
|
||||||
|
"downloadMode": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
BIN
assets/resources/sounds/globalExplosion.mp3
Normal file
6
assets/resources/sounds/globalExplosion.mp3.meta
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.0.0",
|
||||||
|
"uuid": "2706ae7b-cfee-4a86-9e6b-47ef26183b6d",
|
||||||
|
"downloadMode": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||