[Add]: Background effects protons
This commit is contained in:
parent
22669b9419
commit
c84dbd0f7a
3125
assets/Game.fire
3125
assets/Game.fire
File diff suppressed because it is too large
Load Diff
137
assets/Menu.fire
137
assets/Menu.fire
@ -17,7 +17,7 @@
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_active": false,
|
||||
"_level": 0,
|
||||
"_components": [],
|
||||
"_prefab": null,
|
||||
@ -63,16 +63,16 @@
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_level": 1,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 10
|
||||
"__id__": 8
|
||||
},
|
||||
{
|
||||
"__id__": 9
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
@ -103,7 +103,7 @@
|
||||
"_scale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"y": 1.5,
|
||||
"z": 1
|
||||
},
|
||||
"_eulerAngles": {
|
||||
@ -118,96 +118,6 @@
|
||||
"groupIndex": 0,
|
||||
"_id": "e03U2yj2BBgK1w5qVM6hpB"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "background",
|
||||
"_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": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_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": 2,
|
||||
"y": 2,
|
||||
"z": 1
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"groupIndex": 0,
|
||||
"_id": "9d8/9u3V5GdauJdl6jh0Bn"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "c73fc24e-aba6-4566-9779-3b6c3ca7db7f"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": "2d6RqpTMhNR6s3UBhVudf7"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Main Camera",
|
||||
@ -220,7 +130,7 @@
|
||||
"_level": 2,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 6
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
@ -246,7 +156,7 @@
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 420.8883462392372
|
||||
"z": 876.417708629852
|
||||
},
|
||||
"_scale": {
|
||||
"__type__": "cc.Vec3",
|
||||
@ -271,7 +181,7 @@
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"_cullingMask": 4294967295,
|
||||
@ -313,10 +223,10 @@
|
||||
"_level": 2,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 8
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 9
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
@ -347,7 +257,7 @@
|
||||
"_scale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"y": 0.66,
|
||||
"z": 1
|
||||
},
|
||||
"_eulerAngles": {
|
||||
@ -367,7 +277,7 @@
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
@ -399,7 +309,7 @@
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
@ -422,5 +332,24 @@
|
||||
"_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"
|
||||
}
|
||||
]
|
||||
7
assets/Prefabs.meta
Normal file
7
assets/Prefabs.meta
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "7d1ffed5-6b3e-4e45-a9bf-77854e9e2d5e",
|
||||
"isSubpackage": false,
|
||||
"subpackageName": "",
|
||||
"subMetas": {}
|
||||
}
|
||||
@ -59,8 +59,8 @@
|
||||
},
|
||||
"_scale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.075,
|
||||
"y": 0.1,
|
||||
"x": 0.15,
|
||||
"y": 0.2,
|
||||
"z": 1
|
||||
},
|
||||
"_eulerAngles": {
|
||||
@ -226,7 +226,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "f4xpsR+sJJ86l8C4Tf5XS9",
|
||||
"fileId": "50BgVmcUhL3okZ1iGGacix",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"ver": "1.2.1",
|
||||
"uuid": "d6a31879-4924-4889-995f-06e86f666750",
|
||||
"uuid": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
129
assets/Prefabs/Proton_Large.prefab
Normal file
129
assets/Prefabs/Proton_Large.prefab
Normal file
@ -0,0 +1,129 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Proton_Large",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_level": 2,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 13,
|
||||
"height": 13
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_position": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -240.238,
|
||||
"y": 102.818,
|
||||
"z": 0
|
||||
},
|
||||
"_scale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.25,
|
||||
"y": 0.165,
|
||||
"z": 1
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "075c3bd1-33da-4a9b-8bdf-014031509ba9"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "ab3besxLvFHVrmnzKoxE6vh",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"duratrion": 10,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "e2jU3/qH5IO6NtZGkBDp+v",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
8
assets/Prefabs/Proton_Large.prefab.meta
Normal file
8
assets/Prefabs/Proton_Large.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"ver": "1.2.1",
|
||||
"uuid": "9c3d7d56-f77a-4e1f-a64c-865e00c80cff",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
129
assets/Prefabs/Proton_Medium.prefab
Normal file
129
assets/Prefabs/Proton_Medium.prefab
Normal file
@ -0,0 +1,129 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Proton_Medium",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_level": 2,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 9,
|
||||
"height": 10
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_position": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -183.886,
|
||||
"y": 145.329,
|
||||
"z": 0
|
||||
},
|
||||
"_scale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.25,
|
||||
"y": 0.165,
|
||||
"z": 1
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "90210c78-3d00-4e32-8563-1c28e573932c"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "ab3besxLvFHVrmnzKoxE6vh",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"duratrion": 5,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "12lQIJUA1JMInGIZe7jLS2",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
8
assets/Prefabs/Proton_Medium.prefab.meta
Normal file
8
assets/Prefabs/Proton_Medium.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"ver": "1.2.1",
|
||||
"uuid": "75af4f59-790b-4c40-ba2e-54ffc1cc3c23",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
129
assets/Prefabs/Proton_Small.prefab
Normal file
129
assets/Prefabs/Proton_Small.prefab
Normal file
@ -0,0 +1,129 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Proton_Small",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_level": 2,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 6,
|
||||
"height": 5
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_position": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 29.659,
|
||||
"y": 128.522,
|
||||
"z": 0
|
||||
},
|
||||
"_scale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.25,
|
||||
"y": 0.165,
|
||||
"z": 1
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "e026920c-5826-4393-9364-5dd094b5299d"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "ab3besxLvFHVrmnzKoxE6vh",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"duratrion": 1,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "56QYkM9s9Eeb+Fy5tHYtwL",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
8
assets/Prefabs/Proton_Small.prefab.meta
Normal file
8
assets/Prefabs/Proton_Small.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"ver": "1.2.1",
|
||||
"uuid": "59b8f7eb-f327-47e0-aa01-42ecad377557",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
@ -18,7 +18,7 @@
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_level": 2,
|
||||
"_level": 1,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
@ -118,13 +118,9 @@
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"duratrion": 0.5,
|
||||
"moveAmountX": 100,
|
||||
"moveAmountY": 75,
|
||||
"yellowBullet": {
|
||||
"__uuid__": "d6a31879-4924-4889-995f-06e86f666750"
|
||||
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
|
||||
},
|
||||
"enemyLife": 3,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
@ -737,7 +733,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a2v8qIaKpJ9KfekoQURhld",
|
||||
"fileId": "93DZ+g/9FEeKshIA/tJS3m",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"ver": "1.2.1",
|
||||
"uuid": "30cd2ea4-f09d-4e95-ac5a-5da2f6caff02",
|
||||
"uuid": "26432aa1-71c9-45a0-bd88-35e669d6d66b",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
@ -18,7 +18,7 @@
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_level": 2,
|
||||
"_level": 1,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
@ -118,13 +118,9 @@
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"duratrion": 1,
|
||||
"moveAmountX": 125,
|
||||
"moveAmountY": 100,
|
||||
"yellowBullet": {
|
||||
"__uuid__": "d6a31879-4924-4889-995f-06e86f666750"
|
||||
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
|
||||
},
|
||||
"enemyLife": 3,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
@ -1102,7 +1098,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "abaWHTg1VBt7IU8cLHOhFV",
|
||||
"fileId": "2ek+AbmdVAUYR1SE39v44O",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"ver": "1.2.1",
|
||||
"uuid": "ae1edc08-8943-4d97-9dc5-cafe25f7c26f",
|
||||
"uuid": "3d6dff29-ac6e-4b8b-8506-3f1ed9083ffc",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
@ -18,7 +18,7 @@
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_level": 2,
|
||||
"_level": 1,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
@ -118,13 +118,9 @@
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"duratrion": 1.5,
|
||||
"moveAmountX": 300,
|
||||
"moveAmountY": 75,
|
||||
"yellowBullet": {
|
||||
"__uuid__": "d6a31879-4924-4889-995f-06e86f666750"
|
||||
"__uuid__": "1e6b2ed9-fc9b-4d1a-8f2a-7773b0428ecb"
|
||||
},
|
||||
"enemyLife": 3,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
@ -1137,7 +1133,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "42Y7rKoIZAuawCU18pO6kh",
|
||||
"fileId": "6en9Mka0pKSKby4zJcoJBv",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"ver": "1.2.1",
|
||||
"uuid": "62c4d241-de53-40eb-bdb5-4911b2509030",
|
||||
"uuid": "02d85ab4-7c96-4a14-9cd8-5e02c91ac383",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
7
assets/Protons.meta
Normal file
7
assets/Protons.meta
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "9c0d5ac4-46d3-4d9b-ad0d-b33904e4fe36",
|
||||
"isSubpackage": false,
|
||||
"subpackageName": "",
|
||||
"subMetas": {}
|
||||
}
|
||||
BIN
assets/Protons/Proton_Large_png_processed.png
Normal file
BIN
assets/Protons/Proton_Large_png_processed.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 463 B |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"ver": "2.3.3",
|
||||
"uuid": "0caf5c8a-3c4b-4dfa-a819-757cccd5c0b6",
|
||||
"uuid": "5bb0f04f-ccb9-4ac1-adb4-66c668a2fbef",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
@ -9,10 +9,10 @@
|
||||
"packable": true,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"background": {
|
||||
"Proton_Large_png_processed": {
|
||||
"ver": "1.0.4",
|
||||
"uuid": "c73fc24e-aba6-4566-9779-3b6c3ca7db7f",
|
||||
"rawTextureUuid": "0caf5c8a-3c4b-4dfa-a819-757cccd5c0b6",
|
||||
"uuid": "075c3bd1-33da-4a9b-8bdf-014031509ba9",
|
||||
"rawTextureUuid": "5bb0f04f-ccb9-4ac1-adb4-66c668a2fbef",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
@ -20,10 +20,10 @@
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 960,
|
||||
"height": 640,
|
||||
"rawWidth": 960,
|
||||
"rawHeight": 640,
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"rawWidth": 13,
|
||||
"rawHeight": 13,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
BIN
assets/Protons/Proton_Medium_png_processed.png
Normal file
BIN
assets/Protons/Proton_Medium_png_processed.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 371 B |
34
assets/Protons/Proton_Medium_png_processed.png.meta
Normal file
34
assets/Protons/Proton_Medium_png_processed.png.meta
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"ver": "2.3.3",
|
||||
"uuid": "dab01855-3275-4fd7-9f68-7477857afcd5",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"Proton_Medium_png_processed": {
|
||||
"ver": "1.0.4",
|
||||
"uuid": "90210c78-3d00-4e32-8563-1c28e573932c",
|
||||
"rawTextureUuid": "dab01855-3275-4fd7-9f68-7477857afcd5",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": -0.5,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 9,
|
||||
"height": 10,
|
||||
"rawWidth": 10,
|
||||
"rawHeight": 10,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
assets/Protons/Proton_Small_png_processed.png
Normal file
BIN
assets/Protons/Proton_Small_png_processed.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 190 B |
34
assets/Protons/Proton_Small_png_processed.png.meta
Normal file
34
assets/Protons/Proton_Small_png_processed.png.meta
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"ver": "2.3.3",
|
||||
"uuid": "733c724d-cac5-4cfc-97de-1e950f65be30",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"Proton_Small_png_processed": {
|
||||
"ver": "1.0.4",
|
||||
"uuid": "e026920c-5826-4393-9364-5dd094b5299d",
|
||||
"rawTextureUuid": "733c724d-cac5-4cfc-97de-1e950f65be30",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": -0.5,
|
||||
"trimX": 0,
|
||||
"trimY": 1,
|
||||
"width": 6,
|
||||
"height": 5,
|
||||
"rawWidth": 6,
|
||||
"rawHeight": 6,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -13,19 +13,16 @@ const {ccclass, property} = cc._decorator;
|
||||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
|
||||
@property
|
||||
duratrion : number = 0.5;
|
||||
@property
|
||||
moveAmountX : number = 100;
|
||||
@property
|
||||
moveAmountY : number = 50;
|
||||
moveAmountX : number = 50;
|
||||
moveAmountY : number = 25;
|
||||
|
||||
moveEnemy : cc.ActionInterval;
|
||||
|
||||
@property(cc.Prefab)
|
||||
yellowBullet: cc.Prefab = null;
|
||||
|
||||
@property
|
||||
enemyLife: number = 3
|
||||
enemyLife: number = 1
|
||||
|
||||
playAnimation : Boolean = true;
|
||||
|
||||
@ -47,7 +44,7 @@ export default class NewClass extends cc.Component {
|
||||
this.moveEnemy = this.setMovements();
|
||||
this.node.runAction(this.moveEnemy);
|
||||
|
||||
this.schedule(this.shootBullets, Math.random() * 0.5 + 0.5, cc.macro.REPEAT_FOREVER, 0);
|
||||
this.schedule(this.shootBullets, Math.random() * 1 + 1, cc.macro.REPEAT_FOREVER, 0);
|
||||
}
|
||||
onCollisionEnter(otherCollider, selfCollider) {
|
||||
if(otherCollider.name === 'greenbullet<PolygonCollider>') {
|
||||
@ -66,7 +63,6 @@ export default class NewClass extends cc.Component {
|
||||
|
||||
removeExplosion() {
|
||||
this.node.destroy();
|
||||
this.node.parent.getComponent('Game').spawnShips();
|
||||
}
|
||||
|
||||
start () {
|
||||
|
||||
@ -25,7 +25,9 @@ export default class NewClass extends cc.Component {
|
||||
spawnShips() {
|
||||
var ships = [this.alienship1, this.alienship2, this.alienship3];
|
||||
var ship = cc.instantiate(ships[Math.floor(Math.random() * ships.length)]);
|
||||
ship.setPosition(Math.random() * 800 - 400, this.node.position.y + ship.getContentSize().height * 5);
|
||||
const shipX = Math.random() * 800 - 400;
|
||||
const shipY = this.node.getContentSize().height * 0.95;
|
||||
ship.setPosition(shipX, shipY);
|
||||
this.node.addChild(ship);
|
||||
}
|
||||
|
||||
@ -35,7 +37,7 @@ export default class NewClass extends cc.Component {
|
||||
}
|
||||
|
||||
start () {
|
||||
|
||||
this.schedule(this.spawnShips, 1, cc.macro.REPEAT_FOREVER, 1);
|
||||
}
|
||||
|
||||
// update (dt) {}
|
||||
|
||||
41
assets/Scripts/MenuBg.ts
Normal file
41
assets/Scripts/MenuBg.ts
Normal file
@ -0,0 +1,41 @@
|
||||
// Learn TypeScript:
|
||||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html
|
||||
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
|
||||
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
|
||||
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
|
||||
@property(cc.Prefab)
|
||||
protonSM: cc.Prefab = null;
|
||||
@property(cc.Prefab)
|
||||
protonMD: cc.Prefab = null;
|
||||
@property(cc.Prefab)
|
||||
protonLG: cc.Prefab = null;
|
||||
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
// onLoad () {}
|
||||
|
||||
spawnProtons() {
|
||||
var protons = [this.protonSM, this.protonMD, this.protonLG, this.protonMD, this.protonSM, this.protonSM];
|
||||
var proton = cc.instantiate(protons[Math.floor(Math.random() * protons.length)]);
|
||||
const protonX = Math.random() * this.node.getContentSize().width - this.node.getContentSize().width / 2;
|
||||
const protonY = this.node.getContentSize().height;
|
||||
proton.setPosition(protonX, protonY);
|
||||
this.node.addChild(proton);
|
||||
}
|
||||
|
||||
start () {
|
||||
this.schedule(this.spawnProtons, 0.1, cc.macro.REPEAT_FOREVER, 0);
|
||||
}
|
||||
|
||||
// update (dt) {}
|
||||
}
|
||||
9
assets/Scripts/MenuBg.ts.meta
Normal file
9
assets/Scripts/MenuBg.ts.meta
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.5",
|
||||
"uuid": "19aae498-4996-4650-bbed-97981c20aca7",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
@ -44,7 +44,7 @@ export default class NewClass extends cc.Component {
|
||||
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
|
||||
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd, this);
|
||||
|
||||
this.schedule(this.shootBullets, 0.1, cc.macro.REPEAT_FOREVER, 0);
|
||||
this.schedule(this.shootBullets, 0.25, cc.macro.REPEAT_FOREVER, 0);
|
||||
}
|
||||
|
||||
onTouchStart(event: cc.Event.EventTouch) {
|
||||
|
||||
35
assets/Scripts/Proton.ts
Normal file
35
assets/Scripts/Proton.ts
Normal file
@ -0,0 +1,35 @@
|
||||
// Learn TypeScript:
|
||||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html
|
||||
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
|
||||
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
|
||||
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
|
||||
@property
|
||||
duratrion : number = 1;
|
||||
|
||||
setMovements() {
|
||||
var moveDown = cc.moveBy(this.duratrion, cc.v2(0, -this.node.parent.getContentSize().height * 0.95));
|
||||
this.node.runAction(cc.repeatForever(moveDown));
|
||||
}
|
||||
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
onLoad () {
|
||||
this.scheduleOnce(this.setMovements, 0.1);
|
||||
}
|
||||
|
||||
update (dt) {
|
||||
if(this.node.position.y <= -(this.node.parent.getContentSize().height)) {
|
||||
this.node.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
9
assets/Scripts/Proton.ts.meta
Normal file
9
assets/Scripts/Proton.ts.meta
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.5",
|
||||
"uuid": "ab3beb31-2ef1-4756-b9a7-ccaa3113abe1",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 68 KiB |
50
settings/builder.json
Normal file
50
settings/builder.json
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"android-instant": {
|
||||
"REMOTE_SERVER_ROOT": "",
|
||||
"host": "",
|
||||
"pathPattern": "",
|
||||
"recordPath": "",
|
||||
"scheme": "https",
|
||||
"skipRecord": false
|
||||
},
|
||||
"appBundle": false,
|
||||
"baidugame": {
|
||||
"REMOTE_SERVER_ROOT": "",
|
||||
"appid": "testappid",
|
||||
"orientation": "portrait",
|
||||
"subContext": ""
|
||||
},
|
||||
"encryptJs": true,
|
||||
"excludeScenes": [],
|
||||
"fb-instant-games": {},
|
||||
"includeSDKBox": false,
|
||||
"inlineSpriteFrames": true,
|
||||
"inlineSpriteFrames_native": true,
|
||||
"md5Cache": false,
|
||||
"mergeStartScene": false,
|
||||
"optimizeHotUpdate": false,
|
||||
"orientation": {
|
||||
"landscapeLeft": false,
|
||||
"landscapeRight": false,
|
||||
"portrait": true,
|
||||
"upsideDown": false
|
||||
},
|
||||
"packageName": "org.cocos2d.SpacerShppter",
|
||||
"qqplay": {
|
||||
"REMOTE_SERVER_ROOT": "",
|
||||
"orientation": "portrait",
|
||||
"zip": false
|
||||
},
|
||||
"startScene": "3262a1c4-0f31-4d75-86a0-e6aaebac5364",
|
||||
"title": "SpacerShppter",
|
||||
"webOrientation": "auto",
|
||||
"wechatgame": {
|
||||
"REMOTE_SERVER_ROOT": "",
|
||||
"appid": "wx6ac3f5090a6b99c5",
|
||||
"orientation": "portrait",
|
||||
"separate_engine": false,
|
||||
"subContext": ""
|
||||
},
|
||||
"xxteaKey": "8da5a5e5-fd12-40",
|
||||
"zipCompressJs": true
|
||||
}
|
||||
@ -54,12 +54,13 @@
|
||||
"player",
|
||||
"New Group 6"
|
||||
],
|
||||
"last-module-event-record-time": 0,
|
||||
"last-module-event-record-time": 1761549490300,
|
||||
"simulator-orientation": false,
|
||||
"simulator-resolution": {
|
||||
"height": 640,
|
||||
"width": 960
|
||||
},
|
||||
"use-customize-simulator": true,
|
||||
"use-project-simulator-setting": false
|
||||
"use-project-simulator-setting": false,
|
||||
"start-scene": "current"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user