飞升初次提交
This commit is contained in:
commit
c0a0c4a1b2
BIN
assets.zip
Normal file
BIN
assets.zip
Normal file
Binary file not shown.
13
assets/Scene.meta
Normal file
13
assets/Scene.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
6946
assets/Scene/GameScene.fire
Normal file
6946
assets/Scene/GameScene.fire
Normal file
File diff suppressed because it is too large
Load Diff
8
assets/Scene/GameScene.fire.meta
Normal file
8
assets/Scene/GameScene.fire.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "90e4d14c-de00-4990-bcb9-4b5eb0f9c60a",
|
||||
"importer": "scene",
|
||||
"asyncLoadAssets": false,
|
||||
"autoReleaseAssets": true,
|
||||
"subMetas": {}
|
||||
}
|
7307
assets/Scene/GuideScene.fire
Normal file
7307
assets/Scene/GuideScene.fire
Normal file
File diff suppressed because it is too large
Load Diff
8
assets/Scene/GuideScene.fire.meta
Normal file
8
assets/Scene/GuideScene.fire.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "7dae2401-bac3-47f8-8bcd-b8f23cf7c8cf",
|
||||
"importer": "scene",
|
||||
"asyncLoadAssets": false,
|
||||
"autoReleaseAssets": false,
|
||||
"subMetas": {}
|
||||
}
|
891
assets/Scene/LoadScene.fire
Normal file
891
assets/Scene/LoadScene.fire
Normal file
|
@ -0,0 +1,891 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.SceneAsset",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"scene": {
|
||||
"__id__": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Scene",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_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
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_is3DNode": true,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"autoReleaseAssets": false,
|
||||
"_id": "de4a2193-73c2-43cd-8359-363f654e759f"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "GameData",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
},
|
||||
{
|
||||
"__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
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "2cMYZKehlOnbVGV23kb483"
|
||||
},
|
||||
{
|
||||
"__type__": "f2f0bI5PsVI+o18xF6G+KVa",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": "00sxmSNoROVLJJnMZniNLa"
|
||||
},
|
||||
{
|
||||
"__type__": "7574f5PdlZP4Kt9dxMgkIPZ",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"audioGameBgm0": null,
|
||||
"jump": {
|
||||
"__uuid__": "ca6ad979-5278-4cf4-ac20-fab0752f15c4"
|
||||
},
|
||||
"luodi": {
|
||||
"__uuid__": "7ec88ffd-9b4c-4850-9538-ed910b0b3a8b"
|
||||
},
|
||||
"pz": {
|
||||
"__uuid__": "c2ef963c-d08e-471e-a36e-2b1b4b96ceee"
|
||||
},
|
||||
"luodui": {
|
||||
"__uuid__": "cd5cfffa-111c-40d2-b35e-690fe40c27ed"
|
||||
},
|
||||
"_id": "a3oH4G7lNMrr2ZqVz9NFQ5"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Canvas",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
},
|
||||
{
|
||||
"__id__": 10
|
||||
},
|
||||
{
|
||||
"__id__": 14
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 19
|
||||
},
|
||||
{
|
||||
"__id__": 20
|
||||
},
|
||||
{
|
||||
"__id__": 21
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 750,
|
||||
"height": 1334
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
375,
|
||||
667,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "a5esZu+45LA5mBpvttspPD"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Main Camera",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_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
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "e1WoFrQ79G7r4ZuQE3HlNb"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Camera",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_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,
|
||||
"_alignWithScreen": true,
|
||||
"_id": "81GN3uXINKVLeW4+iKSlim"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "New Sprite",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 9
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 750,
|
||||
"height": 1660
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "51wPQXltVEWokDjaI0OfP8"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "5981526b-0235-4e83-9544-f0add48f3966"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": "31UPi5vr5OP4kuWRk6g3wI"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "New Sprite",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 11
|
||||
},
|
||||
{
|
||||
"__id__": 12
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 444,
|
||||
"height": 82
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-289.447,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
0
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "4bZtP1dp5OoZqTRR8ir6/C"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "8bbbb252-0c78-41e1-896a-d8e5b57673c0"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": "8a+fo4VINIAY78oIGldWIQ"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Button",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_enabled": true,
|
||||
"_normalMaterial": null,
|
||||
"_grayMaterial": null,
|
||||
"duration": 0.1,
|
||||
"zoomScale": 1.1,
|
||||
"clickEvents": [
|
||||
{
|
||||
"__id__": 13
|
||||
}
|
||||
],
|
||||
"_N$interactable": true,
|
||||
"_N$enableAutoGrayEffect": false,
|
||||
"_N$transition": 3,
|
||||
"transition": 3,
|
||||
"_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": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_id": "5eAChPtIxAv5XfCAiKm4mn"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ClickEvent",
|
||||
"target": {
|
||||
"__id__": 5
|
||||
},
|
||||
"component": "",
|
||||
"_componentId": "08fd79IH4NDy6e43JUK4PUm",
|
||||
"handler": "click",
|
||||
"customEventData": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "rank",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 15
|
||||
},
|
||||
{
|
||||
"__id__": 16
|
||||
},
|
||||
{
|
||||
"__id__": 18
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 102,
|
||||
"height": 102
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
303.73,
|
||||
-581.79,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
0
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "4d//2MtipOELvBuQwjW/zx"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "81913c80-b58c-411b-92a2-5ef0b4f5ed85"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": "21c/ARK7xIHIXRNU8GT6P/"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Button",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_enabled": true,
|
||||
"_normalMaterial": null,
|
||||
"_grayMaterial": null,
|
||||
"duration": 0.1,
|
||||
"zoomScale": 1.1,
|
||||
"clickEvents": [
|
||||
{
|
||||
"__id__": 17
|
||||
}
|
||||
],
|
||||
"_N$interactable": true,
|
||||
"_N$enableAutoGrayEffect": false,
|
||||
"_N$transition": 3,
|
||||
"transition": 3,
|
||||
"_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": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_id": "25Qz4yxH1FM6nbDzzyZpPQ"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ClickEvent",
|
||||
"target": {
|
||||
"__id__": 5
|
||||
},
|
||||
"component": "",
|
||||
"_componentId": "08fd79IH4NDy6e43JUK4PUm",
|
||||
"handler": "openRank",
|
||||
"customEventData": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
"_target": null,
|
||||
"_alignFlags": 36,
|
||||
"_left": 0,
|
||||
"_right": 20.269999999999982,
|
||||
"_top": 0,
|
||||
"_bottom": 34.20999999999998,
|
||||
"_verticalCenter": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 0,
|
||||
"_originalHeight": 0,
|
||||
"_id": "beMIvUdwtIS4NR5TDHhb7M"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Canvas",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"_designResolution": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 750,
|
||||
"height": 1334
|
||||
},
|
||||
"_fitWidth": true,
|
||||
"_fitHeight": false,
|
||||
"_id": "59Cd0ovbdF4byw5sbjJDx7"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
"_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": 0,
|
||||
"_originalHeight": 0,
|
||||
"_id": "29zXboiXFBKoIV4PQ2liTe"
|
||||
},
|
||||
{
|
||||
"__type__": "08fd79IH4NDy6e43JUK4PUm",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": "e5Sl2Kl75B671Y8RWBHBp5"
|
||||
}
|
||||
]
|
8
assets/Scene/LoadScene.fire.meta
Normal file
8
assets/Scene/LoadScene.fire.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "de4a2193-73c2-43cd-8359-363f654e759f",
|
||||
"importer": "scene",
|
||||
"asyncLoadAssets": false,
|
||||
"autoReleaseAssets": false,
|
||||
"subMetas": {}
|
||||
}
|
4523
assets/Scene/RankScene.fire
Normal file
4523
assets/Scene/RankScene.fire
Normal file
File diff suppressed because it is too large
Load Diff
8
assets/Scene/RankScene.fire.meta
Normal file
8
assets/Scene/RankScene.fire.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "92833b7e-ff21-4bab-84ea-c39509a4d2b1",
|
||||
"importer": "scene",
|
||||
"asyncLoadAssets": false,
|
||||
"autoReleaseAssets": false,
|
||||
"subMetas": {}
|
||||
}
|
13
assets/Script.meta
Normal file
13
assets/Script.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
143
assets/Script/Block.ts
Normal file
143
assets/Script/Block.ts
Normal file
|
@ -0,0 +1,143 @@
|
|||
import GameData from "./GameData";
|
||||
import GameManager from "./GameManager";
|
||||
import { Notification } from './tool/Notification';
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
|
||||
@property(cc.Label)
|
||||
label: cc.Label = null;
|
||||
|
||||
@property
|
||||
text: string = 'hello';
|
||||
tween: cc.Tween<cc.Node>;
|
||||
speed: number; //移动速度,时间参数,位移个固定
|
||||
move: boolean; //是否在移动状态。
|
||||
num: number;
|
||||
difficulty: number;
|
||||
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
onLoad () {
|
||||
this.node.getComponent(cc.PolygonCollider).enabled = true;
|
||||
this.speed = 10;
|
||||
this.num = 0;
|
||||
this.move = false;
|
||||
if(this.node.name.length > 6){
|
||||
this.num = parseInt(this.node.name.substring(5,7))
|
||||
}else this.num = parseInt(this.node.name.substring(5,6))
|
||||
this.speed = GameData._instance.BLOCK_INFO[this.num-1].speed;
|
||||
this.init();
|
||||
}
|
||||
|
||||
start () {
|
||||
}
|
||||
|
||||
init(){
|
||||
this.getSpeed();
|
||||
if(this.num > GameData._instance.GM_INFO.blockScale){
|
||||
if(this.speed < GameData._instance.LEVEL_INFO.slowSpeed)this.speed = GameData._instance.LEVEL_INFO.slowSpeed;
|
||||
}
|
||||
else {
|
||||
if(this.speed < GameData._instance.LEVEL_INFO.fastSpeed)this.speed = GameData._instance.LEVEL_INFO.fastSpeed;
|
||||
}
|
||||
if(this.num != 13 && !GameData._instance.GM_INFO.probation){
|
||||
GameData._instance.CLICK_DATA.block = this.num;
|
||||
GameData._instance.CLICK_DATA.speed = this.speed;
|
||||
this.getDifficulty();
|
||||
}
|
||||
else{
|
||||
this.node.getComponent(cc.PolygonCollider).enabled = false;
|
||||
this.node.getComponent(cc.BoxCollider).enabled = false;
|
||||
GameData._instance.CLICK_DATA.fakeSpeed = this.speed;
|
||||
}
|
||||
this.move = true;
|
||||
this.tween =
|
||||
cc.tween(this.node)
|
||||
.to(this.speed,{x:-this.node.x})
|
||||
.call(() =>{
|
||||
this.move = false;
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
getSpeed(){
|
||||
//先加范围 厚的
|
||||
let reduceSpeed = GameData._instance.LEVEL_INFO.reduceSpeed;
|
||||
reduceSpeed = parseInt(Math.random()*reduceSpeed + "");
|
||||
|
||||
this.speed = this.speed - reduceSpeed/10;
|
||||
//最后乘以系数
|
||||
this.speed = this.speed/GameData._instance.LEVEL_INFO.speed;
|
||||
this.speed = parseInt(this.speed*10 + "")/10;
|
||||
|
||||
}
|
||||
|
||||
getDifficulty(){
|
||||
var difficulty1 = 0;
|
||||
var sudu = Math.abs(this.speed - GameManager._instance.oldSpeed);
|
||||
difficulty1 = (sudu/10+1)*(11-this.speed);
|
||||
if(difficulty1 <= 1) difficulty1 = 1;
|
||||
else if(difficulty1 >= 7) difficulty1 = 7;
|
||||
var difficulty2 = 0;
|
||||
if(this.node.width < 180) difficulty2 = 0;
|
||||
else if(this.node.width < 199) difficulty2 = 0.5;
|
||||
else difficulty2 = 1;
|
||||
var difficulty3 = 0;
|
||||
if(GameManager._instance.interfere == true){
|
||||
difficulty3 = 1;
|
||||
}
|
||||
var difficulty4 = 0;
|
||||
if(this.num > 6){
|
||||
difficulty4 = 1;
|
||||
}
|
||||
GameManager._instance.oldSpeed = this.speed;
|
||||
this.difficulty = 0;
|
||||
this.difficulty = difficulty1 + difficulty2 + difficulty3 + difficulty4;
|
||||
this.difficulty = parseInt(this.difficulty *10 + "");
|
||||
GameData._instance.CLICK_DATA.difficulty = this.difficulty/10;
|
||||
if(GameData._instance.CLICK_DATA.difficulty > GameData._instance.GM_INFO.difficultyMax)
|
||||
GameData._instance.GM_INFO.difficultyMax = GameData._instance.CLICK_DATA.difficulty;
|
||||
}
|
||||
|
||||
setScore(fen){
|
||||
let score = 0;
|
||||
let difficulty = this.difficulty / 10;
|
||||
let layer = GameData._instance.LEVEL_INFO.layer;
|
||||
let doubleHit = GameData._instance.LEVEL_INFO.doubleHit;
|
||||
score = parseInt(fen * difficulty * layer * doubleHit + "");
|
||||
Notification.emit("addScore",score);
|
||||
}
|
||||
|
||||
hide(){
|
||||
cc.tween(this.node)
|
||||
.to(0.2,{opacity:0})
|
||||
.call(() =>{
|
||||
this.node.active = false;
|
||||
this.node.removeFromParent();
|
||||
this.node = null;
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
onCollisionEnter(other: cc.Collider, self: cc.Collider) {
|
||||
if(GameManager._instance){
|
||||
if(GameManager._instance.over == true){
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(other.node.name == "Player"){
|
||||
let max = self.name.length;
|
||||
let ColliderName = other.name.substring(6,max);
|
||||
if(this.move == true){
|
||||
if(this.tween){
|
||||
this.tween.stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
update (dt) {
|
||||
}
|
||||
}
|
10
assets/Script/Block.ts.meta
Normal file
10
assets/Script/Block.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "2bf4d5d8-fab2-46df-b69b-2ca882121eec",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
43
assets/Script/Camera.ts
Normal file
43
assets/Script/Camera.ts
Normal file
|
@ -0,0 +1,43 @@
|
|||
// Learn TypeScript:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
import GameData from './GameData';
|
||||
import GameManager from './GameManager';
|
||||
import { Notification } from './tool/Notification';
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
|
||||
@property(cc.Label)
|
||||
label: cc.Label = null;
|
||||
|
||||
@property
|
||||
text: string = 'hello';
|
||||
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
// onLoad () {}
|
||||
|
||||
start () {
|
||||
this.node.on(cc.Node.EventType.TOUCH_START, this.jump, this);
|
||||
}
|
||||
|
||||
jump(){
|
||||
if(GameManager._instance){
|
||||
if(GameManager._instance.over == false && GameManager._instance.begin == true){
|
||||
Notification.emit("jump",null);
|
||||
}
|
||||
}
|
||||
else if(GameData._instance.GM_INFO.probation == true){
|
||||
Notification.emit("jump",null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// update (dt) {}
|
||||
}
|
10
assets/Script/Camera.ts.meta
Normal file
10
assets/Script/Camera.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "ba515d92-b928-4117-b19c-e6e1e21aca74",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
242
assets/Script/GameData.ts
Normal file
242
assets/Script/GameData.ts
Normal file
|
@ -0,0 +1,242 @@
|
|||
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class GameData extends cc.Component {
|
||||
@property(cc.Label)
|
||||
label: cc.Label = null;
|
||||
@property
|
||||
text: string = 'hello';
|
||||
static _instance: any;
|
||||
GM_INFO: {};
|
||||
GAME_DATA: any[];//备用
|
||||
AudioManager: any;
|
||||
BLOCK_INFO: { //难度控制
|
||||
name: string; //块名字
|
||||
//块名字
|
||||
speed: number; //每个块的基础速度
|
||||
thickness: boolean;
|
||||
}[];
|
||||
CLICK_DATA: {
|
||||
type: number; //默认类型
|
||||
level: number; //层数
|
||||
block: number; //块的名字
|
||||
percent: number; //距离中心百分比
|
||||
getScore: number; //本轮获得分数
|
||||
totalScore: number; //本轮过后总分数
|
||||
difficulty: number; //本轮难度系数
|
||||
height: boolean; //本轮是否增高
|
||||
combo: number; //连击数
|
||||
accuracy: number; //精准度 (0-3) 0 失败掉落
|
||||
jumps: number; //本轮玩家跳跃次数,1或者2
|
||||
timer: number; //本局游戏剩余时间
|
||||
fake: boolean; //是否有平台干扰项
|
||||
fakeSpeed: number; //假平台移动速度
|
||||
speed:number; //真平台移动速度
|
||||
round:number; //回合数
|
||||
levelMax:number, //最高层数
|
||||
difficultyMax:number //最高难度系数
|
||||
};
|
||||
LEVEL_INFO: { //难度控制
|
||||
speed: number; //速度加成基础
|
||||
addSpeed: number; //速度加成系数
|
||||
reduceSpeed: number; //速度增加范围
|
||||
jiansu: number; //速度增加的范围加值
|
||||
round1: number; //加速范围控制回合档数 2 小于这回合为3double hit
|
||||
round2: number; //加速范围控制回合档数 1
|
||||
round3: number; //加速范围控制回合档数 0.5
|
||||
doubleSuccess: number; //连击次数(N次以上,开启干扰项)
|
||||
fastSpeed: number; //矮薄块最快速度
|
||||
slowSpeed: number; //厚块最块速度
|
||||
doubleHit: number; //连击加成
|
||||
doubleAdd: number; //每次连击后 连击加成
|
||||
doubleMax: number; //连击加成最大值
|
||||
layer: number; //层级加成
|
||||
layerAdd: number; //每次层级提升,层级加成的加成
|
||||
star1: number; //获得一颗星百分比
|
||||
star2: number; //获得两颗星百分比
|
||||
star3: number; //获得三颗星百分比
|
||||
scoreMax: number; //暂时总分
|
||||
levelMax: number; //最高层数
|
||||
difficultyMax: number; //最高难度系数
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
// 0.15 0.37 0.8 获得三个星星 -2167.675 -2054 两个尺寸的屏幕的补偿值
|
||||
onLoad () {
|
||||
if (GameData._instance == null) {
|
||||
GameData._instance = this;
|
||||
// cc.game.addPersistRootNode(this.node);
|
||||
|
||||
this.AudioManager = this.node.getComponent('BallAudioManager');
|
||||
}
|
||||
else {
|
||||
this.node.destroy();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
start () {
|
||||
//GAME_DATA 废弃了,暂时不删除以防后面修改回 一整局传一次
|
||||
this.GAME_DATA = [
|
||||
]
|
||||
this.GM_INFO_init(); //GM_INFO存储 一些游戏数据,这些数据至少是当局内不会重置清零的
|
||||
this.LEVEL_init(); //每局游戏内游戏参数,可复活清零或者重玩清零
|
||||
this.BLOCK_INFO_init(); //每个游戏不同,此游戏为跳板参数
|
||||
this.CLICK_init(); //埋点数据,用于上传重要数据
|
||||
}
|
||||
|
||||
GM_INFO_init(){
|
||||
this.GM_INFO = {
|
||||
// isEnd: false,
|
||||
mean_Time:0, //平均放箭速度
|
||||
total:0, //总共对的个数
|
||||
currSeed: 203213, //用于随机数种子
|
||||
gameId:'100001',
|
||||
userId:"",
|
||||
guide:true, //是否有引导
|
||||
url:"http://dev.api.sparkus.cn",
|
||||
custom: 0,
|
||||
|
||||
//从这开始
|
||||
jumpUpTime:0.5, //起跳时间
|
||||
jumpDownTime:0.4, //落地时间
|
||||
|
||||
jumpHeight:150, //跳跃高度
|
||||
blockMin:30, //薄块增加高度
|
||||
blockMax:-10, //厚块增加高度(在自身高度基础上)此值可以为负值
|
||||
blockScale:5, //次值满值为块种类总个数12,6为百分之50厚,50薄,个数增加,厚度比例降低
|
||||
distanceMin:100, //落地范围在百分百内必成功,可改参
|
||||
distanceMax:110, //落地范围最大值,弱大于,判断脚在外面
|
||||
life:3, //可复活次数
|
||||
levelMax:1, //最高层数
|
||||
difficultyMax:1, //最高难度系数
|
||||
score:0, //总分
|
||||
success:true, //是否成功
|
||||
probation:true //试用期
|
||||
};
|
||||
}
|
||||
|
||||
CLICK_init(){
|
||||
GameData._instance.CLICK_DATA =
|
||||
{
|
||||
type:1, //默认类型
|
||||
level:0, //层数
|
||||
block:0, //块的名字
|
||||
percent:0, //距离中心百分比
|
||||
getScore:0, //本轮获得分数
|
||||
totalScore:0, //本轮过后总分数
|
||||
difficulty:0, //本轮难度系数
|
||||
height:false, //本轮是否增高
|
||||
combo:0, //连击数
|
||||
accuracy:0, //精准度 (0-3) 0 失败掉落
|
||||
jumps:0, //本轮玩家跳跃次数,1或者2
|
||||
timer:0, //本局游戏剩余时间
|
||||
fake:false, //是否有平台干扰项
|
||||
fakeSpeed:0, //假平台移动速度
|
||||
speed:0, //真平台移动速度
|
||||
round:0, //回合数
|
||||
}
|
||||
}
|
||||
|
||||
LEVEL_init(){
|
||||
this.LEVEL_INFO =
|
||||
{ //难度控制
|
||||
speed:1, //速度加成基础
|
||||
addSpeed:0.02, //速度加成系数
|
||||
reduceSpeed:0, //速度增加范围
|
||||
jiansu:3, //速度增加的范围加值
|
||||
round1:10, //加速范围控制回合档数 2 小于这回合为3double hit
|
||||
round2:20, //加速范围控制回合档数 1
|
||||
round3:30, //加速范围控制回合档数 0.5
|
||||
doubleSuccess:3, //连击次数(N次以上,开启干扰项)
|
||||
fastSpeed:3.5, //矮薄块最快速度
|
||||
slowSpeed:4.5, //厚块最块速度
|
||||
doubleHit:1, //连击加成
|
||||
doubleAdd:0.05, //每次连击后 连击加成
|
||||
doubleMax:2, //连击加成最大值
|
||||
layer:100, //层级加成
|
||||
layerAdd:2, //每次层级提升,层级加成的加成
|
||||
star1:0.2, //获得一颗星百分比
|
||||
star2:0.4, //获得两颗星百分比
|
||||
star3:0.8, //获得三颗星百分比
|
||||
scoreMax:120000, //暂时总分
|
||||
levelMax:1, //最高层数
|
||||
difficultyMax:1 //最高难度系数
|
||||
}
|
||||
}
|
||||
|
||||
BLOCK_INFO_init(){
|
||||
this.BLOCK_INFO = [
|
||||
{ //难度控制
|
||||
name:"block1", //块名字
|
||||
speed:8, //每个块的基础速度
|
||||
thickness:false, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block2", //块名字
|
||||
speed:9, //每个块的基础速度
|
||||
thickness:false, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block3", //块名字
|
||||
speed:8, //每个块的基础速度
|
||||
thickness:false, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block4", //块名字
|
||||
speed:9, //每个块的基础速度
|
||||
thickness:false, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block5", //块名字
|
||||
speed:8, //每个块的基础速度
|
||||
thickness:false, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block6", //块名字
|
||||
speed:7, //每个块的基础速度
|
||||
thickness:false, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block7", //块名字
|
||||
speed:10, //每个块的基础速度
|
||||
thickness:true, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block8", //块名字
|
||||
speed:10, //每个块的基础速度
|
||||
thickness:true, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block9", //块名字
|
||||
speed:10, //每个块的基础速度
|
||||
thickness:true, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block10", //块名字
|
||||
speed:10, //每个块的基础速度
|
||||
thickness:true, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block11", //块名字
|
||||
speed:10, //每个块的基础速度
|
||||
thickness:true, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block12", //块名字
|
||||
speed:10, //每个块的基础速度
|
||||
thickness:true, //当前块的厚度
|
||||
},
|
||||
{ //难度控制
|
||||
name:"block0", //块名字
|
||||
speed:14, //每个块的基础速度
|
||||
thickness:false, //当前块的厚度
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
// update (dt) {}
|
||||
}
|
10
assets/Script/GameData.ts.meta
Normal file
10
assets/Script/GameData.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "f2f0b239-3ec5-48fa-8d7c-c45e86f8a55a",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
520
assets/Script/GameManager.ts
Normal file
520
assets/Script/GameManager.ts
Normal file
|
@ -0,0 +1,520 @@
|
|||
// Learn TypeScript:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
import GameData from './GameData';
|
||||
import HttpUtil from './crypto/HttpUtil';
|
||||
import { GameTool } from './tool/GameTool';
|
||||
import { Notification } from './tool/Notification';
|
||||
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class GameManager extends cc.Component {
|
||||
|
||||
@property(cc.Camera)
|
||||
Camera: cc.Camera = null;
|
||||
|
||||
@property(cc.Node)
|
||||
topUI: cc.Node = null;
|
||||
|
||||
@property(cc.Node)
|
||||
Player: cc.Node = null;
|
||||
|
||||
@property(cc.Node)
|
||||
Ground: cc.Node = null;
|
||||
|
||||
@property(cc.Node)
|
||||
Xin: cc.Node = null;
|
||||
|
||||
@property(cc.Label)
|
||||
time: cc.Label = null;
|
||||
|
||||
@property(cc.Node)
|
||||
GameOver: cc.Node = null;
|
||||
|
||||
@property(cc.Node)
|
||||
Tip: cc.Node = null;
|
||||
|
||||
@property([cc.Prefab])
|
||||
blockPrefab : Array<cc.Prefab> = [];
|
||||
|
||||
|
||||
|
||||
round: number; //回合
|
||||
level: number; //回合
|
||||
static _instance: any;
|
||||
blockArray: any;
|
||||
cameraMove:boolean
|
||||
countHeight:number;
|
||||
countTime: number;
|
||||
over: boolean;
|
||||
begin: boolean;
|
||||
interfere: boolean;
|
||||
oldSpeed: number; //上一回合速度
|
||||
score: number; //总得分
|
||||
difficultyMax:number; //最高难度系数
|
||||
drop: number; //摄像机落差
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
|
||||
|
||||
onLoad () {
|
||||
// cc.game.setFrameRate(59.9);
|
||||
// 示例使用
|
||||
var manager = cc.director.getCollisionManager();
|
||||
manager.enabled = true;
|
||||
// manager.enabledDebugDraw = true;
|
||||
GameManager._instance = this;
|
||||
GameData._instance.GM_INFO.probation = false;
|
||||
}
|
||||
|
||||
protected onEnable(): void {
|
||||
Notification.on("createBlock",this.createBlock,this);
|
||||
Notification.on("addScore",this.addScore,this);
|
||||
Notification.on("createCrackBlock",this.createCrackBlock,this);
|
||||
Notification.on("showGround",this.showGround,this);
|
||||
Notification.on("death",this.getDeath,this);
|
||||
Notification.on("jump",this.jump,this);
|
||||
Notification.on("setData",this.setData,this);
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected onDestroy(): void {
|
||||
Notification.off("createBlock",this.createBlock);
|
||||
Notification.off("addScore",this.addScore);
|
||||
Notification.off("createBlock",this.createCrackBlock);
|
||||
Notification.off("death",this.getDeath);
|
||||
Notification.off("jump",this.jump);
|
||||
Notification.off("showGround",this.showGround);
|
||||
Notification.off("setData",this.setData);
|
||||
}
|
||||
|
||||
init(){
|
||||
this.drop = this.topUI.y - this.Camera.node.y;
|
||||
this.score = 0;
|
||||
this.oldSpeed = 10;
|
||||
this.begin = true;
|
||||
this.over = false;
|
||||
this.interfere = false;
|
||||
this.round = 0;
|
||||
this.level = 0;
|
||||
GameData._instance.GM_INFO.levelMax = 1;
|
||||
GameData._instance.GM_INFO.difficultyMax = 1;
|
||||
GameData._instance.GM_INFO.life = 3;
|
||||
this.blockArray = [];
|
||||
this.cameraMove = false;
|
||||
this.countTime = 120;
|
||||
this.topUI.getChildByName("xin1").active = true;
|
||||
this.topUI.getChildByName("xin2").active = true;
|
||||
this.topUI.getChildByName("xin3").active = true;
|
||||
this.topUI.getChildByName("star1").active = false;
|
||||
this.topUI.getChildByName("star2").active = false;
|
||||
this.topUI.getChildByName("star3").active = false;
|
||||
GameData._instance.LEVEL_init();
|
||||
this.schedule(this.updateCountDownTime,1);
|
||||
}
|
||||
|
||||
start () {
|
||||
// this.node.on(cc.Node.EventType.TOUCH_START, this.jump, this);
|
||||
this.fit();
|
||||
this.init();
|
||||
if(GameData._instance.GM_INFO.probation) this.startGuide();
|
||||
else this.startGame();
|
||||
}
|
||||
|
||||
//根据是否全面屏,做独立适配方面
|
||||
fit(){
|
||||
this.node.getChildByName("bg2").y = -2167.675;
|
||||
var jg = this.setFit();
|
||||
if(!jg){
|
||||
this.node.getChildByName("bg2").y = -2100;
|
||||
this.topUI.y = 660;
|
||||
}
|
||||
|
||||
}
|
||||
//判断全面屏
|
||||
getSetScreenResolutionFlag () {
|
||||
let size = cc.winSize;
|
||||
let width = size.width;
|
||||
let height = size.height;
|
||||
if ((height / width) > (16.2 / 9)) return false;
|
||||
return true;
|
||||
}
|
||||
//判断全面屏适配
|
||||
setFit () {
|
||||
let flag = this.getSetScreenResolutionFlag();
|
||||
if (flag) {
|
||||
} else {
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
startGuide(){
|
||||
//打开卷
|
||||
let left = this.Tip.getChildByName("left");
|
||||
let right = this.Tip.getChildByName("right");
|
||||
let tip = this.Tip.getChildByName("tip");
|
||||
left.width = 0; right.width = 0;tip.opacity = 0;
|
||||
// cc.tween(left)
|
||||
// .to(0.25,{width:348})
|
||||
// .start();
|
||||
// cc.tween(right)
|
||||
// .to(0.25,{width:348})
|
||||
// .start();
|
||||
// cc.tween(tip)
|
||||
// .delay(0.15)
|
||||
// .to(0.15,{opacity:255})
|
||||
// .start();
|
||||
}
|
||||
|
||||
showGround(tempY){
|
||||
setTimeout(() => {
|
||||
this.Ground.active = true;
|
||||
this.Ground.y = tempY;
|
||||
}, 500);
|
||||
}
|
||||
|
||||
jump(){
|
||||
this.Player.getComponent("Player").jump();
|
||||
}
|
||||
|
||||
startGame(){
|
||||
|
||||
this.createBlock();
|
||||
}
|
||||
|
||||
addScore(score){
|
||||
GameData._instance.CLICK_DATA.getScore = parseInt(score);
|
||||
GameManager._instance.score += parseInt(score);
|
||||
GameData._instance.CLICK_DATA.totalScore = GameManager._instance.score;
|
||||
this.topUI.getChildByName("nandu").getComponent(cc.Label).string = GameManager._instance.score + "";
|
||||
var scale = GameManager._instance.score/GameData._instance.LEVEL_INFO.scoreMax;
|
||||
cc.tween(this.topUI.getChildByName("progress").getComponent(cc.Sprite))
|
||||
.to(0.5,{fillRange:scale})
|
||||
.call(() =>{
|
||||
if(scale >= GameData._instance.LEVEL_INFO.star1 && !this.topUI.getChildByName("star1").active){
|
||||
this.topUI.getChildByName("star1").active = true;
|
||||
}
|
||||
if(scale >= GameData._instance.LEVEL_INFO.star2 && !this.topUI.getChildByName("star2").active){
|
||||
this.topUI.getChildByName("star2").active = true;
|
||||
}
|
||||
if(scale >= GameData._instance.LEVEL_INFO.star3 && !this.topUI.getChildByName("star3").active){
|
||||
this.topUI.getChildByName("star3").active = true;
|
||||
// GameData._instance.scoreMax = 150000;
|
||||
}
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
createBlock(){
|
||||
if(this.over == false && this.begin == true){
|
||||
this.Ground.active = false;
|
||||
var num = Math.floor(Math.random()*12);
|
||||
if(this.round <= 10 && num == 5){
|
||||
num = Math.floor(Math.random()*6 + 6);
|
||||
}
|
||||
|
||||
var block = cc.instantiate(this.blockPrefab[num]);
|
||||
let height = this.Player.getComponent("Player").basicHeight + GameData._instance.GM_INFO.blockMin;
|
||||
if(num > GameData._instance.GM_INFO.blockScale){
|
||||
height += block.height + GameData._instance.GM_INFO.blockMax;
|
||||
GameData._instance.CLICK_DATA.height = true;
|
||||
}
|
||||
|
||||
if(height >= 0 && this.cameraMove == false){
|
||||
this.countHeight = this.Player.getComponent("Player").basicHeight - this.Camera.node.y;
|
||||
this.cameraMove = true;
|
||||
}
|
||||
block.setPosition(cc.v2(this.round%2==0?480:-480,height));
|
||||
block.parent = this.node.getChildByName("Block");
|
||||
block.zIndex = 10;
|
||||
this.round += 1;
|
||||
this.level += 1;
|
||||
if(this.round > GameData._instance.GM_INFO.levelMax) GameData._instance.GM_INFO.levelMax = this.round;
|
||||
GameData._instance.CLICK_DATA.level = this.round;
|
||||
GameData._instance.CLICK_DATA.round = this.level;
|
||||
GameData._instance.LEVEL_INFO.layer += GameData._instance.LEVEL_INFO.layerAdd;
|
||||
GameData._instance.LEVEL_INFO.speed += GameData._instance.LEVEL_INFO.addSpeed;
|
||||
|
||||
if(GameData._instance.LEVEL_INFO.reduceSpeed <= 100)
|
||||
GameData._instance.LEVEL_INFO.reduceSpeed += GameData._instance.LEVEL_INFO.jiansu;
|
||||
if(this.round == GameData._instance.LEVEL_INFO.round1) GameData._instance.LEVEL_INFO.jiansu = 2;
|
||||
else if(this.round == GameData._instance.LEVEL_INFO.round2) GameData._instance.LEVEL_INFO.jiansu = 1;
|
||||
else if(this.round == GameData._instance.LEVEL_INFO.round3) GameData._instance.LEVEL_INFO.jiansu = 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
//虚假碎裂块
|
||||
createCrackBlock(){
|
||||
this.interfere = true;
|
||||
GameData._instance.CLICK_DATA.fake = this.interfere;
|
||||
if(this.round > 1) this.destroyBlock();
|
||||
if(this.over == false && this.begin == true){
|
||||
var block = cc.instantiate(this.blockPrefab[12]);
|
||||
let height = this.Player.getComponent("Player").basicHeight;
|
||||
if(GameData._instance.CLICK_DATA.height == true){
|
||||
height += block.height/2;
|
||||
}
|
||||
block.setPosition(cc.v2(this.round%2==0?480:-480,height));
|
||||
block.parent = this.node.getChildByName("CrackBlock");
|
||||
block.zIndex = 1;
|
||||
}
|
||||
}
|
||||
|
||||
destroyBlock(){
|
||||
if(this.node){
|
||||
if(this.node.getChildByName("CrackBlock")){
|
||||
if(this.node.getChildByName("CrackBlock").children){
|
||||
var block2 = this.node.getChildByName("CrackBlock").children;
|
||||
for(let i=0; i<block2.length; i++){
|
||||
if(block2[i]){
|
||||
block2[i].getComponent("Block").hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
xinAction(){
|
||||
let xin = this.topUI.getChildByName("xin1");
|
||||
if(GameData._instance.GM_INFO.life == 2) xin = this.topUI.getChildByName("xin3");
|
||||
else if(GameData._instance.GM_INFO.life == 1) xin = this.topUI.getChildByName("xin2");
|
||||
cc.tween(xin)
|
||||
.to(0.6,{scale:1.6,opacity:0})
|
||||
.call(() =>{
|
||||
xin.active = false;
|
||||
})
|
||||
.start();
|
||||
}
|
||||
//死亡
|
||||
getDeath(){
|
||||
if(GameData._instance.GM_INFO.life > 0){
|
||||
GameData._instance.GM_INFO.life -= 1;
|
||||
this.getDevive(1);
|
||||
}else{
|
||||
GameData._instance.GM_INFO.life = -1;
|
||||
this.getDevive(3);
|
||||
}
|
||||
}
|
||||
//复活
|
||||
getDevive(time){
|
||||
this.round = 0;
|
||||
GameData._instance.LEVEL_init();
|
||||
if(this.topUI.getChildByName("star3").active == true){
|
||||
// GameData._instance.LEVEL_INFO.scoreMax = 150000;
|
||||
}
|
||||
this.interfere = false;
|
||||
GameData._instance.CLICK_DATA.fake = this.interfere;
|
||||
var block = this.node.getChildByName("Block").children;
|
||||
for(let i=0; i<block.length; i++){
|
||||
if(block[i]){
|
||||
block[i].active = false;
|
||||
}
|
||||
}
|
||||
var block2 = this.node.getChildByName("CrackBlock").children;
|
||||
for(let i=0; i<block2.length; i++){
|
||||
if(block2[i]){
|
||||
block2[i].active = false;
|
||||
}
|
||||
}
|
||||
// this.blockArray = [];
|
||||
let actionTime = 1;
|
||||
if(this.Player.y > 500){
|
||||
actionTime = (this.Player.y + 500)/1000*actionTime;
|
||||
}
|
||||
cc.tween(this.Player)
|
||||
.to(actionTime,{y:-500},{easing:'cubicIn'})
|
||||
.call(()=>{
|
||||
this.Player.getComponent("Player").xinAction();
|
||||
})
|
||||
.delay(0.5)
|
||||
.call(() =>{
|
||||
this.xinAction();
|
||||
this.Player.getComponent("Player").init();
|
||||
if(time > 1){
|
||||
this.Xin.parent.active = true;
|
||||
this.Xin.getComponent(cc.Sprite).fillRange = 0;
|
||||
cc.tween(this.Xin.getComponent(cc.Sprite))
|
||||
.to(time,{fillRange:1})
|
||||
.delay(0.3)
|
||||
.call(() =>{
|
||||
this.Xin.parent.active = false;
|
||||
})
|
||||
.delay(0)
|
||||
.call(() =>{
|
||||
this.createBlock();
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else{
|
||||
setTimeout(() => {
|
||||
this.createBlock();
|
||||
}, (time+0.5)*1000);
|
||||
}
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
setData(){
|
||||
GameData._instance.CLICK_DATA.timer = this.countTime;
|
||||
GameData._instance.CLICK_DATA.level = this.round;
|
||||
GameData._instance.CLICK_DATA.round = this.level;
|
||||
//CLICK_DATA 数据处理完毕后调用上传接口 上传接口内CLICK_DATA不做改变
|
||||
GameTool.setGameData();
|
||||
}
|
||||
|
||||
//获取matchId 用于上传每次点击数据里面记录id方便查询
|
||||
getMatchId (){
|
||||
let matchId = cc.sys.localStorage.getItem("matchId");
|
||||
if(matchId == "undifend" || matchId==null){
|
||||
matchId = this.setMatchId();
|
||||
}
|
||||
else{
|
||||
if(this.containsNanana(matchId) == true){
|
||||
matchId = this.setMatchId();
|
||||
}
|
||||
else{
|
||||
let char = parseInt(matchId[10]);
|
||||
if(this.level == 1){
|
||||
char += 1;
|
||||
}
|
||||
matchId = matchId.slice(0, 10) + char + "";
|
||||
GameData._instance.GM_INFO.matchId = matchId;
|
||||
cc.sys.localStorage.setItem("matchId",matchId);
|
||||
}
|
||||
}
|
||||
return matchId;
|
||||
}
|
||||
//检测matchId 如果有缓存以前的nanana数据清除
|
||||
containsNanana(str) {
|
||||
return /na/i.test(str);
|
||||
}
|
||||
//重新设置MatchId
|
||||
setMatchId (){
|
||||
// 定义包含可用字符的字符集
|
||||
const characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
||||
// 创建一个数组以保存随机字符
|
||||
const uuidArray = [];
|
||||
// 循环10次 生成10位的UUID
|
||||
for (let i = 0; i < 10; i++) {
|
||||
// 生成随机索引,范围是字符集的长度
|
||||
const randomIndex = Math.floor(Math.random() * characters.length);
|
||||
// 从字符集中获取随机字符
|
||||
const randomChar = characters.charAt(randomIndex);
|
||||
// 将字符添加到数组中
|
||||
uuidArray.push(randomChar);
|
||||
}
|
||||
let data = uuidArray.join('') + 1 + "";
|
||||
cc.sys.localStorage.setItem("matchNumber",1);
|
||||
cc.sys.localStorage.setItem("matchId",data);
|
||||
GameData._instance.GM_INFO.matchId = data;
|
||||
return data;
|
||||
}
|
||||
|
||||
updateCountDownTime () {
|
||||
if (this.countTime > 0) {
|
||||
this.countTime -= 1;
|
||||
this.time.string = this.getTimeMargin(this.countTime);
|
||||
if(this.countTime < 5){
|
||||
cc.tween(this.time.node)
|
||||
.to(0.25,{scale:1.5,color:cc.color(255,0,0)})
|
||||
.to(0.25,{scale:1,color:cc.color(255,255,255)})
|
||||
.start()
|
||||
}
|
||||
if(this.countTime <= 0){
|
||||
this.unschedule(this.updateCountDownTime);
|
||||
this.begin = false;
|
||||
this.over = true;
|
||||
this.overStop();
|
||||
this.setRank();
|
||||
setTimeout(() => {
|
||||
this.overOpen();
|
||||
}, 2000);
|
||||
}
|
||||
}
|
||||
}
|
||||
//停止所有动画
|
||||
overStop(){
|
||||
if(this.Player.getComponent("Player").jumpAction)
|
||||
this.Player.getComponent("Player").jumpAction.stop();
|
||||
var block = this.node.getChildByName("Block").children;
|
||||
for(let i=0; i<block.length; i++){
|
||||
if(block[i]){
|
||||
if(block[i].getComponent("Block").tween)
|
||||
block[i].getComponent("Block").tween.stop();
|
||||
}
|
||||
}
|
||||
var block2 = this.node.getChildByName("CrackBlock").children;
|
||||
for(let i=0; i<block2.length; i++){
|
||||
if(block2[i]){
|
||||
if(block2[i].getComponent("Block").tween)
|
||||
block2[i].getComponent("Block").tween.stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setRank(){
|
||||
GameData._instance.GM_INFO.score = this.score;
|
||||
GameTool.setRank();
|
||||
}
|
||||
|
||||
overOpen(){
|
||||
this.Player.active = false;
|
||||
var block = this.node.getChildByName("Block").children;
|
||||
for(let i=0; i<block.length; i++){
|
||||
if(block[i]){
|
||||
block[i].active = false;
|
||||
}
|
||||
}
|
||||
this.destroyBlock();
|
||||
this.GameOver.active = true;
|
||||
this.GameOver.getChildByName("score").getComponent(cc.Label).string = this.score + "";
|
||||
this.GameOver.getChildByName("level").getComponent(cc.Label).string =
|
||||
GameData._instance.GM_INFO.levelMax + "";
|
||||
this.GameOver.getChildByName("difficulty").getComponent(cc.Label).string =
|
||||
GameData._instance.GM_INFO.difficultyMax + "";
|
||||
|
||||
}
|
||||
|
||||
backLoad(){
|
||||
cc.director.loadScene("LoadScene");
|
||||
}
|
||||
|
||||
again(){
|
||||
cc.director.loadScene("GameScene");
|
||||
}
|
||||
|
||||
openRank(){
|
||||
cc.director.loadScene("RankScene");
|
||||
}
|
||||
|
||||
//时间格式转换
|
||||
getTimeMargin(second:number) {
|
||||
let total = 0;
|
||||
total = second;
|
||||
let hour = 0;
|
||||
hour = parseInt((total / 3600) + "");//计算整数小时数
|
||||
let afterHour = total - hour * 60 * 60;//取得算出小时数后剩余的秒数
|
||||
let min = parseInt((afterHour / 60)+"");//计算整数分
|
||||
let m = "" + min;
|
||||
if(min < 10) m = "0"+min;
|
||||
let afterMin = total - hour * 60 * 60 - min * 60;//取得算出分后剩余的秒数
|
||||
let miao = afterMin + "";
|
||||
if(afterMin < 10) miao = "0" + afterMin;
|
||||
return m + ':' + miao
|
||||
}
|
||||
update (dt) {
|
||||
if(this.cameraMove == true && this.over == false){
|
||||
this.Camera.node.y = this.Player.y - this.countHeight;
|
||||
if(this.Camera.node.y <= 0) this.Camera.node.y = 0;
|
||||
this.topUI.y = this.Camera.node.y + this.drop;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
10
assets/Script/GameManager.ts.meta
Normal file
10
assets/Script/GameManager.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "b26a4f51-0921-4f4f-80be-17bc4077adad",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
32
assets/Script/GameOver.ts
Normal file
32
assets/Script/GameOver.ts
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Learn TypeScript:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
|
||||
@property(cc.Label)
|
||||
label: cc.Label = null;
|
||||
|
||||
@property
|
||||
text: string = 'hello';
|
||||
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
// onLoad () {}
|
||||
|
||||
start () {
|
||||
|
||||
}
|
||||
|
||||
reStart(){
|
||||
cc.director.loadScene("GameScene");
|
||||
}
|
||||
|
||||
// update (dt) {}
|
||||
}
|
10
assets/Script/GameOver.ts.meta
Normal file
10
assets/Script/GameOver.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "53de03a0-75a4-4b36-af54-16abee248fee",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
28
assets/Script/GameScene.ts
Normal file
28
assets/Script/GameScene.ts
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Learn TypeScript:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
|
||||
@property(cc.Label)
|
||||
label: cc.Label = null;
|
||||
|
||||
@property
|
||||
text: string = 'hello';
|
||||
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
// onLoad () {}
|
||||
|
||||
start () {
|
||||
|
||||
}
|
||||
|
||||
// update (dt) {}
|
||||
}
|
10
assets/Script/GameScene.ts.meta
Normal file
10
assets/Script/GameScene.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "d14c5a08-005b-467a-96bb-5cc71c00c350",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
316
assets/Script/GuideManager.ts
Normal file
316
assets/Script/GuideManager.ts
Normal file
|
@ -0,0 +1,316 @@
|
|||
// Learn TypeScript:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
import GameData from './GameData';
|
||||
import HttpUtil from './crypto/HttpUtil';
|
||||
import { GameTool } from './tool/GameTool';
|
||||
import { Notification } from './tool/Notification';
|
||||
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class GuideManager extends cc.Component {
|
||||
|
||||
@property(cc.Camera)
|
||||
Camera: cc.Camera = null;
|
||||
|
||||
@property(cc.Node)
|
||||
topUI: cc.Node = null;
|
||||
|
||||
@property(cc.Node)
|
||||
Player: cc.Node = null;
|
||||
|
||||
@property(cc.Node)
|
||||
Ground: cc.Node = null;
|
||||
|
||||
@property(cc.Node)
|
||||
Xin: cc.Node = null;
|
||||
|
||||
@property(cc.Label)
|
||||
time: cc.Label = null;
|
||||
|
||||
@property(cc.Node)
|
||||
Tip: cc.Node = null;
|
||||
|
||||
@property([cc.Prefab])
|
||||
blockPrefab : Array<cc.Prefab> = [];
|
||||
|
||||
|
||||
|
||||
round: number; //回合
|
||||
level: number; //回合
|
||||
static _instance: any;
|
||||
blockArray: any;
|
||||
cameraMove:boolean
|
||||
countHeight:number;
|
||||
countTime: number;
|
||||
over: boolean;
|
||||
begin: boolean;
|
||||
interfere: boolean;
|
||||
oldSpeed: number; //上一回合速度
|
||||
score: number; //总得分
|
||||
difficultyMax:number; //最高难度系数
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
|
||||
|
||||
onLoad () {
|
||||
// 示例使用
|
||||
var manager = cc.director.getCollisionManager();
|
||||
manager.enabled = true;
|
||||
GameData._instance.GM_INFO.probation = true;
|
||||
}
|
||||
|
||||
protected onEnable(): void {
|
||||
Notification.on("createBlock",this.createBlock,this);
|
||||
Notification.on("addScore",this.addScore,this);
|
||||
Notification.on("createCrackBlock",this.createCrackBlock,this);
|
||||
Notification.on("showGround",this.showGround,this);
|
||||
Notification.on("death",this.getDeath,this);
|
||||
Notification.on("jump",this.jump,this);
|
||||
|
||||
}
|
||||
|
||||
protected onDestroy(): void {
|
||||
Notification.off("createBlock",this.createBlock);
|
||||
Notification.off("addScore",this.addScore);
|
||||
Notification.off("createBlock",this.createCrackBlock);
|
||||
Notification.off("death",this.getDeath);
|
||||
Notification.off("jump",this.jump);
|
||||
Notification.off("showGround",this.showGround);
|
||||
}
|
||||
|
||||
init(){
|
||||
this.score = 0;
|
||||
this.oldSpeed = 10;
|
||||
this.begin = true;
|
||||
this.over = false;
|
||||
this.interfere = false;
|
||||
this.round = 0;
|
||||
this.level = 0;
|
||||
GameData._instance.GM_INFO.levelMax = 1;
|
||||
GameData._instance.GM_INFO.difficultyMax = 1;
|
||||
GameData._instance.GM_INFO.life = 3;
|
||||
this.blockArray = [];
|
||||
this.cameraMove = false;
|
||||
this.countTime = 12;
|
||||
this.topUI.getChildByName("xin1").active = true;
|
||||
this.topUI.getChildByName("xin2").active = true;
|
||||
this.topUI.getChildByName("xin3").active = true;
|
||||
this.topUI.getChildByName("star1").active = false;
|
||||
this.topUI.getChildByName("star2").active = false;
|
||||
this.topUI.getChildByName("star3").active = false;
|
||||
GameData._instance.LEVEL_init();
|
||||
|
||||
}
|
||||
|
||||
start () {
|
||||
// this.node.on(cc.Node.EventType.TOUCH_START, this.jump, this);
|
||||
this.fit();
|
||||
this.init();
|
||||
this.startGuide();
|
||||
this.startGame();
|
||||
}
|
||||
|
||||
//根据是否全面屏,做独立适配方面
|
||||
fit(){
|
||||
this.node.getChildByName("bg2").y = -2167.675;
|
||||
var jg = this.setFit();
|
||||
if(!jg){
|
||||
this.node.getChildByName("bg2").y = -2100;
|
||||
}
|
||||
}
|
||||
//判断全面屏
|
||||
getSetScreenResolutionFlag () {
|
||||
let size = cc.winSize;
|
||||
let width = size.width;
|
||||
let height = size.height;
|
||||
if ((height / width) > (16.2 / 9)) return false;
|
||||
return true;
|
||||
}
|
||||
//判断全面屏适配
|
||||
setFit () {
|
||||
let flag = this.getSetScreenResolutionFlag();
|
||||
if (flag) {
|
||||
} else {
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
startGuide(){
|
||||
//打开卷
|
||||
let left = this.Tip.getChildByName("left");
|
||||
let right = this.Tip.getChildByName("right");
|
||||
let tip = this.Tip.getChildByName("tip");
|
||||
left.width = 0; right.width = 0;tip.opacity = 0;
|
||||
cc.tween(left)
|
||||
.to(0.25,{width:348})
|
||||
.start();
|
||||
cc.tween(right)
|
||||
.to(0.25,{width:348})
|
||||
.start();
|
||||
cc.tween(tip)
|
||||
.delay(0.15)
|
||||
.to(0.15,{opacity:255})
|
||||
.start();
|
||||
}
|
||||
|
||||
showGround(tempY){
|
||||
setTimeout(() => {
|
||||
this.Ground.active = true;
|
||||
this.Ground.y = tempY;
|
||||
}, 500);
|
||||
}
|
||||
|
||||
jump(){
|
||||
this.Player.getComponent("Player").jump();
|
||||
}
|
||||
|
||||
startGame(){
|
||||
this.createBlock();
|
||||
}
|
||||
|
||||
addScore(score){
|
||||
|
||||
}
|
||||
|
||||
createBlock(){
|
||||
if(this.over == false && this.begin == true){
|
||||
this.Ground.active = false;
|
||||
var num = Math.floor(Math.random()*12);
|
||||
if(this.round <= 10 && num == 5){
|
||||
num = Math.floor(Math.random()*6 + 6);
|
||||
}
|
||||
// num = 2;
|
||||
var block = cc.instantiate(this.blockPrefab[num]);
|
||||
let height = this.Player.getComponent("Player").basicHeight + GameData._instance.GM_INFO.blockMin;
|
||||
if(num > GameData._instance.GM_INFO.blockScale){
|
||||
height += block.height + GameData._instance.GM_INFO.blockMax;
|
||||
GameData._instance.CLICK_DATA.height = true;
|
||||
}
|
||||
|
||||
if(height >= -120 && this.cameraMove == false){
|
||||
this.countHeight = this.Player.getComponent("Player").basicHeight - this.Camera.node.y;
|
||||
this.cameraMove = true;
|
||||
}
|
||||
block.setPosition(cc.v2(this.round%2==0?500:-500,height));
|
||||
block.parent = this.node.getChildByName("Block");
|
||||
this.round += 1;
|
||||
this.level += 1;
|
||||
if(this.round > GameData._instance.GM_INFO.levelMax) GameData._instance.GM_INFO.levelMax = this.round;
|
||||
GameData._instance.CLICK_DATA.level = this.round;
|
||||
GameData._instance.CLICK_DATA.round = this.level;
|
||||
GameData._instance.LEVEL_INFO.layer += GameData._instance.LEVEL_INFO.layerAdd;
|
||||
GameData._instance.LEVEL_INFO.speed += GameData._instance.LEVEL_INFO.addSpeed;
|
||||
|
||||
if(GameData._instance.LEVEL_INFO.reduceSpeed <= 100)
|
||||
GameData._instance.LEVEL_INFO.reduceSpeed += GameData._instance.LEVEL_INFO.jiansu;
|
||||
if(this.round == GameData._instance.LEVEL_INFO.round1) GameData._instance.LEVEL_INFO.jiansu = 2;
|
||||
else if(this.round == GameData._instance.LEVEL_INFO.round2) GameData._instance.LEVEL_INFO.jiansu = 1;
|
||||
else if(this.round == GameData._instance.LEVEL_INFO.round3) GameData._instance.LEVEL_INFO.jiansu = 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
//虚假碎裂块
|
||||
createCrackBlock(){
|
||||
this.interfere = true;
|
||||
GameData._instance.CLICK_DATA.fake = this.interfere;
|
||||
if(this.round > 1) this.destroyBlock();
|
||||
if(this.over == false && this.begin == true){
|
||||
var block = cc.instantiate(this.blockPrefab[12]);
|
||||
let height = this.Player.getComponent("Player").basicHeight;
|
||||
if(GameData._instance.CLICK_DATA.height == true){
|
||||
height += block.height/2;
|
||||
}
|
||||
block.setPosition(cc.v2(this.round%2==0?500:-500,height));
|
||||
block.parent = this.node.getChildByName("CrackBlock");
|
||||
}
|
||||
}
|
||||
|
||||
destroyBlock(){
|
||||
if(this.node){
|
||||
if(this.node.getChildByName("CrackBlock")){
|
||||
if(this.node.getChildByName("CrackBlock").children){
|
||||
var block2 = this.node.getChildByName("CrackBlock").children;
|
||||
for(let i=0; i<block2.length; i++){
|
||||
if(block2[i]){
|
||||
block2[i].getComponent("Block").hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
xinAction(){
|
||||
|
||||
}
|
||||
//死亡
|
||||
getDeath(){
|
||||
this.getDevive(1);
|
||||
}
|
||||
//复活
|
||||
getDevive(time){
|
||||
this.round = 0;
|
||||
GameData._instance.LEVEL_init();
|
||||
if(this.topUI.getChildByName("star3").active == true){
|
||||
// GameData._instance.LEVEL_INFO.scoreMax = 150000;
|
||||
}
|
||||
this.interfere = false;
|
||||
GameData._instance.CLICK_DATA.fake = this.interfere;
|
||||
var block = this.node.getChildByName("Block").children;
|
||||
for(let i=0; i<block.length; i++){
|
||||
if(block[i]){
|
||||
block[i].getComponent("Block").hide();
|
||||
}
|
||||
}
|
||||
var block2 = this.node.getChildByName("CrackBlock").children;
|
||||
for(let i=0; i<block2.length; i++){
|
||||
if(block2[i]){
|
||||
block2[i].getComponent("Block").hide();
|
||||
}
|
||||
}
|
||||
// this.blockArray = [];
|
||||
let actionTime = 0.5;
|
||||
if(this.Player.y > 500){
|
||||
actionTime = (this.Player.y + 500)/1000*actionTime;
|
||||
}
|
||||
cc.tween(this.Player)
|
||||
.to(actionTime,{position:cc.v3(0,-500,0)})
|
||||
.call(()=>{
|
||||
this.Player.getComponent("Player").xinAction();
|
||||
})
|
||||
.delay(0.5)
|
||||
.call(() =>{
|
||||
this.xinAction();
|
||||
this.Player.getComponent("Player").init();
|
||||
if(time > 1){
|
||||
this.Xin.parent.active = true;
|
||||
this.Xin.getComponent(cc.Sprite).fillRange = 0;
|
||||
cc.tween(this.Xin.getComponent(cc.Sprite))
|
||||
.to(time,{fillRange:1})
|
||||
.delay(0.3)
|
||||
.call(() =>{
|
||||
this.Xin.parent.active = false;
|
||||
})
|
||||
.delay(0)
|
||||
.call(() =>{
|
||||
this.createBlock();
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else{
|
||||
setTimeout(() => {
|
||||
this.createBlock();
|
||||
}, (time+0.5)*1000);
|
||||
}
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
// update (dt) {}
|
||||
}
|
10
assets/Script/GuideManager.ts.meta
Normal file
10
assets/Script/GuideManager.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "bbcb19e6-e5d0-4c3d-aa62-57e958ca7aad",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
13
assets/Script/ListView.meta
Normal file
13
assets/Script/ListView.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "5a7c7479-48b8-4ee6-a003-33adfd2cb965",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
55
assets/Script/ListView/ItemRender.ts
Normal file
55
assets/Script/ListView/ItemRender.ts
Normal file
|
@ -0,0 +1,55 @@
|
|||
import List, { ListType } from "./List";
|
||||
|
||||
const { ccclass, property } = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class ItemRender extends cc.Component {
|
||||
/**数据 */
|
||||
public data:any = null;
|
||||
/**索引 0表示第一项*/
|
||||
public itemIndex:number = 0;
|
||||
|
||||
/**数据改变时调用 */
|
||||
public dataChanged(){
|
||||
if(this.data.name.length > 7){
|
||||
this.data.name = this.data.name.substring(0,7) + "..."
|
||||
}
|
||||
this.node.getChildByName("rankLab").getComponent(cc.Label).string = this.data.rank + "";
|
||||
this.node.getChildByName("nameLab").getComponent(cc.Label).string = this.data.name + "";
|
||||
this.node.getChildByName("totalLab").getComponent(cc.Label).string = this.data.total + "";
|
||||
this.node.getChildByName("rank").getChildByName("one").active = false;
|
||||
this.node.getChildByName("rank").getChildByName("two").active = false;
|
||||
this.node.getChildByName("rank").getChildByName("three").active = false;
|
||||
if(this.data.rank == 1){
|
||||
this.node.getChildByName("rank").getChildByName("one").active = true;
|
||||
this.node.getChildByName("rankLab").active = false;
|
||||
}
|
||||
else if(this.data.rank == 2){
|
||||
this.node.getChildByName("rank").getChildByName("two").active = true;
|
||||
this.node.getChildByName("rankLab").active = false;
|
||||
}
|
||||
else if(this.data.rank == 3){
|
||||
this.node.getChildByName("rank").getChildByName("three").active = true;
|
||||
this.node.getChildByName("rankLab").active = false;
|
||||
}else{
|
||||
this.node.getChildByName("rankLab").active = true;
|
||||
}
|
||||
this.setPic();
|
||||
}
|
||||
|
||||
public setPic(){
|
||||
let url = this.data.pic;
|
||||
cc.assetManager.loadRemote(url, {ext:'.jpg'},(err, texture:cc.Texture2D) => {
|
||||
if(texture){
|
||||
var sprite = this.node.getChildByName("pic").getChildByName("pic").getComponent(cc.Sprite);
|
||||
sprite.spriteFrame = new cc.SpriteFrame(texture);
|
||||
// console.log("设置头像成功");
|
||||
}
|
||||
else{
|
||||
// console.log(err,texture)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
10
assets/Script/ListView/ItemRender.ts.meta
Normal file
10
assets/Script/ListView/ItemRender.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "ca0f9934-a015-436e-9402-f8e30d4c5de6",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
591
assets/Script/ListView/List.ts
Normal file
591
assets/Script/ListView/List.ts
Normal file
|
@ -0,0 +1,591 @@
|
|||
// Learn TypeScript:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
import ItemRender from "./ItemRender"
|
||||
|
||||
const { ccclass, property } = cc._decorator;
|
||||
|
||||
/**列表排列方式 */
|
||||
export enum ListType {
|
||||
/**水平排列 */
|
||||
Horizontal = 1,
|
||||
/**垂直排列 */
|
||||
Vertical = 2,
|
||||
/**网格排列 */
|
||||
Grid = 3
|
||||
}
|
||||
|
||||
/**网格布局中的方向 */
|
||||
export enum StartAxisType {
|
||||
/**水平排列 */
|
||||
Horizontal = 1,
|
||||
/**垂直排列 */
|
||||
Vertical = 2,
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
* 根据cocos_example的listView改动而来
|
||||
* @author chenkai 2020.7.8
|
||||
* @example
|
||||
* 1.创建cocos的ScrollView组件,添加List,设置List属性即可
|
||||
*
|
||||
*/
|
||||
@ccclass
|
||||
export default class List extends cc.Component {
|
||||
|
||||
//==================== 属性面板 =========================
|
||||
/**列表选项 */
|
||||
@property({ type: cc.Node, tooltip: "列表项" })
|
||||
public itemRender: cc.Node = null;
|
||||
|
||||
/**排列方式 */
|
||||
@property({ type: cc.Enum(ListType), tooltip: "排列方式" })
|
||||
public type: ListType = ListType.Vertical;
|
||||
|
||||
/**网格布局中的方向 */
|
||||
@property({ type: cc.Enum(StartAxisType), tooltip: "网格布局中的方向", visible() { return this.type == ListType.Grid } })
|
||||
public startAxis: StartAxisType = StartAxisType.Horizontal;
|
||||
|
||||
/**列表项之间X间隔 */
|
||||
@property({ type: cc.Integer, tooltip: "列表项X间隔", visible() { return (this.type == ListType.Horizontal || this.type == ListType.Grid) } })
|
||||
public spaceX: number = 0;
|
||||
|
||||
/**列表项之间Y间隔 */
|
||||
@property({ type: cc.Integer, tooltip: "列表项Y间隔", visible() { return this.type == ListType.Vertical || this.type == ListType.Grid } })
|
||||
public spaceY: number = 0;
|
||||
|
||||
/**上间距 */
|
||||
@property({ type: cc.Integer, tooltip: "上间距", visible() { return (this.type == ListType.Vertical || this.type == ListType.Grid) } })
|
||||
public padding_top: number = 0;
|
||||
|
||||
/**下间距 */
|
||||
@property({ type: cc.Integer, tooltip: "下间距", visible() { return (this.type == ListType.Vertical || this.type == ListType.Grid) } })
|
||||
public padding_buttom: number = 0;
|
||||
|
||||
/**左间距 */
|
||||
@property({ type: cc.Integer, tooltip: "左间距", visible() { return (this.type == ListType.Horizontal || this.type == ListType.Grid) } })
|
||||
public padding_left: number = 0;
|
||||
|
||||
|
||||
|
||||
@property(cc.Integer)
|
||||
public _padding: number = 0;
|
||||
|
||||
/**右间距 */
|
||||
@property({ type: cc.Integer, tooltip: "右间距", visible() { return (this.type == ListType.Horizontal || this.type == ListType.Grid) } })
|
||||
public padding_right: number = 0;
|
||||
|
||||
//====================== 滚动容器 ===============================
|
||||
/**列表滚动容器 */
|
||||
public scrollView: cc.ScrollView = null;
|
||||
/**scrollView的内容容器 */
|
||||
private content: cc.Node = null;
|
||||
|
||||
//======================== 列表项 ===========================
|
||||
/**列表项数据 */
|
||||
private itemDataList: Array<any> = [];
|
||||
/**应创建的实例数量 */
|
||||
private spawnCount: number = 0;
|
||||
/**存放列表项实例的数组 */
|
||||
private itemList: Array<cc.Node> = [];
|
||||
/**item的高度 */
|
||||
private itemHeight: number = 0;
|
||||
/**item的宽度 */
|
||||
private itemWidth: number = 0;
|
||||
/**存放不再使用中的列表项 */
|
||||
private itemPool: Array<cc.Node> = [];
|
||||
|
||||
//======================= 计算参数 ==========================
|
||||
/**距离scrollView中心点的距离,超过这个距离的item会被重置,一般设置为 scrollVIew.height/2 + item.heigt/2 + space,因为这个距离item正好超出scrollView显示范围 */
|
||||
private halfScrollView: number = 0;
|
||||
/**上一次content的X值,用于和现在content的X值比较,得出是向左还是向右滚动 */
|
||||
private lastContentPosX: number = 0;
|
||||
/**上一次content的Y值,用于和现在content的Y值比较,得出是向上还是向下滚动 */
|
||||
private lastContentPosY: number = 0;
|
||||
/**网格行数 */
|
||||
private gridRow: number = 0;
|
||||
/**网格列数 */
|
||||
private gridCol: number = 0;
|
||||
/**刷新时间,单位s */
|
||||
private updateTimer: number = 0;
|
||||
/**刷新间隔,单位s */
|
||||
private updateInterval: number = 0.1;
|
||||
/**是否滚动容器 */
|
||||
private bScrolling: boolean = false;
|
||||
/**刷新的函数 */
|
||||
private updateFun: Function = function () { };
|
||||
|
||||
onLoad() {
|
||||
this.itemHeight = this.itemRender.height;
|
||||
this.itemWidth = this.itemRender.width;
|
||||
this.scrollView = this.node.getComponent(cc.ScrollView);
|
||||
this.content = this.scrollView.content;
|
||||
this.content.anchorX = 0;
|
||||
this.content.anchorY = 1;
|
||||
this.content.removeAllChildren();
|
||||
this.scrollView.node.on("scrolling", this.onScrolling, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表数据 (列表数据复制使用,如果列表数据改变,则需要重新设置一遍数据)
|
||||
* @param itemDataList item数据列表
|
||||
*/
|
||||
public setData(itemDataList: Array<any>) {
|
||||
this.itemDataList = itemDataList.slice();
|
||||
this.updateContent();
|
||||
}
|
||||
|
||||
/**计算列表的各项参数 */
|
||||
private countListParam() {
|
||||
let dataLen = this.itemDataList.length;
|
||||
if (this.type == ListType.Vertical) {
|
||||
this.scrollView.horizontal = false;
|
||||
this.scrollView.vertical = true;
|
||||
this.content.width = this.content.parent.width;
|
||||
this.content.height = dataLen * this.itemHeight + (dataLen - 1) * this.spaceY + this.padding_top + this.padding_buttom;
|
||||
this.spawnCount = Math.round(this.scrollView.node.height / (this.itemHeight + this.spaceY)) + 5; //计算创建的item实例数量,比当前scrollView容器能放下的item数量再加上2个
|
||||
this.halfScrollView = this.scrollView.node.height / 2 + this.itemHeight / 2 + this.spaceY; //计算bufferZone,item的显示范围
|
||||
this.updateFun = this.updateV;
|
||||
} else if (this.type == ListType.Horizontal) {
|
||||
this.scrollView.horizontal = true;
|
||||
this.scrollView.vertical = false;
|
||||
this.content.width = dataLen * this.itemWidth + (dataLen - 1) * this.spaceX + this.padding_left + this.padding_right;
|
||||
this.content.height = this.content.parent.height;
|
||||
this.spawnCount = Math.round(this.scrollView.node.width / (this.itemWidth + this.spaceX)) + 2;
|
||||
this.halfScrollView = this.scrollView.node.width / 2 + this.itemWidth / 2 + this.spaceX;
|
||||
this.updateFun = this.udpateH;
|
||||
} else if (this.type == ListType.Grid) {
|
||||
if (this.startAxis == StartAxisType.Vertical) {
|
||||
this.scrollView.horizontal = false;
|
||||
this.scrollView.vertical = true;
|
||||
this.content.width = this.content.parent.width;
|
||||
//如果left和right间隔过大,导致放不下一个item,则left和right都设置为0,相当于不生效
|
||||
if (this.padding_left + this.padding_right + this.itemWidth + this.spaceX > this.content.width) {
|
||||
this.padding_left = 0;
|
||||
this.padding_right = 0;
|
||||
console.error("padding_left或padding_right过大");
|
||||
}
|
||||
|
||||
this.gridCol = Math.floor((this.content.width - this.padding_left - this.padding_right) / (this.itemWidth + this.spaceX));
|
||||
this.gridRow = Math.ceil(dataLen / this.gridCol);
|
||||
this.content.height = this.gridRow * this.itemHeight + (this.gridRow - 1) * this.spaceY + this.padding_top + this.padding_buttom;
|
||||
this.spawnCount = Math.round(this.scrollView.node.height / (this.itemHeight + this.spaceY)) * this.gridCol + this.gridCol * 2;
|
||||
this.halfScrollView = this.scrollView.node.height / 2 + this.itemHeight / 2 + this.spaceY;
|
||||
this.updateFun = this.updateGrid_V;
|
||||
} else if (this.startAxis == StartAxisType.Horizontal) {
|
||||
this.scrollView.horizontal = true;
|
||||
this.scrollView.vertical = false;
|
||||
//计算高间隔
|
||||
this.content.height = this.content.parent.height;
|
||||
//如果left和right间隔过大,导致放不下一个item,则left和right都设置为0,相当于不生效
|
||||
if (this.padding_top + this.padding_buttom + this.itemHeight + this.spaceY > this.content.height) {
|
||||
this.padding_top = 0;
|
||||
this.padding_buttom = 0;
|
||||
console.error("padding_top或padding_buttom过大");
|
||||
}
|
||||
|
||||
this.gridRow = Math.floor((this.content.height - this.padding_top - this.padding_buttom) / (this.itemHeight + this.spaceY));
|
||||
this.gridCol = Math.ceil(dataLen / this.gridRow);
|
||||
this.content.width = this.gridCol * this.itemWidth + (this.gridCol - 1) * this.spaceX + this.padding_left + this.padding_right;
|
||||
this.spawnCount = Math.round(this.scrollView.node.width / (this.itemWidth + this.spaceX)) * this.gridRow + this.gridRow * 2;
|
||||
this.halfScrollView = this.scrollView.node.width / 2 + this.itemWidth / 2 + this.spaceX;
|
||||
this.updateFun = this.updateGrid_H;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建列表
|
||||
* @param startIndex 起始显示的数据索引 0表示第一项
|
||||
* @param offset scrollView偏移量
|
||||
*/
|
||||
private createList(startIndex: number, offset: cc.Vec2) {
|
||||
//当需要显示的数据长度 > 虚拟列表长度, 删除最末尾几个数据时,列表需要重置位置到scrollView最底端
|
||||
if (this.itemDataList.length > this.spawnCount && (startIndex + this.spawnCount - 1) >= this.itemDataList.length) {
|
||||
startIndex = this.itemDataList.length - this.spawnCount;
|
||||
offset = this.scrollView.getMaxScrollOffset();
|
||||
|
||||
//当需要显示的数据长度 <= 虚拟列表长度, 隐藏多余的虚拟列表项
|
||||
} else if (this.itemDataList.length <= this.spawnCount) {
|
||||
startIndex = 0;
|
||||
}
|
||||
|
||||
for (let i = 0; i < this.spawnCount; i++) {
|
||||
let item: cc.Node;
|
||||
//需要显示的数据索引在数据范围内,则item实例显示出来
|
||||
if (i + startIndex < this.itemDataList.length) {
|
||||
if (this.itemList[i] == null) {
|
||||
item = this.getItem();
|
||||
this.itemList.push(item);
|
||||
item.parent = this.content;
|
||||
} else {
|
||||
item = this.itemList[i];
|
||||
}
|
||||
//需要显示的数据索引超过了数据范围,则item实例隐藏起来
|
||||
} else {
|
||||
//item实例数量 > 需要显示的数据量
|
||||
if (this.itemList.length > (this.itemDataList.length - startIndex)) {
|
||||
item = this.itemList.pop();
|
||||
item.removeFromParent();
|
||||
this.itemPool.push(item);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
let itemRender: ItemRender = item.getComponent(ItemRender);
|
||||
itemRender.itemIndex = i + startIndex;
|
||||
itemRender.data = this.itemDataList[i + startIndex];
|
||||
itemRender.dataChanged();
|
||||
|
||||
if (this.type == ListType.Vertical) {
|
||||
//因为content的锚点X是0,所以item的x值是content.with/2表示居中,锚点Y是1,所以item的y值从content顶部向下是0到负无穷。所以item.y= -item.height/2时,是在content的顶部。
|
||||
item.setPosition(this.content.width / 2, -item.height * (0.5 + i + startIndex) - this.spaceY * (i + startIndex) - this.padding_top);
|
||||
} else if (this.type == ListType.Horizontal) {
|
||||
item.setPosition(item.width * (0.5 + i + startIndex) + this.spaceX * (i + startIndex) + this.padding_left, -this.content.height / 2);
|
||||
} else if (this.type == ListType.Grid) {
|
||||
if (this.startAxis == StartAxisType.Vertical) {
|
||||
var row = Math.floor((i + startIndex) / this.gridCol);
|
||||
var col = (i + startIndex) % this.gridCol;
|
||||
item.setPosition(item.width * (0.5 + col) + this.spaceX * col + this.padding_left, -item.height * (0.5 + row) - this.spaceY * row - this.padding_top);
|
||||
item.opacity = 255;
|
||||
} else if (this.startAxis == StartAxisType.Horizontal) {
|
||||
var row = (i + startIndex) % this.gridRow;
|
||||
var col = Math.floor((i + startIndex) / this.gridRow);
|
||||
item.setPosition(item.width * (0.5 + col) + this.spaceX * col + this.padding_left, -item.height * (0.5 + row) - this.spaceY * row - this.padding_top);
|
||||
item.opacity = 255;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.scrollView.scrollToOffset(offset);
|
||||
}
|
||||
|
||||
/**获取一个列表项 */
|
||||
private getItem() {
|
||||
if (this.itemPool.length == 0) {
|
||||
return cc.instantiate(this.itemRender);
|
||||
} else {
|
||||
return this.itemPool.pop();
|
||||
}
|
||||
}
|
||||
|
||||
update(dt) {
|
||||
if (this.bScrolling == false) {
|
||||
return;
|
||||
}
|
||||
this.updateTimer += dt;
|
||||
if (this.updateTimer < this.updateInterval) {
|
||||
return;
|
||||
}
|
||||
this.updateTimer = 0;
|
||||
this.bScrolling = false;
|
||||
this.updateFun();
|
||||
}
|
||||
|
||||
onScrolling() {
|
||||
this.bScrolling = true;
|
||||
}
|
||||
|
||||
/**垂直排列 */
|
||||
private updateV() {
|
||||
let items = this.itemList;
|
||||
let item;
|
||||
let bufferZone = this.halfScrollView;
|
||||
let isUp = this.scrollView.content.y > this.lastContentPosY;
|
||||
let offset = (this.itemHeight + this.spaceY) * items.length;
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
item = items[i];
|
||||
let viewPos = this.getPositionInView(item);
|
||||
if (isUp) {
|
||||
//item上滑时,超出了scrollView上边界,将item移动到下方复用,item移动到下方的位置必须不超过content的下边界
|
||||
if (viewPos.y > bufferZone && item.y - offset - this.padding_buttom > -this.content.height) {
|
||||
let itemRender: ItemRender = item.getComponent(ItemRender);
|
||||
let itemIndex = itemRender.itemIndex + items.length;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
itemRender.data = this.itemDataList[itemIndex];
|
||||
itemRender.dataChanged();
|
||||
item.y = item.y - offset;
|
||||
}
|
||||
} else {
|
||||
//item下滑时,超出了scrollView下边界,将item移动到上方复用,item移动到上方的位置必须不超过content的上边界
|
||||
if (viewPos.y < -bufferZone && item.y + offset + this.padding_top < 0) {
|
||||
let itemRender: ItemRender = item.getComponent(ItemRender);
|
||||
let itemIndex = itemRender.itemIndex - items.length;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
itemRender.data = this.itemDataList[itemIndex];
|
||||
itemRender.dataChanged();
|
||||
item.y = item.y + offset;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.lastContentPosY = this.scrollView.content.y;
|
||||
}
|
||||
|
||||
/**水平排列 */
|
||||
private udpateH() {
|
||||
let items = this.itemList;
|
||||
let item;
|
||||
let bufferZone = this.halfScrollView;
|
||||
let isRight = this.scrollView.content.x > this.lastContentPosX;
|
||||
let offset = (this.itemWidth + this.spaceX) * items.length;
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
item = items[i];
|
||||
let viewPos = this.getPositionInView(item);
|
||||
if (isRight) {
|
||||
//item右滑时,超出了scrollView右边界,将item移动到左方复用,item移动到左方的位置必须不超过content的左边界
|
||||
if (viewPos.x > bufferZone && item.x - offset - this.padding_left > 0) {
|
||||
let itemRender: ItemRender = item.getComponent(ItemRender);
|
||||
let itemIndex = itemRender.itemIndex - items.length;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
itemRender.data = this.itemDataList[itemIndex];
|
||||
itemRender.dataChanged();
|
||||
item.x = item.x - offset;
|
||||
}
|
||||
} else {
|
||||
//item左滑时,超出了scrollView左边界,将item移动到右方复用,item移动到右方的位置必须不超过content的右边界
|
||||
if (viewPos.x < -bufferZone && item.x + offset + this.padding_right < this.content.width) {
|
||||
let itemRender: ItemRender = item.getComponent(ItemRender);
|
||||
let itemIndex = itemRender.itemIndex + items.length;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
itemRender.data = this.itemDataList[itemIndex];
|
||||
itemRender.dataChanged();
|
||||
item.x = item.x + offset;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.lastContentPosX = this.scrollView.content.x;
|
||||
}
|
||||
|
||||
/**网格垂直排列 */
|
||||
private updateGrid_V() {
|
||||
let items = this.itemList;
|
||||
let item: cc.Node;
|
||||
let bufferZone = this.halfScrollView;
|
||||
let isUp = this.scrollView.content.y > this.lastContentPosY;
|
||||
let offset = (this.itemHeight + this.spaceY) * (this.spawnCount / this.gridCol);
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
item = items[i];
|
||||
let viewPos = this.getPositionInView(item);
|
||||
if (isUp) {
|
||||
//item上滑时,超出了scrollView上边界,将item移动到下方复用,item移动到下方的位置必须不超过content的下边界
|
||||
if (viewPos.y > bufferZone && item.y - offset - this.padding_buttom > -this.content.height) {
|
||||
let itemRender: ItemRender = item.getComponent(ItemRender);
|
||||
let itemIndex = itemRender.itemIndex + (this.spawnCount / this.gridCol) * this.gridCol;
|
||||
if (this.itemDataList[itemIndex] != null) {
|
||||
item.y = item.y - offset;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
itemRender.data = this.itemDataList[itemIndex];
|
||||
itemRender.dataChanged();
|
||||
item.opacity = 255;
|
||||
} else {
|
||||
item.y = item.y - offset;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
item.opacity = 0;
|
||||
}
|
||||
}
|
||||
} else {//item下滑时,超出了scrollView下边界,将item移动到上方复用,item移动到上方的位置必须不超过content的上边界
|
||||
if (viewPos.y < -bufferZone && item.y + offset + this.padding_top < 0) {
|
||||
let itemRender: ItemRender = item.getComponent(ItemRender);
|
||||
let itemIndex = itemRender.itemIndex - (this.spawnCount / this.gridCol) * this.gridCol;
|
||||
if (this.itemDataList[itemIndex] != null) {
|
||||
item.y = item.y + offset;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
itemRender.data = this.itemDataList[itemIndex];
|
||||
itemRender.dataChanged();
|
||||
item.opacity = 255;
|
||||
} else {
|
||||
item.y = item.y + offset;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
item.opacity = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.lastContentPosY = this.scrollView.content.y;
|
||||
}
|
||||
|
||||
/**网格水平排列 */
|
||||
private updateGrid_H() {
|
||||
let items = this.itemList;
|
||||
let item;
|
||||
let bufferZone = this.halfScrollView;
|
||||
let isRight = this.scrollView.content.x > this.lastContentPosX;
|
||||
let offset = (this.itemWidth + this.spaceX) * (this.spawnCount / this.gridRow);
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
item = items[i];
|
||||
let viewPos = this.getPositionInView(item);
|
||||
if (isRight) {
|
||||
//item右滑时,超出了scrollView右边界,将item移动到左方复用,item移动到左方的位置必须不超过content的左边界
|
||||
if (viewPos.x > bufferZone && item.x - offset - this.padding_left > 0) {
|
||||
let itemRender: ItemRender = item.getComponent(ItemRender);
|
||||
let itemIndex = itemRender.itemIndex - (this.spawnCount / this.gridRow) * this.gridRow;
|
||||
if (this.itemDataList[itemIndex] != null) {
|
||||
item.x = item.x - offset;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
itemRender.data = this.itemDataList[itemIndex];
|
||||
itemRender.dataChanged();
|
||||
item.opacity = 255;
|
||||
} else {
|
||||
item.x = item.x - offset;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
item.opacity = 0;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//item左滑时,超出了scrollView左边界,将item移动到右方复用,item移动到右方的位置必须不超过content的右边界
|
||||
if (viewPos.x < -bufferZone && item.x + offset + this.padding_right < this.content.width) {
|
||||
let itemRender: ItemRender = item.getComponent(ItemRender);
|
||||
let itemIndex = itemRender.itemIndex + (this.spawnCount / this.gridRow) * this.gridRow;
|
||||
if (this.itemDataList[itemIndex] != null) {
|
||||
item.x = item.x + offset;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
itemRender.data = this.itemDataList[itemIndex];
|
||||
itemRender.dataChanged();
|
||||
item.opacity = 255;
|
||||
} else {
|
||||
item.x = item.x + offset;
|
||||
itemRender.itemIndex = itemIndex;
|
||||
item.opacity = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.lastContentPosX = this.scrollView.content.x;
|
||||
}
|
||||
|
||||
/**获取item在scrollView的局部坐标 */
|
||||
private getPositionInView(item) {
|
||||
let worldPos = item.parent.convertToWorldSpaceAR(item.position);
|
||||
let viewPos = this.scrollView.node.convertToNodeSpaceAR(worldPos);
|
||||
return viewPos;
|
||||
}
|
||||
|
||||
/**获取列表数据 */
|
||||
public getListData() {
|
||||
return this.itemDataList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加一项数据到列表的末尾
|
||||
* @param data 数据
|
||||
*/
|
||||
public addItem(data: any) {
|
||||
this.itemDataList.push(data);
|
||||
this.updateContent();
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加一项数据到列表指定位置
|
||||
* @param index 位置,0表示第1项
|
||||
* @param data 数据
|
||||
*/
|
||||
public addItemAt(index: number, data: any) {
|
||||
if (this.itemDataList[index] != null || this.itemDataList.length == index) {
|
||||
this.itemDataList.splice(index, 1, data);
|
||||
this.updateContent();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一项数据
|
||||
* @param index 删除项的位置 ,0表示第1项
|
||||
*/
|
||||
public deleteItem(index: number) {
|
||||
if (this.itemDataList[index] != null) {
|
||||
this.itemDataList.splice(index, 1);
|
||||
this.updateContent();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 改变一项数据
|
||||
* @param index 位置,0表示第1项
|
||||
* @param data 替换的数据
|
||||
*/
|
||||
public changeItem(index: number, data: any) {
|
||||
if (this.itemDataList[index] != null) {
|
||||
this.itemDataList[index] = data;
|
||||
this.updateContent();
|
||||
}
|
||||
}
|
||||
|
||||
/**获取第一个Item的位置 */
|
||||
private updateContent() {
|
||||
//显示列表实例为0个
|
||||
if (this.itemList.length == 0) {
|
||||
this.countListParam();
|
||||
this.createList(0, new cc.Vec2(0, 0));
|
||||
//显示列表的实例不为0个,则需要重新排列item实例数组
|
||||
} else {
|
||||
if (this.type == ListType.Vertical) {
|
||||
this.itemList.sort((a: any, b: any) => {
|
||||
return b.y - a.y;
|
||||
});
|
||||
} else if (this.type == ListType.Horizontal) {
|
||||
this.itemList.sort((a: any, b: any) => {
|
||||
return a.x - b.x;
|
||||
});
|
||||
} else if (this.type == ListType.Grid) {
|
||||
if (this.startAxis == StartAxisType.Vertical) {
|
||||
this.itemList.sort((a: any, b: any) => {
|
||||
return a.x - b.x;
|
||||
});
|
||||
this.itemList.sort((a: any, b: any) => {
|
||||
return b.y - a.y;
|
||||
});
|
||||
} else if (this.startAxis == StartAxisType.Horizontal) {
|
||||
this.itemList.sort((a: any, b: any) => {
|
||||
return b.y - a.y;
|
||||
});
|
||||
this.itemList.sort((a: any, b: any) => {
|
||||
return a.x - b.x;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
this.countListParam();
|
||||
|
||||
//获取第一个item实例需要显示的数据索引
|
||||
var startIndex = this.itemList[0].getComponent(ItemRender).itemIndex;
|
||||
|
||||
if (this.type == ListType.Grid && this.startAxis == StartAxisType.Vertical) {
|
||||
startIndex += (startIndex + this.spawnCount) % this.gridCol;
|
||||
} else if (this.type == ListType.Grid && this.startAxis == StartAxisType.Horizontal) {
|
||||
startIndex += (startIndex + this.spawnCount) % this.gridRow;
|
||||
}
|
||||
|
||||
//getScrollOffset()和scrollToOffset()的x值是相反的
|
||||
var offset: cc.Vec2 = this.scrollView.getScrollOffset();
|
||||
offset.x = - offset.x;
|
||||
|
||||
this.createList(startIndex, offset);
|
||||
}
|
||||
}
|
||||
|
||||
/**销毁 */
|
||||
public onDestroy() {
|
||||
//清理列表项
|
||||
let len = this.itemList.length;
|
||||
for (let i = 0; i < len; i++) {
|
||||
if (cc.isValid(this.itemList[i], true)) {
|
||||
this.itemList[i].destroy();
|
||||
}
|
||||
}
|
||||
this.itemList.length = 0;
|
||||
//清理对象池
|
||||
len = this.itemPool.length;
|
||||
for (let i = 0; i < len; i++) {
|
||||
if (cc.isValid(this.itemPool[i], true)) {
|
||||
this.itemPool[i].destroy();
|
||||
}
|
||||
}
|
||||
this.itemPool.length = 0;
|
||||
//清理列表数据
|
||||
this.itemDataList.length = 0;
|
||||
}
|
||||
}
|
10
assets/Script/ListView/List.ts.meta
Normal file
10
assets/Script/ListView/List.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "d54211e0-2d28-4528-88e3-e5fd7c9b59a2",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
40
assets/Script/Load.ts
Normal file
40
assets/Script/Load.ts
Normal file
|
@ -0,0 +1,40 @@
|
|||
// Learn TypeScript:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
import GameData from "./GameData";
|
||||
import { GameTool } from "./tool/GameTool";
|
||||
import { StorageMessage } from "./tool/Storage";
|
||||
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
|
||||
@property(cc.Label)
|
||||
label: cc.Label = null;
|
||||
|
||||
@property
|
||||
text: string = 'hello';
|
||||
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
// onLoad () {}
|
||||
|
||||
start () {
|
||||
// GameTool.Authentication();
|
||||
}
|
||||
|
||||
click(){
|
||||
cc.director.loadScene("GuideScene");
|
||||
// cc.director.loadScene("GameScene");
|
||||
}
|
||||
|
||||
openRank(){
|
||||
cc.director.loadScene("RankScene");
|
||||
}
|
||||
// update (dt) {}
|
||||
}
|
10
assets/Script/Load.ts.meta
Normal file
10
assets/Script/Load.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "08fd7f48-1f83-43cb-a7b8-dc950ae0f526",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
309
assets/Script/Player.ts
Normal file
309
assets/Script/Player.ts
Normal file
|
@ -0,0 +1,309 @@
|
|||
// Learn TypeScript:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
import GameData from "./GameData";
|
||||
import GameManager from "./GameManager";
|
||||
import AudioManager from "./tool/AudioManager";
|
||||
import { Notification } from './tool/Notification';
|
||||
const {ccclass, property} = cc._decorator;0
|
||||
|
||||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
|
||||
@property(cc.Node)
|
||||
add: cc.Node = null;
|
||||
@property(cc.SpriteAtlas)
|
||||
plist: cc.SpriteAtlas =null;
|
||||
|
||||
basicHeight:number //每次跳跃前基础高度
|
||||
jumpState:number; //跳跃状态,控制1段跳2段跳
|
||||
jumpHeight:number; //跳跃高度
|
||||
jumpAction: cc.Tween<cc.Node>;//跳跃tween动画,用于停止控制
|
||||
up:boolean; //跳跃上升下降状态判断
|
||||
block: cc.Node;
|
||||
death:boolean;
|
||||
interfere:boolean;
|
||||
double:boolean;
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
|
||||
// onLoad () {}
|
||||
|
||||
start () {
|
||||
this.init();
|
||||
}
|
||||
|
||||
init(){
|
||||
this.jumpState = 0;
|
||||
this.jumpHeight = this.node.y;
|
||||
this.basicHeight = this.node.y;
|
||||
this.up = true;
|
||||
this.double = false;
|
||||
this.death = false;
|
||||
this.jumpAction = null;
|
||||
this.block = null;
|
||||
this.interfere = false;
|
||||
}
|
||||
|
||||
//跳动
|
||||
jump(){
|
||||
if(this.jumpState < 2){
|
||||
if(this.jumpState == 0){
|
||||
if(this.death == false){
|
||||
this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",false);
|
||||
}
|
||||
}
|
||||
else if(this.jumpState == 1 || this.node.y > (this.jumpHeight+GameData._instance.GM_INFO.jumpHeight-5)){
|
||||
if(this.death == false){
|
||||
this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",false);
|
||||
}
|
||||
|
||||
}
|
||||
setTimeout(() => {
|
||||
if(this.jumpState == 0){
|
||||
if(this.block){
|
||||
this.block.getComponent("Block").hide();
|
||||
this.block = null;
|
||||
}
|
||||
GameData._instance.CLICK_DATA.jumps = 1;
|
||||
AudioManager._instance.playJump();
|
||||
this.basicHeight = this.node.y;
|
||||
this.jumpState += 1;
|
||||
this.up = true;
|
||||
Notification.emit("showGround",this.node.y);
|
||||
this.jumpAction = cc.tween(this.node)
|
||||
.to(GameData._instance.GM_INFO.jumpUpTime,{position:cc.v3(0,this.jumpHeight+GameData._instance.GM_INFO.jumpHeight,0)},{easing:'quadOut'})
|
||||
.call(() =>{
|
||||
this.up = false;
|
||||
this.jumpState = -1;
|
||||
var temp = this.node.y - this.jumpHeight;
|
||||
console.log("距离",temp)
|
||||
})
|
||||
.to(GameData._instance.GM_INFO.jumpDownTime,{position:cc.v3(0,this.jumpHeight,0)},{easing:'cubicIn'})
|
||||
.call(() =>{
|
||||
this.jumpHeight = this.node.y;
|
||||
this.jumpState = -1;
|
||||
this.up = true;
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else if(this.jumpState == 1 || this.node.y > (this.jumpHeight+GameData._instance.GM_INFO.jumpHeight-15)){
|
||||
if(this.jumpAction)this.jumpAction.stop();
|
||||
AudioManager._instance.playJump();
|
||||
GameData._instance.CLICK_DATA.jumps = 2;
|
||||
this.jumpState = 2;
|
||||
this.up = true;
|
||||
this.jumpAction = cc.tween(this.node)
|
||||
.to(GameData._instance.GM_INFO.jumpUpTime,{position:cc.v3(0,this.node.y+GameData._instance.GM_INFO.jumpHeight,0)},{easing:'quadOut'})
|
||||
.call(() =>{
|
||||
this.up = false;
|
||||
})
|
||||
.to(GameData._instance.GM_INFO.jumpDownTime*1.5,{position:cc.v3(0,this.jumpHeight,0)},{easing:'cubicIn'})
|
||||
.call(() =>{
|
||||
this.jumpState = -1;
|
||||
this.jumpHeight = this.node.y;
|
||||
this.up = true;
|
||||
})
|
||||
.start();
|
||||
}
|
||||
}, 100);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
onCollisionEnter(other: cc.Collider, self: cc.Collider) {
|
||||
if(GameManager._instance){
|
||||
if(GameManager._instance.over == true){
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let max = other.name.length;
|
||||
let num = 6;
|
||||
if(other.node.name != "Ground"){
|
||||
if(other.node.getComponent("Block").num > 9) num = 7;
|
||||
}
|
||||
|
||||
let ColliderName = other.name.substring(num,max);
|
||||
//获取碰撞体名字
|
||||
if(ColliderName == "<PolygonCollider>"){
|
||||
if(this.node.y <= other.node.y && this.up == true && this.death == false){
|
||||
if(this.jumpAction)this.jumpAction.stop();
|
||||
this.jumpState = -1;
|
||||
AudioManager._instance.playGround();
|
||||
// console.log("死亡1");
|
||||
this.gameDeath();
|
||||
}
|
||||
else if(other.node.name == "Ground" && this.death == false){
|
||||
// if(this.jumpAction)this.jumpAction.stop();
|
||||
this.jumpState = -1;
|
||||
// console.log("死亡2");
|
||||
this.gameDeath();
|
||||
}
|
||||
else{
|
||||
// console.log("没碰到边缘",this.up,this.node.y,other.node.y,this.jumpState,this.up);
|
||||
}
|
||||
}
|
||||
if(ColliderName == "<BoxCollider>" ){
|
||||
if(this.death == true){
|
||||
// console.log("已经死亡");
|
||||
return;
|
||||
}
|
||||
//
|
||||
let portrait = Math.abs(this.node.y-other.node.y)
|
||||
let width = other.node.width/2;
|
||||
let pos = Math.abs(this.node.x - other.node.x);
|
||||
let distance =pos/width;
|
||||
// console.log("我的位置:",this.node.x,"块的位置:",other.node.x,"块的宽度:",width,"百分比:",distance);
|
||||
|
||||
if(this.up == true){
|
||||
// console.log("死亡4");
|
||||
AudioManager._instance.playGround();
|
||||
this.gameDeath();
|
||||
}
|
||||
else{
|
||||
if(distance*100 < GameData._instance.GM_INFO.distanceMin && this.jumpState != 0){
|
||||
// console.log("成功1");
|
||||
console.log("百分比:",distance*100+"%");
|
||||
this.success(other,distance*100);
|
||||
}
|
||||
else{
|
||||
if(portrait >= 20 || distance*100 > GameData._instance.GM_INFO.distanceMax){
|
||||
// console.log("死亡3","落差:",portrait,"状态:",this.up);
|
||||
AudioManager._instance.playGround();
|
||||
this.gameDeath();
|
||||
}
|
||||
else{
|
||||
// console.log("成功2");
|
||||
console.log("百分比:",distance*100+"%");
|
||||
this.success(other,distance*100);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
success(other,distance){
|
||||
GameData._instance.CLICK_DATA.percent = Math.floor(distance);
|
||||
if(GameManager._instance)GameManager._instance.destroyBlock();
|
||||
this.add.active = true;
|
||||
this.add.opacity = 0;
|
||||
let number = 1;
|
||||
if(distance <= 7.5) number = 3;
|
||||
else if(distance <= 15) number = 2;
|
||||
GameData._instance.CLICK_DATA.accuracy = number;
|
||||
|
||||
this.add.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = this.plist.getSpriteFrames()[number];
|
||||
this.add.getChildByName("jia").getComponent(cc.Sprite).spriteFrame = this.plist.getSpriteFrames()[number+3];
|
||||
this.addAction();
|
||||
this.node.getChildByName("guang").active = true;
|
||||
this.node.getChildByName("guang").getComponent(sp.Skeleton).setAnimation(0,"double_1",false);
|
||||
if(this.jumpAction)this.jumpAction.stop();
|
||||
if(this.death == false){
|
||||
this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",false);
|
||||
}
|
||||
|
||||
this.block = other.node;
|
||||
this.block.getComponent("Block").setScore(number);
|
||||
this.basicHeight = this.node.y;
|
||||
if(number > 1){
|
||||
AudioManager._instance.playPz();
|
||||
if(this.double == false){
|
||||
this.double = true;
|
||||
GameData._instance.LEVEL_INFO.doubleHit = 1.05;
|
||||
}
|
||||
else{
|
||||
GameData._instance.LEVEL_INFO.doubleHit += GameData._instance.LEVEL_INFO.doubleAdd;
|
||||
}
|
||||
var combo = (GameData._instance.LEVEL_INFO.doubleHit-1)*(1/0.05);
|
||||
GameData._instance.CLICK_DATA.combo = parseInt(combo + "");
|
||||
}
|
||||
else{
|
||||
AudioManager._instance.playLuo();
|
||||
this.double = false;
|
||||
GameData._instance.CLICK_DATA.combo = 0;
|
||||
}
|
||||
|
||||
Notification.emit("setData",null);
|
||||
setTimeout(() => {
|
||||
Notification.emit("createBlock",null);
|
||||
}, 10);
|
||||
|
||||
if(number > 1 && GameData._instance.LEVEL_INFO.doubleSuccess != 0 ){
|
||||
GameData._instance.LEVEL_INFO.doubleSuccess -= 1;
|
||||
}
|
||||
else{
|
||||
if(GameData._instance.LEVEL_INFO.doubleSuccess != 0 && GameData._instance.LEVEL_INFO.doubleSuccess<3){
|
||||
GameData._instance.LEVEL_INFO.doubleSuccess = 3;
|
||||
}
|
||||
}
|
||||
if(GameData._instance.LEVEL_INFO.doubleSuccess == 0){
|
||||
setTimeout(() => {
|
||||
Notification.emit("createCrackBlock",null);
|
||||
}, 20);
|
||||
}
|
||||
else{
|
||||
GameManager._instance.interfere = false;
|
||||
GameData._instance.CLICK_DATA.fake = GameManager._instance.interfere;
|
||||
}
|
||||
this.jumpState = 0;
|
||||
this.up = true;
|
||||
this.node.y = other.node.y-3+other.node.height/2;
|
||||
this.jumpHeight = this.node.y;
|
||||
}
|
||||
|
||||
gameDeath(){
|
||||
// console.log("条失败");
|
||||
GameData._instance.CLICK_DATA.combo = 0;
|
||||
GameData._instance.CLICK_DATA.accuracy = 0;
|
||||
GameData._instance.CLICK_DATA.percent = -1;
|
||||
|
||||
Notification.emit("setData",null);
|
||||
this.double = false;
|
||||
GameData._instance.LEVEL_INFO.doubleSuccess = 3;
|
||||
this.death = true;
|
||||
if(this.jumpAction)this.jumpAction.stop();
|
||||
this.jumpState = -1;
|
||||
Notification.emit("death",null);
|
||||
}
|
||||
|
||||
xinAction(){
|
||||
// console.log("生命:",GameData._instance.GM_INFO.life);
|
||||
if(GameData._instance.GM_INFO.life >= 0){
|
||||
let xin = this.node.getChildByName("xin");
|
||||
xin.y = 120;
|
||||
cc.tween(xin)
|
||||
.to(0.2,{opacity:255,y:xin.y+50})
|
||||
.delay(0.5)
|
||||
.to(0.3,{opacity:0,y:xin.y+100})
|
||||
.call(() =>{
|
||||
|
||||
})
|
||||
.start();
|
||||
}
|
||||
}
|
||||
|
||||
addAction(){
|
||||
this.add.y = 120;
|
||||
cc.tween(this.add)
|
||||
.to(0.2,{opacity:255,y:this.add.y+50})
|
||||
.delay(0.5)
|
||||
.to(0.3,{opacity:0,y:this.add.y+100})
|
||||
.call(() =>{
|
||||
this.add.active = false;
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
update (dt) {
|
||||
// if(this.death == true && this.node.y > -500 && GameManager._instance.over == false){
|
||||
// // this.node.y -= 3;
|
||||
// // if(this.node.y <= -500){
|
||||
// // this.node.y = -500;
|
||||
// // }
|
||||
// }
|
||||
}
|
||||
}
|
10
assets/Script/Player.ts.meta
Normal file
10
assets/Script/Player.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "7fd749ea-5b80-4237-a685-6a53799e6c8b",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
190
assets/Script/RankManager.ts
Normal file
190
assets/Script/RankManager.ts
Normal file
|
@ -0,0 +1,190 @@
|
|||
import GameData from "./GameData";
|
||||
import List from "./ListView/List";
|
||||
import HttpUtil from "./crypto/HttpUtil";
|
||||
|
||||
const { ccclass, property } = cc._decorator;
|
||||
//排行榜
|
||||
@ccclass
|
||||
export default class RankManager extends cc.Component {
|
||||
@property(cc.Node) //用户上方头像
|
||||
Player: cc.Node = null;
|
||||
@property(cc.Node) //用户最下方个人信息
|
||||
selfNode: cc.Node = null;
|
||||
@property(cc.Sprite) //用户头像换图
|
||||
phone: cc.Sprite = null;
|
||||
private rankList: List; //排行榜
|
||||
tween: cc.Tween<cc.Node>; //最上方用户头像动画
|
||||
listData: any; //总列表信息
|
||||
selfData: any; //自己信息
|
||||
rankNumber: number; //用户自己排名 有可能不在排行榜内99+
|
||||
rankTotal: number; //获取排行榜用户数量 现在为100
|
||||
|
||||
onLoad() {
|
||||
this.init();
|
||||
}
|
||||
//初始化数据
|
||||
init(){
|
||||
this.rankList = cc.find("ScrollView", this.node).getComponent(List);
|
||||
this.Player.getChildByName("rank").active = false;
|
||||
this.listData = [];
|
||||
this.selfData = null;
|
||||
this.rankNumber = 100;
|
||||
this.rankTotal= 100;
|
||||
this.selfNode.opacity = 0;
|
||||
}
|
||||
|
||||
start() {
|
||||
this.Player.active = false;
|
||||
this.getRank();
|
||||
}
|
||||
//调用获取排行榜接口
|
||||
getRank(){
|
||||
let postData = {
|
||||
"page":1,
|
||||
"pageSize":100
|
||||
};
|
||||
//回调进getRankData
|
||||
HttpUtil.rankData(2,this.getRankData.bind(this),postData);
|
||||
}
|
||||
//实际设置排行数据
|
||||
getRankData(data){
|
||||
|
||||
if(data){
|
||||
// console.log(data);
|
||||
this.listData = data.data.list;
|
||||
this.selfData = data.data.info;
|
||||
let rankData = [];
|
||||
let self = false;
|
||||
for(let i=0;i<=this.listData.length-1;i++){
|
||||
rankData.push({rank:(i+1), name:this.listData[i].nickName, total:this.listData[i].score, pic:this.listData[i].pic});
|
||||
if(GameData._instance.GM_INFO.userId == this.listData[i].userId){
|
||||
self = true;
|
||||
this.rankNumber = i;
|
||||
this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string =(i+1) + "";
|
||||
}
|
||||
if(i == (this.listData.length-1) && self == false){
|
||||
this.rankNumber = 101;
|
||||
//如果列表大于99显示99+ 否则显示未排名
|
||||
if(this.listData.length >= 99)this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string = "99+";
|
||||
else this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string = "未排名"
|
||||
}
|
||||
}
|
||||
//如果排行榜列表没有人
|
||||
if(this.listData.length == 0) this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string = "未排名"
|
||||
this.rankList.setData(rankData);
|
||||
if(this.selfData.nickName.length > 6){
|
||||
this.selfData.nickName= this.selfData.nickName.substring(0,6) + "..."
|
||||
}
|
||||
this.selfNode.getChildByName("nameLab").getComponent(cc.Label).string = this.selfData.nickName;
|
||||
//如果没有排行分数信息
|
||||
if(this.selfData.score){
|
||||
this.selfNode.getChildByName("totalLab").getComponent(cc.Label).string = this.selfData.score;
|
||||
}
|
||||
|
||||
this.setPic(this.selfData.pic);
|
||||
if(this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string == "1"){
|
||||
this.selfNode.getChildByName("rank").getChildByName("one").active = true;
|
||||
}
|
||||
else if(this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string == "2"){
|
||||
this.selfNode.getChildByName("rank").getChildByName("two").active = true;
|
||||
}
|
||||
else if(this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string == "3"){
|
||||
this.selfNode.getChildByName("rank").getChildByName("three").active = true;
|
||||
}
|
||||
else{
|
||||
// this.selfNode.getChildByName("four").active = true;
|
||||
}
|
||||
this.selfNode.opacity = 255;
|
||||
if(this.selfData.score == 0) this.selfNode.opacity = 0;
|
||||
}
|
||||
}
|
||||
//返回按钮
|
||||
backClick(){
|
||||
cc.director.loadScene("LoadScene");
|
||||
}
|
||||
//最上方用户动画
|
||||
playerAction(){
|
||||
//-254 377 210 453
|
||||
this.Player.getChildByName("rank").active = false;
|
||||
let time = 1;
|
||||
this.tween = cc.tween(this.Player)
|
||||
.to(2,{position:cc.v3(210,485,0)})
|
||||
.call(() =>{
|
||||
this.Player.getChildByName("rank").active = true;
|
||||
this.Player.getChildByName("rank").getChildByName("number")
|
||||
.getComponent(cc.Label).string = parseInt(time*100 + "") + "%";
|
||||
})
|
||||
.start();
|
||||
if(this.listData.length > 0){
|
||||
time = (this.listData.length - this.rankNumber)/this.listData.length;
|
||||
if(this.listData.length >= 99){
|
||||
if(this.rankNumber >= 99){
|
||||
time = (Math.random()*49+1)/100
|
||||
var matchId = cc.sys.localStorage.getItem("matchNumber");
|
||||
if(matchId == null || matchId == undefined){
|
||||
time = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
time = 0;
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
if(this.tween)this.tween.stop();
|
||||
if(this.Player){
|
||||
this.Player.getChildByName("rank").active = true;
|
||||
this.Player.getChildByName("rank").getChildByName("number")
|
||||
.getComponent(cc.Label).string = parseInt(time*100 + "") + "%";
|
||||
}
|
||||
|
||||
}, time*2000);
|
||||
|
||||
}
|
||||
//设置头像
|
||||
public setPic(pic){
|
||||
this.phone.node.parent.getChildByName("icon").active = false;
|
||||
this.phone.node.active = false;
|
||||
this.Player.active = true;
|
||||
this.Player.opacity = 0;
|
||||
this.Player.getChildByName("mask").getChildByName("icon").active = false;
|
||||
this.Player.getChildByName("mask").getChildByName("phone").active = false;
|
||||
fetch(pic)
|
||||
.then(response => {
|
||||
return response.headers.get('Content-Length');
|
||||
})
|
||||
.then(errNo => {
|
||||
if(errNo == "5093"){
|
||||
this.phone.node.parent.getChildByName("icon").active = true;
|
||||
this.Player.getChildByName("mask").getChildByName("icon").active = true;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
var self = this;
|
||||
cc.assetManager.loadRemote(pic, {ext:'.png'},(err, texture:cc.Texture2D) => {
|
||||
self.Player.opacity = 255;
|
||||
if(texture){
|
||||
self.phone.node.active = true;
|
||||
self.phone.spriteFrame = new cc.SpriteFrame(texture);
|
||||
self.Player.getChildByName("mask").getChildByName("icon").active = false;
|
||||
self.Player.getChildByName("mask").getChildByName("phone").active = true;
|
||||
self.Player.getChildByName("mask").getChildByName("phone").getComponent(cc.Sprite)
|
||||
.spriteFrame = new cc.SpriteFrame(texture);
|
||||
setTimeout(() => {
|
||||
self.playerAction();
|
||||
}, 500);
|
||||
}
|
||||
else{
|
||||
self.Player.getChildByName("mask").getChildByName("icon").active = true;
|
||||
setTimeout(() => {
|
||||
self.playerAction();
|
||||
}, 500);
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
}
|
10
assets/Script/RankManager.ts.meta
Normal file
10
assets/Script/RankManager.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "9c7cc35c-f159-49f4-9cbb-a9f4cfa32d04",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
13
assets/Script/crypto.meta
Normal file
13
assets/Script/crypto.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "e8009432-4774-4831-a537-511de4498eee",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
267
assets/Script/crypto/HttpUtil.ts
Normal file
267
assets/Script/crypto/HttpUtil.ts
Normal file
|
@ -0,0 +1,267 @@
|
|||
// import CryptoJS from "crypto-js";
|
||||
|
||||
|
||||
import GameData from '../GameData';
|
||||
import CryptoJS = require('./crypto-js.min.js'); //引用AES源码js
|
||||
|
||||
// import axios from 'axios'
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class HttpUtil extends cc.Component {
|
||||
//排行榜type2为获取,type1为上传
|
||||
static async rankData(type,callback,data): Promise<any> {
|
||||
// let data2 = {
|
||||
// gameId:null,
|
||||
// userId:null,
|
||||
// data:null
|
||||
// }
|
||||
data.gameId = GameData._instance.GM_INFO.gameId;
|
||||
data.userId = GameData._instance.GM_INFO.userId;
|
||||
// data2.data = data;
|
||||
// let shuju = {
|
||||
// data:data,
|
||||
// gameId : GameData._instance.GM_INFO.gameId,
|
||||
// userId : GameData._instance.GM_INFO.userId
|
||||
// };
|
||||
|
||||
const time = Math.floor((new Date().getTime()) / 1000)
|
||||
const url = apiSign(`/api/get/rank/data?gameId=${config.gameId}&dataType=${type}&time=${time}`, data)
|
||||
|
||||
this.httpPost(url,data,callback);
|
||||
}
|
||||
|
||||
static async uploadUserLogData(data,callback): Promise<any> {
|
||||
data.gameId = GameData._instance.GM_INFO.gameId;
|
||||
data.userId = GameData._instance.GM_INFO.userId;
|
||||
const url = '/log/collect/data';
|
||||
this.httpPost(url,data,callback);
|
||||
}
|
||||
//暂时用不到
|
||||
static async getUserRecord(data,callback): Promise<any> {
|
||||
data.gameId = GameData._instance.GM_INFO.gameId;
|
||||
data.userId = GameData._instance.GM_INFO.userId;
|
||||
const time = Math.floor((new Date().getTime()) / 1000)
|
||||
const url = apiSign(`/api/get/user/data?gameId=${config.gameId}&time=${time}`, data)
|
||||
this.httpPost(url,data,callback);
|
||||
}
|
||||
|
||||
static httpPost(url,data,callBack){
|
||||
data.gameId = GameData._instance.GM_INFO.gameId;
|
||||
data.userId = GameData._instance.GM_INFO.userId;
|
||||
var urlData = "http://api.sparkus.cn" + url;
|
||||
// console.log("params:",JSON.stringify(data));
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', urlData);
|
||||
xhr.setRequestHeader('Content-Type', 'application/json');
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState == 4 && xhr.status == 200) {
|
||||
var data = xhr.responseText;
|
||||
if(!data){
|
||||
// console.log("初始化失败");
|
||||
return;
|
||||
}
|
||||
var json = JSON.parse(data);
|
||||
// console.log('http success:' + json);
|
||||
callBack(json);
|
||||
}
|
||||
else{
|
||||
// var json = JSON.parse(data);
|
||||
// console.log('http fail:' + url);
|
||||
callBack(json);
|
||||
}
|
||||
};
|
||||
xhr.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
static httpGet(url,callBack){
|
||||
var urlData = "http://api.sparkus.cn" + url;
|
||||
console.log(urlData);
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', urlData);
|
||||
xhr.setRequestHeader('Content-Type', 'text/plain');
|
||||
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState == 4 && xhr.status == 200) {
|
||||
var data = xhr.responseText;
|
||||
if(data){
|
||||
var json = JSON.parse(data);
|
||||
console.info('http success:' + json);
|
||||
callBack(json);
|
||||
}
|
||||
else callBack(data);
|
||||
}
|
||||
else{
|
||||
console.info('http fail:' + url);
|
||||
callBack(null);
|
||||
}
|
||||
};
|
||||
xhr.send();
|
||||
}
|
||||
}
|
||||
|
||||
function responseHandler(response: { data: any }) {
|
||||
return response.data
|
||||
}
|
||||
// 响应拦截器
|
||||
// Rq.interceptors.response.use(responseHandler)
|
||||
const config = {
|
||||
gameId: "100001",
|
||||
secretKey: "zDLsruVI",
|
||||
EK:"hui231%1"
|
||||
};
|
||||
|
||||
interface CrypotoType {
|
||||
encryptByDES: any
|
||||
decryptByDES: any
|
||||
hmacSha256: any
|
||||
}
|
||||
|
||||
class Crypoto implements CrypotoType {
|
||||
// 加密的向明值,自己根据项目实际情况定,需要跟后端开发保持一致
|
||||
private keyHex = this.getHetKey()
|
||||
|
||||
private getHetKey() {
|
||||
return CryptoJS.enc.Utf8.parse(config.EK);
|
||||
}
|
||||
|
||||
/** DES加密 */
|
||||
encryptByDES(message: string, secret?: string) {
|
||||
if(!message) {
|
||||
return message
|
||||
}
|
||||
const key = secret? CryptoJS.enc.Utf8.parse(secret): this.keyHex
|
||||
const encrypted = CryptoJS.DES.encrypt(message, key, {
|
||||
mode: CryptoJS.mode.ECB,
|
||||
padding: CryptoJS.pad.Pkcs7
|
||||
});
|
||||
return encrypted.toString()
|
||||
}
|
||||
|
||||
/** DES解密 */
|
||||
decryptByDES(message: string, secret?: string) {
|
||||
const key = secret? CryptoJS.enc.Utf8.parse(secret): this.keyHex
|
||||
|
||||
const decrypted = CryptoJS.DES.decrypt({
|
||||
ciphertext: CryptoJS.enc.Base64.parse(message)
|
||||
}, key, {
|
||||
mode: CryptoJS.mode.ECB,
|
||||
padding: CryptoJS.pad.Pkcs7
|
||||
})
|
||||
|
||||
return decrypted.toString(CryptoJS.enc.Utf8)
|
||||
}
|
||||
|
||||
/** hmacSHA256加密 */
|
||||
hmacSha256(message: string, secret?: string) {
|
||||
const keyHex = secret? CryptoJS.enc.Utf8.parse(secret): this.keyHex
|
||||
|
||||
const hash = CryptoJS.HmacSHA256(message, keyHex);
|
||||
return hash.toString()
|
||||
}
|
||||
|
||||
/** hmacSHA256验证 */
|
||||
verifyHmacSha256(message: string, signature: string) {
|
||||
const hash = CryptoJS.HmacSHA256(message, this.keyHex);
|
||||
return hash.toString() === signature
|
||||
}
|
||||
|
||||
/** CBC加密 */
|
||||
encryptCBC(word: string) {
|
||||
if (!word) {
|
||||
return word;
|
||||
}
|
||||
const srcs = CryptoJS.enc.Utf8.parse(word);
|
||||
const encrypted = CryptoJS.AES.encrypt(srcs, this.keyHex, {
|
||||
iv: this.keyHex,
|
||||
mode: CryptoJS.mode.CBC,
|
||||
padding: CryptoJS.pad.ZeroPadding
|
||||
});
|
||||
return encrypted.toString();
|
||||
}
|
||||
|
||||
/** CBC解密 */
|
||||
decryptCBC(word: string) {
|
||||
if (!word) {
|
||||
return word;
|
||||
}
|
||||
const encryptedHexStr = CryptoJS.enc.Hex.parse(word);
|
||||
const srcs = CryptoJS.enc.Base64.stringify(encryptedHexStr);
|
||||
const decrypt = CryptoJS.AES.decrypt(srcs, this.keyHex, {
|
||||
iv: this.keyHex,
|
||||
mode: CryptoJS.mode.CBC,
|
||||
padding: CryptoJS.pad.ZeroPadding
|
||||
});
|
||||
const decryptedStr = decrypt.toString(CryptoJS.enc.Utf8);
|
||||
return decryptedStr.toString();
|
||||
}
|
||||
}
|
||||
const fxCry = new Crypoto();
|
||||
|
||||
function isEmpty(data) {
|
||||
return data === "" || data === null || data === undefined || data.length === 0 || JSON.stringify(data) == "{}"
|
||||
}
|
||||
|
||||
function getQueryString(obj) {
|
||||
// 首先对对象的键进行排序并过滤空值
|
||||
const sortedKeys = Object.keys(obj).sort();
|
||||
const sortedObj = {};
|
||||
for (let i = 0; i < sortedKeys.length; i++) {
|
||||
if (isEmpty(obj[sortedKeys[i]])) {
|
||||
continue;
|
||||
}
|
||||
sortedObj[sortedKeys[i]] = obj[sortedKeys[i]];
|
||||
}
|
||||
|
||||
// 然后将排序后的对象转换为查询字符串
|
||||
const params = [];
|
||||
for (const key in sortedObj) {
|
||||
params.push(`${encodeURIComponent(key)}=${encodeURIComponent(sortedObj[key])}`);
|
||||
}
|
||||
return params.join('&');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 组装签名字符串
|
||||
* @param string url: 请求地址
|
||||
* @param string postStr: post参数的a=1&b=2
|
||||
* @returns
|
||||
*/
|
||||
|
||||
function genSignStr(url: string, postStr: string): string {
|
||||
let lessUrl = url.replace('?', '')
|
||||
lessUrl = lessUrl + "&" + postStr
|
||||
return encodeURIComponent(fxCry.hmacSha256(lessUrl))
|
||||
}
|
||||
// 对参数进行统一urlencode
|
||||
function urlencode(url: string): string {
|
||||
const [baseUrl, queryString] = url.split("?", 2);
|
||||
const params = new URLSearchParams(queryString);
|
||||
return `${baseUrl}?${params.toString()}`;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param url {string} 接口地址
|
||||
* @param params {object} 需要加密的参数对象
|
||||
*/
|
||||
function apiSign(url: string, params = {}) {
|
||||
|
||||
let convertUrl = url.trim()
|
||||
if (convertUrl.indexOf('?') === -1) {
|
||||
convertUrl += '?'
|
||||
}
|
||||
|
||||
// 传入参数转换拼接字符串
|
||||
let postStr = getQueryString(params)
|
||||
|
||||
const signedStr = genSignStr(convertUrl, postStr)
|
||||
const encryptStr = `sign=${signedStr}`
|
||||
|
||||
let encryptSignStr = fxCry.encryptByDES(encryptStr, config.secretKey)
|
||||
encryptSignStr = encodeURIComponent(encryptSignStr)
|
||||
|
||||
return `${urlencode(convertUrl)}&_p=${encryptSignStr}`
|
||||
}
|
||||
|
10
assets/Script/crypto/HttpUtil.ts.meta
Normal file
10
assets/Script/crypto/HttpUtil.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "9ed31f56-d049-4890-9ffd-ef08fd28987c",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
3
assets/Script/crypto/crypto-js.min.js
vendored
Normal file
3
assets/Script/crypto/crypto-js.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
assets/Script/crypto/crypto-js.min.js.meta
Normal file
10
assets/Script/crypto/crypto-js.min.js.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "e64e1a97-c93f-4257-ab34-80341d8ff79d",
|
||||
"importer": "javascript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
13
assets/Script/tool.meta
Normal file
13
assets/Script/tool.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "4bff6e01-b411-48f4-867a-5d841f9e400f",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
292
assets/Script/tool/AudioManager.ts
Normal file
292
assets/Script/tool/AudioManager.ts
Normal file
|
@ -0,0 +1,292 @@
|
|||
const {ccclass, property} = cc._decorator;
|
||||
@ccclass
|
||||
export default class AudioManager extends cc.Component {
|
||||
|
||||
//背景音乐
|
||||
@property(cc.AudioClip)
|
||||
audioGameBgm0: cc.AudioClip = null;
|
||||
//跳跃
|
||||
@property(cc.AudioClip)
|
||||
jump: cc.AudioClip = null;
|
||||
//落地上
|
||||
@property(cc.AudioClip)
|
||||
luodi: cc.AudioClip = null;
|
||||
//碰撞
|
||||
@property(cc.AudioClip)
|
||||
pz: cc.AudioClip = null;
|
||||
//落方块上
|
||||
@property(cc.AudioClip)
|
||||
luodui: cc.AudioClip = null;
|
||||
|
||||
mAudioMap: {};
|
||||
bgMusicVolume: number;
|
||||
effectMusicVolume: number;
|
||||
mMusicSwitch: number;
|
||||
mEffectSwitch: number;
|
||||
brickSound: any;
|
||||
reward: boolean;
|
||||
finish: boolean;
|
||||
rewardCount: number;
|
||||
|
||||
mMusicKey: any;
|
||||
static _instance: any;
|
||||
|
||||
ctor () {
|
||||
|
||||
this.mAudioMap = {};
|
||||
/**
|
||||
* 默认音量大小
|
||||
* @type {number}
|
||||
*/
|
||||
this.bgMusicVolume = 0.1;
|
||||
this.effectMusicVolume = 1;
|
||||
|
||||
this.mMusicSwitch = 1;
|
||||
this.mEffectSwitch = 1;
|
||||
}
|
||||
play (audioSource, loop, callback, isBgMusic) {
|
||||
if (isBgMusic && !this.mMusicSwitch) return;
|
||||
if (!isBgMusic && !this.mEffectSwitch) return;
|
||||
var volume = isBgMusic ? this.bgMusicVolume : this.effectMusicVolume;
|
||||
|
||||
if (cc.sys.isBrowser) {
|
||||
if(audioSource == this.brickSound){
|
||||
volume = 0.1;
|
||||
}
|
||||
volume = 1;
|
||||
var context = cc.audioEngine.play(audioSource, loop, volume);
|
||||
if (callback){
|
||||
cc.audioEngine.setFinishCallback(context, function(){
|
||||
callback.call(this);
|
||||
}.bind(this));
|
||||
}
|
||||
// cc.wwx.OutPut.log('play audio effect isBrowser: ' + context.src);
|
||||
|
||||
this.mAudioMap[audioSource] = context;
|
||||
return audioSource;
|
||||
} else {
|
||||
return audioSource;
|
||||
}
|
||||
}
|
||||
|
||||
save () {
|
||||
// cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Music_Volume, this.mMusicSwitch);
|
||||
// cc.wwx.Storage.setItem(cc.wwx.Storage.Key_Setting_Effect_Volume, this.mEffectSwitch);
|
||||
}
|
||||
onLoad() {
|
||||
|
||||
if (AudioManager._instance == null) {
|
||||
AudioManager._instance = this;
|
||||
cc.game.addPersistRootNode(this.node);
|
||||
}
|
||||
else {
|
||||
this.node.destroy();
|
||||
return;
|
||||
}
|
||||
this.reward = false;
|
||||
this.finish = false;
|
||||
this.rewardCount = 0;
|
||||
this.ctor();
|
||||
|
||||
this.preload();
|
||||
}
|
||||
preload () {
|
||||
if (!(cc.sys.platform === cc.sys.WECHAT_GAME)) { return; }
|
||||
|
||||
var musics = [
|
||||
this.audioGameBgm0,
|
||||
];
|
||||
musics.forEach(function(path) {
|
||||
// var musicPath = wxDownloader.REMOTE_SERVER_ROOT + path;
|
||||
// if (musicPath != wxDownloader.REMOTE_SERVER_ROOT && musicPath.endsWith('.mp3')) {
|
||||
// cc.loader.load(musicPath, function(err, remoteUrl) {
|
||||
// if (err) {
|
||||
// cc.error(err.message || err);
|
||||
// return;
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
})
|
||||
}
|
||||
|
||||
getAudioMusicSwitch()
|
||||
{
|
||||
return this.mMusicSwitch;
|
||||
|
||||
}
|
||||
getAudioEffectSwitch()
|
||||
{
|
||||
return this.mEffectSwitch;
|
||||
}
|
||||
trunAudioSound(on)
|
||||
{
|
||||
this.switchMusic(on);
|
||||
this.switchEffect(on)
|
||||
}
|
||||
switchMusic (on) {
|
||||
if (this.mMusicSwitch != (on?1:0))
|
||||
{
|
||||
this.mMusicSwitch = 1-this.mMusicSwitch;
|
||||
// this.save();
|
||||
|
||||
}
|
||||
if(on)
|
||||
{
|
||||
this.playMusicGame();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.stopMusic();
|
||||
}
|
||||
}
|
||||
switchEffect (on) {
|
||||
if (this.mEffectSwitch != (on?1:0)){
|
||||
this.mEffectSwitch = 1-this.mEffectSwitch;
|
||||
// this.save();
|
||||
|
||||
}
|
||||
}
|
||||
onHide () {
|
||||
cc.audioEngine.pauseAll();
|
||||
|
||||
// if (CC_JSB) {
|
||||
// } else {
|
||||
// for (var key in this.mAudioMap) {
|
||||
// if (key === this.mMusicKey) {
|
||||
// this.mAudioMap[key].pause();
|
||||
// } else {
|
||||
// this.mAudioMap[key].stop();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
onShow () {
|
||||
cc.audioEngine.resumeAll();
|
||||
|
||||
// if (CC_JSB) {
|
||||
// } else {
|
||||
// if (!this.mMusicSwitch) return;
|
||||
// var context = this.mAudioMap[this.mMusicKey];
|
||||
// if (context) {
|
||||
// context.play();
|
||||
// }
|
||||
// }
|
||||
}
|
||||
playMusic (key, callback, loop) {
|
||||
loop = typeof loop == 'undefined' || loop ? true : false;
|
||||
this.stopMusic();
|
||||
this.mMusicKey = this.play(key, loop, callback, true);
|
||||
}
|
||||
/**
|
||||
* 游戏背景音乐
|
||||
*/
|
||||
playMusicGame () {
|
||||
this.playMusic(this.audioGameBgm0,{},true);
|
||||
}
|
||||
/**
|
||||
* 停止背景音乐播放
|
||||
*/
|
||||
stopMusic () {
|
||||
// cc.wwx.OutPut.log('stopMusic audio effect wx: ' + this.mMusicKey);
|
||||
|
||||
var context = this.mAudioMap[this.mMusicKey];
|
||||
|
||||
if (typeof(context) != 'undefined') {
|
||||
if (cc.sys.isBrowser) {
|
||||
cc.audioEngine.stop(context);
|
||||
} else {
|
||||
context.stop();
|
||||
}
|
||||
cc.audioEngine.stop(context);
|
||||
|
||||
}
|
||||
}
|
||||
// 炸弹、火箭爆炸音效
|
||||
playJump () {
|
||||
return this.play(this.jump, false,null,this.mEffectSwitch);
|
||||
}
|
||||
//激光音效
|
||||
playLuo()
|
||||
{
|
||||
return this.play(this.luodui, false,null,this.mEffectSwitch);
|
||||
}
|
||||
//技能音效
|
||||
playGround()
|
||||
{
|
||||
return this.play(this.luodi, false,null,this.mEffectSwitch);
|
||||
}
|
||||
|
||||
//技能音效
|
||||
playPz()
|
||||
{
|
||||
return this.play(this.pz, false,null,this.mEffectSwitch);
|
||||
}
|
||||
/*
|
||||
* 游戏开始音效
|
||||
*
|
||||
*/
|
||||
playGameStart()
|
||||
{
|
||||
|
||||
}
|
||||
/*
|
||||
* 失败的游戏结束
|
||||
*/
|
||||
playGameOver()
|
||||
{
|
||||
|
||||
}
|
||||
/*
|
||||
* 成功的游戏结束
|
||||
*/
|
||||
playGameResultFailed()
|
||||
{
|
||||
|
||||
}
|
||||
/*
|
||||
* 成功的游戏结束
|
||||
*/
|
||||
playGameResultSuccess()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* 报警的音效
|
||||
*/
|
||||
playWarning()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* 方块碰撞的声音
|
||||
*/
|
||||
playBrick()
|
||||
{
|
||||
// return this.play(this.brickSound,false);
|
||||
}
|
||||
//方块破碎的声音
|
||||
brickBoom(){
|
||||
|
||||
}
|
||||
/**
|
||||
* 按钮
|
||||
*/
|
||||
playAudioButton () {
|
||||
|
||||
}
|
||||
|
||||
playRandomMatch()
|
||||
{
|
||||
this.playMusic(this.audioGameBgm0,{},true);
|
||||
}
|
||||
playMatchFoundSound()
|
||||
{
|
||||
this.stopMusic();
|
||||
// return this.play(this.matchFoundSound, false);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// export { AudioManager };
|
10
assets/Script/tool/AudioManager.ts.meta
Normal file
10
assets/Script/tool/AudioManager.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "7574fe4f-7656-4fe0-ab7d-7713209083d9",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
338
assets/Script/tool/GameTool.ts
Normal file
338
assets/Script/tool/GameTool.ts
Normal file
|
@ -0,0 +1,338 @@
|
|||
import GameData from "../GameData";
|
||||
import HttpUtil from "../crypto/HttpUtil";
|
||||
import { StorageMessage } from "./Storage";
|
||||
//最大工具类
|
||||
var GameTool = {
|
||||
_startTime: 0,
|
||||
_endTime: 0,
|
||||
_totalTime: 0,
|
||||
getSeedRandom: function (min, max) {//包含min 不包含max
|
||||
max = max || 1;
|
||||
min = min || 0;
|
||||
GameData._instance.GM_INFO.currSeed = (GameData._instance.GM_INFO.currSeed * 9301 + 49297) % 233280;
|
||||
let rnd = GameData._instance.GM_INFO.currSeed / 233280.0;
|
||||
let tmp = min + rnd * (max - min);
|
||||
return Math.floor(tmp);
|
||||
},
|
||||
//获取userId
|
||||
Authentication(){
|
||||
let name = "user_" + GameData._instance.GM_INFO.gameId;
|
||||
var data = JSON.parse(localStorage.getItem(name));
|
||||
if(data == "undifend" || data==null || data == ""){
|
||||
let url = "http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+location.href;
|
||||
window.location.href = url;
|
||||
}
|
||||
else{
|
||||
StorageMessage.setStorage(name,data);
|
||||
GameData._instance.GM_INFO.userId = parseInt(data.userId);
|
||||
}
|
||||
},
|
||||
|
||||
//埋点上传
|
||||
setGameData(){
|
||||
//GAME_DATA 初始化 每次清零
|
||||
GameData._instance.GAME_DATA = [];
|
||||
GameData._instance.GAME_DATA.push(GameData._instance.CLICK_DATA);
|
||||
//GAME_DATA 赋值后 CLICK_DATA清零
|
||||
GameData._instance.CLICK_init();
|
||||
|
||||
let matchId = this.getMatchId();
|
||||
let postData = {
|
||||
"matchId":matchId,
|
||||
"data": GameData._instance.GAME_DATA
|
||||
};
|
||||
// console.log("上传数据:",postData);
|
||||
HttpUtil.uploadUserLogData(postData,function(){})
|
||||
},
|
||||
|
||||
setRank(){
|
||||
//GAME_DATA 初始化 每次清零
|
||||
let postData = {
|
||||
"type":1,
|
||||
"round":"1",
|
||||
"score": GameData._instance.GM_INFO.score,
|
||||
"success": GameData._instance.GM_INFO.success
|
||||
|
||||
};
|
||||
|
||||
HttpUtil.rankData(1,function(){},postData);
|
||||
},
|
||||
|
||||
//获取matchId 用于上传每次点击数据里面记录id方便查询
|
||||
getMatchId (){
|
||||
let matchId = cc.sys.localStorage.getItem("matchId");
|
||||
if(matchId == "undifend" || matchId==null){
|
||||
matchId = this.setMatchId();
|
||||
}
|
||||
else{
|
||||
if(this.containsNanana(matchId) == true){
|
||||
matchId = this.setMatchId();
|
||||
}
|
||||
else{
|
||||
let char = parseInt(matchId[10]);
|
||||
if(this.level == 1){
|
||||
char += 1;
|
||||
}
|
||||
matchId = matchId.slice(0, 10) + char + "";
|
||||
GameData._instance.GM_INFO.matchId = matchId;
|
||||
cc.sys.localStorage.setItem("matchId",matchId);
|
||||
}
|
||||
}
|
||||
return matchId;
|
||||
},
|
||||
//检测matchId 如果有缓存以前的nanana数据清除
|
||||
containsNanana(str) {
|
||||
return /na/i.test(str);
|
||||
},
|
||||
//重新设置MatchId
|
||||
setMatchId (){
|
||||
// 定义包含可用字符的字符集
|
||||
const characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
||||
// 创建一个数组以保存随机字符
|
||||
const uuidArray = [];
|
||||
// 循环10次 生成10位的UUID
|
||||
for (let i = 0; i < 10; i++) {
|
||||
// 生成随机索引,范围是字符集的长度
|
||||
const randomIndex = Math.floor(Math.random() * characters.length);
|
||||
// 从字符集中获取随机字符
|
||||
const randomChar = characters.charAt(randomIndex);
|
||||
// 将字符添加到数组中
|
||||
uuidArray.push(randomChar);
|
||||
}
|
||||
let data = uuidArray.join('') + 1 + "";
|
||||
cc.sys.localStorage.setItem("matchNumber",1);
|
||||
cc.sys.localStorage.setItem("matchId",data);
|
||||
GameData._instance.GM_INFO.matchId = data;
|
||||
return data;
|
||||
},
|
||||
|
||||
getSetScreenResolutionFlag: function () {
|
||||
let size = cc.winSize;
|
||||
let width = size.width;
|
||||
let height = size.height;
|
||||
if ((height / width) > (16.2 / 9)) return false;
|
||||
return true;
|
||||
},
|
||||
//判断全面屏适配
|
||||
setFit: function (canvas) {
|
||||
let flag = GameTool.getSetScreenResolutionFlag();
|
||||
if (flag) {
|
||||
// console.log("不是全面屏");
|
||||
} else {
|
||||
// console.log("是全面屏");
|
||||
}
|
||||
return flag;
|
||||
},
|
||||
|
||||
getTip: function () {
|
||||
let index = Math.floor(Math.random() * 4) + 1;
|
||||
switch (index) {
|
||||
case 1: {
|
||||
return "根据小球的位置,合理晃动手机,确保小球不掉出木板。"
|
||||
}
|
||||
case 2: {
|
||||
return "根据小球位置控制晃动幅度,过大或过小都不是个好选择。"
|
||||
}
|
||||
case 3: {
|
||||
return "不要被天上掉落的障碍吓到,有时候它反而会帮你保持平衡。"
|
||||
}
|
||||
case 4: {
|
||||
return "尝试着顶开掉落的障碍,是个很酷的玩法。"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
beginTiming: function () {
|
||||
this._startTime = new Date().getTime();
|
||||
},
|
||||
|
||||
endTiming: function () {
|
||||
this._endTime = new Date().getTime();
|
||||
// this._totalTime = endTime - this._startTime;
|
||||
},
|
||||
//如果是判断时常的游戏 调用此方法
|
||||
updateScoreTime: function () {
|
||||
let endTime = new Date().getTime();
|
||||
let tempTime = endTime - this._startTime;
|
||||
if (tempTime < 0 || tempTime > 500) {
|
||||
tempTime = Math.round(cc.director.getAnimationInterval() * 1000);
|
||||
}
|
||||
this._endTime += tempTime / 1000;
|
||||
this._totalTime = this._endTime.toFixed(2);
|
||||
GameData._instance.GM_INFO.currScore = this._totalTime;
|
||||
this._startTime = endTime;
|
||||
},
|
||||
//倒计时调用此方法
|
||||
countDown: function () {
|
||||
this._endTime = new Date().getTime();
|
||||
this._totalTime = Math.floor((this._endTime - this._startTime) / 1000);
|
||||
GameData._instance.GM_INFO.remainingTime = GameData._instance.GM_INFO.totalTime - this._totalTime;
|
||||
},
|
||||
|
||||
getGameInfo: function(node){
|
||||
var jg = false;
|
||||
return jg;
|
||||
},
|
||||
//根据服务器数据重置所需要所有数据
|
||||
reset: function(){
|
||||
// console.log("本地数据丢失,重新启动游戏");
|
||||
cc.director.loadScene('LoadScene');
|
||||
},
|
||||
|
||||
setGameInfo: function(pd){
|
||||
|
||||
},
|
||||
//输入秒,返回需要展示时间格式
|
||||
getTimeMargin:(second) => {
|
||||
let total = second;
|
||||
let hour = Math.floor(total / (60 * 60));//计算整数小时数
|
||||
let afterHour = total - hour * 60 * 60;//取得算出小时数后剩余的秒数
|
||||
let min = Math.floor(afterHour / 60);//计算整数分
|
||||
let afterMin = total - hour * 60 * 60 - min * 60;//取得算出分后剩余的秒数
|
||||
return '剩余:' + hour + ':' + min + ':' + afterMin
|
||||
},
|
||||
|
||||
getTimeMargin2:(second) => {
|
||||
let total = second;
|
||||
let min = null;
|
||||
let afterMin = null;
|
||||
let hour = Math.floor(total / (60 * 60));//计算整数小时数
|
||||
let afterHour = total - hour * 60 * 60;//取得算出小时数后剩余的秒数
|
||||
min = Math.floor(afterHour / 60);//计算整数分
|
||||
if(min < 10) min = "0"+min;
|
||||
afterMin = total - hour * 60 * 60 - min * 60;//取得算出分后剩余的秒数
|
||||
if(afterMin < 10) afterMin = "0" + afterMin;
|
||||
return '剩余:' + min + ':' + afterMin
|
||||
},
|
||||
//将时间转换为59:23
|
||||
getTime: function(time){
|
||||
var label = "";
|
||||
var number_1 = null;
|
||||
var number_2 = null;
|
||||
number_1 = Math.floor(time/60)
|
||||
number_2 = time-number_1*60;
|
||||
if(number_1 < 10){
|
||||
number_1 = "0"+number_1;
|
||||
}
|
||||
if(number_2 < 10){
|
||||
number_2 = "0"+number_2;
|
||||
}
|
||||
label = number_1 + ":" + number_2;
|
||||
return label;
|
||||
},
|
||||
//number 为传进来的数值,type为最多显示几位数
|
||||
getNumber: function(number,type){
|
||||
// console.log(type,"需要转换的数字为:",number);
|
||||
var count = 1000;
|
||||
var place = type - 3;
|
||||
if(number > Math.pow(count,8)*Math.pow(10,place)){
|
||||
if(number/Math.pow(count,8) < 100)
|
||||
number = Math.floor(number/Math.pow(count,8)*10)/10+"S";
|
||||
else
|
||||
number = Math.floor(number/Math.pow(count,8))+"S";
|
||||
}
|
||||
else if(number > Math.pow(count,7)*Math.pow(10,place)){
|
||||
if(number/Math.pow(count,7) < 100)
|
||||
number = Math.floor(number/Math.pow(count,7)*10)/10+"s";
|
||||
else
|
||||
number = Math.floor(number/Math.pow(count,7))+"s";
|
||||
}
|
||||
else if(number > Math.pow(count,6)*Math.pow(10,place)){
|
||||
if(number/Math.pow(count,6) < 100)
|
||||
number = Math.floor(number/Math.pow(count,6)*10)/10+"Q";
|
||||
else
|
||||
number = Math.floor(number/Math.pow(count,6))+"Q";
|
||||
}
|
||||
else if(number > Math.pow(count,5)*Math.pow(10,place)){
|
||||
if(number/Math.pow(count,5) < 100)
|
||||
number = Math.floor(number/Math.pow(count,5)*10)/10+"q";
|
||||
else
|
||||
number = Math.floor(number/Math.pow(count,5))+"q";
|
||||
|
||||
}
|
||||
else if(number > Math.pow(count,4)*Math.pow(10,place)){
|
||||
if(number/Math.pow(count,4) < 100)
|
||||
number = Math.floor(number/Math.pow(count,4)*10)/10+"t";
|
||||
else
|
||||
number = Math.floor(number/Math.pow(count,4))+"t";
|
||||
}
|
||||
else if(number > Math.pow(count,3)*Math.pow(10,place)){
|
||||
if(number/Math.pow(count,3) < 100)
|
||||
number = Math.floor(number/Math.pow(count,3)*10)/10+"b";
|
||||
else
|
||||
number = Math.floor(number/Math.pow(count,3))+"b";
|
||||
}
|
||||
else if(number > Math.pow(count,2)*Math.pow(10,place)){
|
||||
if(number/Math.pow(count,2) < 100)
|
||||
number = Math.floor(number/Math.pow(count,2)*10)/10+"m";
|
||||
else
|
||||
number = Math.floor(number/Math.pow(count,2))+"m";
|
||||
}
|
||||
else if(number > Math.pow(count,1)*Math.pow(10,place)){
|
||||
if(number/Math.pow(count,1) < 100){
|
||||
number = Math.floor(number/Math.pow(count,1)*10)/10+"k";
|
||||
}
|
||||
else
|
||||
number = Math.floor(number/Math.pow(count,1))+"k";
|
||||
}
|
||||
else{
|
||||
number = Math.floor(number/Math.pow(count,0))+"";
|
||||
}
|
||||
// console.log("结果为"+type+"位数",number);
|
||||
return number;
|
||||
},
|
||||
|
||||
begainTiming: function () {
|
||||
this._startTime = new Date().getTime();
|
||||
},
|
||||
|
||||
endTiming2: function () {
|
||||
let endTime = new Date().getTime();
|
||||
this._endTime = endTime;
|
||||
this._totalTime = endTime - this._startTime;
|
||||
},
|
||||
getScoreTime: function () {
|
||||
let endTime = new Date().getTime();
|
||||
let tempTime = endTime - this._startTime;
|
||||
if (tempTime < 0 || tempTime > 500) {
|
||||
tempTime = Math.round(cc.director.getAnimationInterval() * 1000);
|
||||
}
|
||||
GameData._instance.GM_INFO.currScore += tempTime;
|
||||
this._startTime = endTime;
|
||||
},
|
||||
|
||||
getFormatTime: function (time) {
|
||||
let date = new Date();
|
||||
date.setTime(time);
|
||||
let ms = date.getMilliseconds();
|
||||
// let msString = date.getMilliseconds();
|
||||
let msString = null;
|
||||
let secondString = null;
|
||||
let minString = null;
|
||||
msString = Math.floor(ms / 10) % 100;
|
||||
secondString = date.getSeconds();
|
||||
minString = date.getMinutes();
|
||||
if (msString < 10) {
|
||||
msString = "0" + msString;
|
||||
}
|
||||
if (secondString < 10) {
|
||||
secondString = "0" + secondString;
|
||||
}
|
||||
secondString = secondString + ":";
|
||||
|
||||
if (minString < 10) {
|
||||
minString = "0" + minString;
|
||||
}
|
||||
minString = minString + ":";
|
||||
return minString + secondString + msString;
|
||||
|
||||
},
|
||||
pushLister:function () {
|
||||
|
||||
},
|
||||
removeAllLister:function () {
|
||||
|
||||
},
|
||||
|
||||
};
|
||||
export { GameTool };
|
10
assets/Script/tool/GameTool.ts.meta
Normal file
10
assets/Script/tool/GameTool.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "35a73693-1080-4066-85ca-a7fc6eb70cd4",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
46
assets/Script/tool/Notification.ts
Normal file
46
assets/Script/tool/Notification.ts
Normal file
|
@ -0,0 +1,46 @@
|
|||
//全局通知
|
||||
var Notification = {
|
||||
_eventMap: [],
|
||||
on: function (masgId, callback, target) {
|
||||
if (this._eventMap[masgId] === undefined) {
|
||||
this._eventMap[masgId] = [];
|
||||
}
|
||||
this._eventMap[masgId].push({ callback: callback, target: target });
|
||||
},
|
||||
|
||||
emit: function (masgId, parameter) {
|
||||
let array = this._eventMap[masgId];
|
||||
if (array === undefined) return;
|
||||
|
||||
for (let i = 0; i < array.length; i++) {
|
||||
let element = array[i];
|
||||
if (element) element.callback.call(element.target, parameter);
|
||||
}
|
||||
},
|
||||
|
||||
off: function (masgId, callback) {
|
||||
let array = this._eventMap[masgId];
|
||||
if (array === undefined) return;
|
||||
for (let i = 0; i < array.length; i++) {
|
||||
let element = array[i];
|
||||
if (element && element.callback === callback) {
|
||||
array[i] = undefined;
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
offMasgId: function (masgId) {
|
||||
this._eventMap[masgId] = undefined;
|
||||
},
|
||||
|
||||
removeAllMsg: function () {
|
||||
for (let k in this._eventMap) {
|
||||
if (this._eventMap[k]) {
|
||||
this.offMasgId(k);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export { Notification };
|
10
assets/Script/tool/Notification.ts.meta
Normal file
10
assets/Script/tool/Notification.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "bc645fd4-2351-4209-9375-91a48d95ef68",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
27
assets/Script/tool/Storage.ts
Normal file
27
assets/Script/tool/Storage.ts
Normal file
|
@ -0,0 +1,27 @@
|
|||
//缓存浏览器数据
|
||||
var StorageMessage = {
|
||||
getStorage : function(key){
|
||||
var result = null;
|
||||
if(cc.sys.localStorage.getItem(key)){
|
||||
var result = cc.sys.localStorage.getItem(key);
|
||||
}
|
||||
|
||||
if(result){
|
||||
result = JSON.parse(result);
|
||||
}
|
||||
return result;
|
||||
},
|
||||
setStorage : function(key,value){
|
||||
//主动拉起分享接口
|
||||
var temp = JSON.stringify(value);
|
||||
cc.sys.localStorage.setItem(key, temp)
|
||||
},
|
||||
removeStorage : function(key){
|
||||
//主动删除消息接口
|
||||
if(cc.sys.localStorage.getItem(key)){
|
||||
cc.sys.localStorage.removeItem(key)
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export { StorageMessage };
|
10
assets/Script/tool/Storage.ts.meta
Normal file
10
assets/Script/tool/Storage.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "e4f51a65-09ae-4213-ab31-455f81c79189",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
13
assets/Shader.meta
Normal file
13
assets/Shader.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "afa9e39a-94ca-477f-8a2a-25082d9092c3",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
13
assets/animation.meta
Normal file
13
assets/animation.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "7c1d6faa-66b9-4423-aa04-8c38a15768cf",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
13
assets/migration.meta
Normal file
13
assets/migration.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "2e3d6223-9889-4122-8121-c6d837f5367e",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
17
assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js
Normal file
17
assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* This script is automatically generated by Cocos Creator and is only used for projects compatible with the v2.1.0 ~ 2.2.1 version.
|
||||
* You do not need to manually add this script in any other project.
|
||||
* If you don't use cc.Toggle in your project, you can delete this script directly.
|
||||
* If your project is hosted in VCS such as git, submit this script together.
|
||||
*
|
||||
* 此脚本由 Cocos Creator 自动生成,仅用于兼容 v2.1.0 ~ 2.2.1 版本的工程,
|
||||
* 你无需在任何其它项目中手动添加此脚本。
|
||||
* 如果你的项目中没用到 Toggle,可直接删除该脚本。
|
||||
* 如果你的项目有托管于 git 等版本库,请将此脚本一并上传。
|
||||
*/
|
||||
|
||||
if (cc.Toggle) {
|
||||
// Whether to trigger 'toggle' and 'checkEvents' events when modifying 'toggle.isChecked' in the code
|
||||
// 在代码中修改 'toggle.isChecked' 时是否触发 'toggle' 与 'checkEvents' 事件
|
||||
cc.Toggle._triggerEventInScript_isChecked = true;
|
||||
}
|
10
assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js.meta
Normal file
10
assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "7a231473-d1df-4b05-8620-6376c36252c1",
|
||||
"importer": "javascript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
13
assets/music.meta
Normal file
13
assets/music.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "6ebfe2d9-539a-4853-8b16-fca5c89cf2ce",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
BIN
assets/music/dui.mp3
Normal file
BIN
assets/music/dui.mp3
Normal file
Binary file not shown.
8
assets/music/dui.mp3.meta
Normal file
8
assets/music/dui.mp3.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "2.0.3",
|
||||
"uuid": "c2ef963c-d08e-471e-a36e-2b1b4b96ceee",
|
||||
"importer": "audio-clip",
|
||||
"downloadMode": 0,
|
||||
"duration": 0.10449,
|
||||
"subMetas": {}
|
||||
}
|
BIN
assets/music/dui2.mp3
Normal file
BIN
assets/music/dui2.mp3
Normal file
Binary file not shown.
8
assets/music/dui2.mp3.meta
Normal file
8
assets/music/dui2.mp3.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "2.0.3",
|
||||
"uuid": "180c00bb-4b4d-47a6-9bb6-4f437b027dd7",
|
||||
"importer": "audio-clip",
|
||||
"downloadMode": 0,
|
||||
"duration": 0.756,
|
||||
"subMetas": {}
|
||||
}
|
BIN
assets/music/dui3.mp3
Normal file
BIN
assets/music/dui3.mp3
Normal file
Binary file not shown.
8
assets/music/dui3.mp3.meta
Normal file
8
assets/music/dui3.mp3.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "2.0.3",
|
||||
"uuid": "cd5cfffa-111c-40d2-b35e-690fe40c27ed",
|
||||
"importer": "audio-clip",
|
||||
"downloadMode": 0,
|
||||
"duration": 0.261224,
|
||||
"subMetas": {}
|
||||
}
|
BIN
assets/music/jump.mp3
Normal file
BIN
assets/music/jump.mp3
Normal file
Binary file not shown.
8
assets/music/jump.mp3.meta
Normal file
8
assets/music/jump.mp3.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "2.0.3",
|
||||
"uuid": "ca6ad979-5278-4cf4-ac20-fab0752f15c4",
|
||||
"importer": "audio-clip",
|
||||
"downloadMode": 0,
|
||||
"duration": 0.417959,
|
||||
"subMetas": {}
|
||||
}
|
BIN
assets/music/luodi.mp3
Normal file
BIN
assets/music/luodi.mp3
Normal file
Binary file not shown.
8
assets/music/luodi.mp3.meta
Normal file
8
assets/music/luodi.mp3.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "2.0.3",
|
||||
"uuid": "7ec88ffd-9b4c-4850-9538-ed910b0b3a8b",
|
||||
"importer": "audio-clip",
|
||||
"downloadMode": 0,
|
||||
"duration": 0.20898,
|
||||
"subMetas": {}
|
||||
}
|
BIN
assets/music/luodi2.mp3
Normal file
BIN
assets/music/luodi2.mp3
Normal file
Binary file not shown.
8
assets/music/luodi2.mp3.meta
Normal file
8
assets/music/luodi2.mp3.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "2.0.3",
|
||||
"uuid": "5b0eb011-a400-48c4-a2a0-282d6a3bea55",
|
||||
"importer": "audio-clip",
|
||||
"downloadMode": 0,
|
||||
"duration": 0.626939,
|
||||
"subMetas": {}
|
||||
}
|
13
assets/prefab.meta
Normal file
13
assets/prefab.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "bf3935ca-518a-42f4-84e4-ad96badfd1b4",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
362
assets/prefab/block0.prefab
Normal file
362
assets/prefab/block0.prefab
Normal file
|
@ -0,0 +1,362 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block13",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 160,
|
||||
"height": 62
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 160,
|
||||
"height": 68
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "a7194046-2b13-4d9f-99f7-05dd46d7fec7"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -3,
|
||||
"y": 62
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -21,
|
||||
"y": 61
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -45,
|
||||
"y": 57
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -60,
|
||||
"y": 52
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -74,
|
||||
"y": 44
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -80,
|
||||
"y": 35
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": 24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -71,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -60,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -40,
|
||||
"y": 4
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -21,
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 21,
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 45,
|
||||
"y": 5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 60,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 74,
|
||||
"y": 18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 80,
|
||||
"y": 26
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 80,
|
||||
"y": 36
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 78,
|
||||
"y": 40
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 70,
|
||||
"y": 47
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 58,
|
||||
"y": 53
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 29,
|
||||
"y": 60
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 28.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 156,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block0.prefab.meta
Normal file
9
assets/prefab/block0.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "c4dc7b38-a006-4a78-9fff-32a3030daadb",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
495
assets/prefab/block1.prefab
Normal file
495
assets/prefab/block1.prefab
Normal file
|
@ -0,0 +1,495 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block1",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 202,
|
||||
"height": 74
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 202,
|
||||
"height": 74
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "05868c12-96ec-43e3-a081-2d7fd99ec946"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 32
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -1,
|
||||
"y": 37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -11,
|
||||
"y": 32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -38,
|
||||
"y": 26
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -43,
|
||||
"y": 23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -44,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -62,
|
||||
"y": 18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -78,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -84,
|
||||
"y": 9
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -101,
|
||||
"y": 5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -97,
|
||||
"y": -3
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -92,
|
||||
"y": -8
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -68,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -58,
|
||||
"y": -20
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -44,
|
||||
"y": -20
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -44,
|
||||
"y": -23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -39,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -24,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -13,
|
||||
"y": -32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -2,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 3,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 14,
|
||||
"y": -32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 25,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 40,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 45,
|
||||
"y": -23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 45,
|
||||
"y": -20
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 59,
|
||||
"y": -20
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 75,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 85,
|
||||
"y": -10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 92,
|
||||
"y": -8
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 97,
|
||||
"y": -3
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 101,
|
||||
"y": 4
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 99,
|
||||
"y": 6
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 87,
|
||||
"y": 8
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 79,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 76,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 68,
|
||||
"y": 17
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 45,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 44,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 39,
|
||||
"y": 26
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 12,
|
||||
"y": 32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 10,
|
||||
"y": 34
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 35.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": null,
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block1.prefab.meta
Normal file
9
assets/prefab/block1.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "7b3d9148-a6fc-43cf-bf74-495feeaaebc4",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
397
assets/prefab/block10.prefab
Normal file
397
assets/prefab/block10.prefab
Normal file
|
@ -0,0 +1,397 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block10",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 164,
|
||||
"height": 60
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 164,
|
||||
"height": 70
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "4dda9d41-c1f7-4044-a20e-11e243065acd"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 29
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -21,
|
||||
"y": 35
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -46,
|
||||
"y": 31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -49,
|
||||
"y": 29
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -59,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -76,
|
||||
"y": 18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -81,
|
||||
"y": 12
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -82,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -78,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -70,
|
||||
"y": -22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -59,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -49,
|
||||
"y": -29
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -46,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -21,
|
||||
"y": -35
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 21,
|
||||
"y": -35
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 36,
|
||||
"y": -33
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 59,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 76,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 80,
|
||||
"y": -13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 80,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": -2
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 79,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 79,
|
||||
"y": 15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 70,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 59,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 49,
|
||||
"y": 29
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 46,
|
||||
"y": 31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 21,
|
||||
"y": 35
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 33.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 164,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block10.prefab.meta
Normal file
9
assets/prefab/block10.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "c3fca8c1-c07d-4e7d-b746-d719263f9654",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
713
assets/prefab/block11.prefab
Normal file
713
assets/prefab/block11.prefab
Normal file
|
@ -0,0 +1,713 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block11",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 62
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 72
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "3b017b8c-a921-4bba-a65f-e0c107e1b29b"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 35
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -5,
|
||||
"y": 31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -20,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -50,
|
||||
"y": 24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -61,
|
||||
"y": 21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -62,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -68,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -81,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -87,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -99,
|
||||
"y": 2
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -99,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -87,
|
||||
"y": -6
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": -14
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -68,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -62,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -59,
|
||||
"y": -22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -45,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -21,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -5,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 5,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 20,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 50,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 61,
|
||||
"y": -21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 62,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 68,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 76,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 77,
|
||||
"y": -14
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": -12
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 86,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 100,
|
||||
"y": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 99,
|
||||
"y": 2
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 87,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 85,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 83,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 76,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 73,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 68,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 62,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 59,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 45,
|
||||
"y": 25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 21,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 5,
|
||||
"y": 31
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 17
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -100,
|
||||
"y": 21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -100,
|
||||
"y": 18.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -95,
|
||||
"y": 12.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -93,
|
||||
"y": 6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -88,
|
||||
"y": 4.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -80,
|
||||
"y": -3.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -73,
|
||||
"y": -7.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -61,
|
||||
"y": -9.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -60,
|
||||
"y": -11.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -54,
|
||||
"y": -13.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -19,
|
||||
"y": -17.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -4,
|
||||
"y": -21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 4,
|
||||
"y": -21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 19,
|
||||
"y": -17.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 50,
|
||||
"y": -14.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 61,
|
||||
"y": -11.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 62,
|
||||
"y": -9.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 71,
|
||||
"y": -8.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": -2.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 89,
|
||||
"y": 4.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 95,
|
||||
"y": 6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 97,
|
||||
"y": 14.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 100,
|
||||
"y": 18.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 99,
|
||||
"y": 21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 96,
|
||||
"y": 21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 98,
|
||||
"y": 19.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 88,
|
||||
"y": 15.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 77,
|
||||
"y": 5.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 71,
|
||||
"y": 2.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 61,
|
||||
"y": 1.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 58,
|
||||
"y": -1.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 37,
|
||||
"y": -5.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 20,
|
||||
"y": -6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 4,
|
||||
"y": -10.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -5,
|
||||
"y": -10.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -20,
|
||||
"y": -6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -29,
|
||||
"y": -6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -55,
|
||||
"y": -2.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -60,
|
||||
"y": -0.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -61,
|
||||
"y": 1.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -73,
|
||||
"y": 3.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": 8.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -81,
|
||||
"y": 8.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -88,
|
||||
"y": 15.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -98,
|
||||
"y": 19.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -96,
|
||||
"y": 21.5
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 34.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block11.prefab.meta
Normal file
9
assets/prefab/block11.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "a5c74648-56c7-4da2-af9e-0cba1fb2cecf",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
472
assets/prefab/block12.prefab
Normal file
472
assets/prefab/block12.prefab
Normal file
|
@ -0,0 +1,472 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block12",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 60
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 60
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "f4f246ae-19fb-4380-94c5-d40f96bb25e3"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 24
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -22,
|
||||
"y": 30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -44,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -65,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -82,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -100,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -98,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -96,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -85,
|
||||
"y": -12
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -84,
|
||||
"y": -14
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -80,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -73,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -72,
|
||||
"y": -21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -66,
|
||||
"y": -23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -65,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -61,
|
||||
"y": -26
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -56,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -52,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -50,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -47,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -43,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -40,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -32,
|
||||
"y": -21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -12,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 17,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 42,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 52,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 56,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 62,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 63,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 71,
|
||||
"y": -22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 72,
|
||||
"y": -20
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 80,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 81,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 98,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 100,
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 100,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 89,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 86,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 65,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 49,
|
||||
"y": 26
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 22,
|
||||
"y": 30
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 28.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 198,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block12.prefab.meta
Normal file
9
assets/prefab/block12.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "9e93e379-4012-49ed-b651-bc36c8ba1321",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
382
assets/prefab/block2.prefab
Normal file
382
assets/prefab/block2.prefab
Normal file
|
@ -0,0 +1,382 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block2",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 204,
|
||||
"height": 64
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 204,
|
||||
"height": 74
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "47e8d361-5d70-498a-826d-cc1a57622b1e"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 31
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -2,
|
||||
"y": 37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -102,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -100,
|
||||
"y": 5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -96,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -48,
|
||||
"y": -23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -44,
|
||||
"y": -23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -5,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 2,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 42,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 46,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 52,
|
||||
"y": -21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 56,
|
||||
"y": -21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 62,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 66,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 72,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 76,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": -12
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 86,
|
||||
"y": -12
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 92,
|
||||
"y": -9
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 96,
|
||||
"y": -9
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 102,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 102,
|
||||
"y": 5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 48,
|
||||
"y": 23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 44,
|
||||
"y": 23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 5,
|
||||
"y": 37
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 35.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 201,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block2.prefab.meta
Normal file
9
assets/prefab/block2.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "68bd0a7c-c549-4d7f-9f4c-5444f4e66f9d",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
397
assets/prefab/block3.prefab
Normal file
397
assets/prefab/block3.prefab
Normal file
|
@ -0,0 +1,397 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block3",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 156,
|
||||
"height": 60
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 156,
|
||||
"height": 70
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "f68f7543-e2d0-4604-9e37-27d7bcb71692"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 29
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -30,
|
||||
"y": 35
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -31,
|
||||
"y": 33
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -42,
|
||||
"y": 31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -46,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -48,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -69,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -78,
|
||||
"y": 9
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -78,
|
||||
"y": -11
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -76,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -73,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -73,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -69,
|
||||
"y": -21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -67,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -63,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -62,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -48,
|
||||
"y": -32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -32,
|
||||
"y": -35
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 62,
|
||||
"y": -34
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 74,
|
||||
"y": -33
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 78,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 78,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 74,
|
||||
"y": 12
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 66,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 64,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 46,
|
||||
"y": 28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 36,
|
||||
"y": 31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 19,
|
||||
"y": 33
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 17,
|
||||
"y": 35
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 33.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 156,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block3.prefab.meta
Normal file
9
assets/prefab/block3.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "b9212469-b9b0-472a-8483-6833b086ad2a",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
432
assets/prefab/block4.prefab
Normal file
432
assets/prefab/block4.prefab
Normal file
|
@ -0,0 +1,432 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block4",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 204,
|
||||
"height": 74
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 204,
|
||||
"height": 74
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "2d6441bd-556b-4dc2-b08b-5eb60c4b9870"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 31
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -26,
|
||||
"y": 37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -33,
|
||||
"y": 34
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -33,
|
||||
"y": 32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -44,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -45,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": 15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -97,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -102,
|
||||
"y": 6
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -102,
|
||||
"y": 2
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -100,
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -99,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -90,
|
||||
"y": -10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -57,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -54,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -50,
|
||||
"y": -34
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -45,
|
||||
"y": -36
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -19,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 20,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 59,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 77,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 85,
|
||||
"y": -33
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 87,
|
||||
"y": -26
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 89,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 88,
|
||||
"y": -20
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 84,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 80,
|
||||
"y": -13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 96,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 100,
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 102,
|
||||
"y": 2
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 102,
|
||||
"y": 6
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 100,
|
||||
"y": 8
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 86,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 56,
|
||||
"y": 18
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 34,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 1,
|
||||
"y": 36
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 35.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 201,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block4.prefab.meta
Normal file
9
assets/prefab/block4.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "2dfeb128-71cd-49c1-ab46-e36f3cb3ce43",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
407
assets/prefab/block5.prefab
Normal file
407
assets/prefab/block5.prefab
Normal file
|
@ -0,0 +1,407 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block5",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 196,
|
||||
"height": 74
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 196,
|
||||
"height": 74
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "dc730d73-97f3-4877-bc7b-91e550c2b450"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 31
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -6,
|
||||
"y": 37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -48,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -52,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -97,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -98,
|
||||
"y": 4
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -92,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -92,
|
||||
"y": -3
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -89,
|
||||
"y": -6
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -77,
|
||||
"y": -9
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -75,
|
||||
"y": -11
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -63,
|
||||
"y": -14
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -61,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -46,
|
||||
"y": -20
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -44,
|
||||
"y": -22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -29,
|
||||
"y": -26
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -27,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -12,
|
||||
"y": -32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -1,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 57,
|
||||
"y": -37
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 73,
|
||||
"y": -22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 75,
|
||||
"y": -22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 80,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 88,
|
||||
"y": -9
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 90,
|
||||
"y": -9
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 94,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 98,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 97,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 80,
|
||||
"y": 11
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 4,
|
||||
"y": 36
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 35.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 193,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block5.prefab.meta
Normal file
9
assets/prefab/block5.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "18361bc7-7461-4ac4-ac2b-a2e81994a63f",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
492
assets/prefab/block6.prefab
Normal file
492
assets/prefab/block6.prefab
Normal file
|
@ -0,0 +1,492 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block6",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 202,
|
||||
"height": 64
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 202,
|
||||
"height": 64
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "8c4d38f0-a685-4da6-99ed-f42e7e6d32c7"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 27
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -4,
|
||||
"y": 32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -7,
|
||||
"y": 30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -15,
|
||||
"y": 29
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -18,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -26,
|
||||
"y": 26
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -29,
|
||||
"y": 24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -37,
|
||||
"y": 23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -40,
|
||||
"y": 21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -52,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -55,
|
||||
"y": 17
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -63,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -66,
|
||||
"y": 14
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -74,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -77,
|
||||
"y": 11
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -101,
|
||||
"y": 5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -99,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -94,
|
||||
"y": -10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -92,
|
||||
"y": -10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -88,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -86,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -83,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -81,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -77,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -75,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -72,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -70,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -67,
|
||||
"y": -32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 65,
|
||||
"y": -32
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 77,
|
||||
"y": -21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 79,
|
||||
"y": -21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 84,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 87,
|
||||
"y": -13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 89,
|
||||
"y": -13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 93,
|
||||
"y": -8
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 95,
|
||||
"y": -8
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 98,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 98,
|
||||
"y": -2
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 101,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 101,
|
||||
"y": 5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 96,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 88,
|
||||
"y": 8
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 85,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 22,
|
||||
"y": 26
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 19,
|
||||
"y": 28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 7,
|
||||
"y": 30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 4,
|
||||
"y": 32
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 29.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block6.prefab.meta
Normal file
9
assets/prefab/block6.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "a3da91c2-21ef-4ca2-a0c6-cc9e442d0eba",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
387
assets/prefab/block7.prefab
Normal file
387
assets/prefab/block7.prefab
Normal file
|
@ -0,0 +1,387 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block7",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 170,
|
||||
"height": 56
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 170,
|
||||
"height": 56
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "a3e5670a-2dd3-41ce-9106-2c1c34146aea"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 22
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -59,
|
||||
"y": 28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -67,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -70,
|
||||
"y": 15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -72,
|
||||
"y": 14
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -72,
|
||||
"y": 12
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -74,
|
||||
"y": 11
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -74,
|
||||
"y": 9
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -76,
|
||||
"y": 8
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -76,
|
||||
"y": 6
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -78,
|
||||
"y": 5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -85,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -85,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 79,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 85,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 85,
|
||||
"y": -6
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 83,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 80,
|
||||
"y": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 79,
|
||||
"y": 4
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 73,
|
||||
"y": 11
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 72,
|
||||
"y": 15
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 70,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 66,
|
||||
"y": 24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 60,
|
||||
"y": 28
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 26.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 155,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block7.prefab.meta
Normal file
9
assets/prefab/block7.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "bd15e211-f210-4e09-a9ce-1032a18cd7c5",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
417
assets/prefab/block8.prefab
Normal file
417
assets/prefab/block8.prefab
Normal file
|
@ -0,0 +1,417 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block8",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 188,
|
||||
"height": 60
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 188,
|
||||
"height": 60
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "61457753-629c-4e17-8591-0f2acdc19172"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 24
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -52,
|
||||
"y": 30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -53,
|
||||
"y": 28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -65,
|
||||
"y": 23
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -66,
|
||||
"y": 21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -94,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -94,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -91,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -91,
|
||||
"y": -4
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -88,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -86,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -81,
|
||||
"y": -13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": -13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -74,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -72,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -72,
|
||||
"y": -22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -69,
|
||||
"y": -22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -61,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 61,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 79,
|
||||
"y": -13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 81,
|
||||
"y": -13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 86,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 88,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 91,
|
||||
"y": -4
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 91,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 94,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 94,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 92,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 91,
|
||||
"y": 9
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 79,
|
||||
"y": 14
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 78,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 53,
|
||||
"y": 28
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 52,
|
||||
"y": 30
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 28.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 186,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block8.prefab.meta
Normal file
9
assets/prefab/block8.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "01db2f22-3239-47f4-b3f3-600dbd219147",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
713
assets/prefab/block9.prefab
Normal file
713
assets/prefab/block9.prefab
Normal file
|
@ -0,0 +1,713 @@
|
|||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "block9",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 62
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-500,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "icon",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 72
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "3b017b8c-a921-4bba-a65f-e0c107e1b29b"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a6UqDYxsVLWoW5UEe23T9Z",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "2bf4dXY+rJG37abLKiCEh7s",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"label": null,
|
||||
"text": "hello",
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 36
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -5,
|
||||
"y": 31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -20,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -50,
|
||||
"y": 24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -61,
|
||||
"y": 21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -62,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -68,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -81,
|
||||
"y": 13
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -87,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -99,
|
||||
"y": 2
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -99,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -87,
|
||||
"y": -6
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": -14
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -68,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -62,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -59,
|
||||
"y": -22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -45,
|
||||
"y": -25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -21,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -5,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 5,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 20,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 50,
|
||||
"y": -24
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 61,
|
||||
"y": -21
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 62,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 68,
|
||||
"y": -19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 76,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 77,
|
||||
"y": -14
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": -12
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 86,
|
||||
"y": -7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 100,
|
||||
"y": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 99,
|
||||
"y": 2
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 87,
|
||||
"y": 7
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 85,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 83,
|
||||
"y": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 76,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 73,
|
||||
"y": 16
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 68,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 62,
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 59,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 45,
|
||||
"y": 25
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 21,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 5,
|
||||
"y": 31
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PolygonCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 16
|
||||
},
|
||||
"points": [
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -100,
|
||||
"y": 21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -100,
|
||||
"y": 18.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -95,
|
||||
"y": 12.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -93,
|
||||
"y": 6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -88,
|
||||
"y": 4.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -80,
|
||||
"y": -3.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -73,
|
||||
"y": -7.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -61,
|
||||
"y": -9.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -60,
|
||||
"y": -11.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -54,
|
||||
"y": -13.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -19,
|
||||
"y": -17.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -4,
|
||||
"y": -21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 4,
|
||||
"y": -21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 19,
|
||||
"y": -17.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 50,
|
||||
"y": -14.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 61,
|
||||
"y": -11.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 62,
|
||||
"y": -9.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 71,
|
||||
"y": -8.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 82,
|
||||
"y": -2.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 89,
|
||||
"y": 4.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 95,
|
||||
"y": 6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 97,
|
||||
"y": 14.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 100,
|
||||
"y": 18.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 99,
|
||||
"y": 21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 96,
|
||||
"y": 21.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 98,
|
||||
"y": 19.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 88,
|
||||
"y": 15.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 77,
|
||||
"y": 5.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 71,
|
||||
"y": 2.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 61,
|
||||
"y": 1.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 58,
|
||||
"y": -1.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 37,
|
||||
"y": -5.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 20,
|
||||
"y": -6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 4,
|
||||
"y": -10.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -5,
|
||||
"y": -10.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -20,
|
||||
"y": -6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -29,
|
||||
"y": -6.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -55,
|
||||
"y": -2.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -60,
|
||||
"y": -0.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -61,
|
||||
"y": 1.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -73,
|
||||
"y": 3.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -79,
|
||||
"y": 8.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -81,
|
||||
"y": 8.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -88,
|
||||
"y": 15.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -98,
|
||||
"y": 19.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -96,
|
||||
"y": 21.5
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BoxCollider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"tag": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 34.5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 198,
|
||||
"height": 3
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "",
|
||||
"sync": false
|
||||
}
|
||||
]
|
9
assets/prefab/block9.prefab.meta
Normal file
9
assets/prefab/block9.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "84c23402-c471-4ed0-a900-299f655f695a",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
13
assets/res.meta
Normal file
13
assets/res.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "2880dc26-5b38-48bd-baba-daaec97499cb",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
25
assets/resources.meta
Normal file
25
assets/resources.meta
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "52e78fe3-9095-42ad-8e4d-f9bb12dc69ce",
|
||||
"importer": "folder",
|
||||
"isBundle": true,
|
||||
"bundleName": "resources",
|
||||
"priority": 8,
|
||||
"compressionType": {
|
||||
"web-mobile": "default",
|
||||
"wechatgame": "default"
|
||||
},
|
||||
"optimizeHotUpdate": {
|
||||
"web-mobile": false,
|
||||
"wechatgame": false
|
||||
},
|
||||
"inlineSpriteFrames": {
|
||||
"web-mobile": false,
|
||||
"wechatgame": false
|
||||
},
|
||||
"isRemoteBundle": {
|
||||
"web-mobile": false,
|
||||
"wechatgame": true
|
||||
},
|
||||
"subMetas": {}
|
||||
}
|
13
assets/resources/Rank.meta
Normal file
13
assets/resources/Rank.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "151ba27d-64ef-4438-b0bc-e00e7c0b919f",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
146
assets/resources/Rank/rankUI.plist
Normal file
146
assets/resources/Rank/rankUI.plist
Normal file
|
@ -0,0 +1,146 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>frames</key>
|
||||
<dict>
|
||||
<key>icon.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{64,64}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{64,64}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{821,137},{64,64}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>rank_Item.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{750,94}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{750,94}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,123},{750,94}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>rank_Self.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{750,120}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{750,120}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,1},{750,120}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>rank_icon1.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{66,66}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{66,66}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{753,109},{66,66}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>rank_icon2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{66,66}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{66,66}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{853,1},{66,66}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>rank_icon3.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{66,66}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{66,66}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{853,69},{66,66}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>rank_phoneBg.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{98,106}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{98,106}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{753,1},{98,106}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>rank_share.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{36,36}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{36,36}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{753,177},{36,36}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>metadata</key>
|
||||
<dict>
|
||||
<key>format</key>
|
||||
<integer>3</integer>
|
||||
<key>pixelFormat</key>
|
||||
<string>RGBA8888</string>
|
||||
<key>premultiplyAlpha</key>
|
||||
<false/>
|
||||
<key>realTextureFileName</key>
|
||||
<string>rankUI.png</string>
|
||||
<key>size</key>
|
||||
<string>{920,218}</string>
|
||||
<key>smartupdate</key>
|
||||
<string>$TexturePacker:SmartUpdate:6c90cab7b9068b802a0c8c37eaa7bd60:2843afc010c6fbe067e10d062885419c:e78f5013a428c1be0767af4d62c87be1$</string>
|
||||
<key>textureFileName</key>
|
||||
<string>rankUI.png</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
197
assets/resources/Rank/rankUI.plist.meta
Normal file
197
assets/resources/Rank/rankUI.plist.meta
Normal file
|
@ -0,0 +1,197 @@
|
|||
{
|
||||
"ver": "1.2.6",
|
||||
"uuid": "b1569e40-4616-4566-ac51-e49072a7864c",
|
||||
"importer": "asset",
|
||||
"rawTextureUuid": "7218ca9c-d570-4a49-83c6-c06ea8ae8841",
|
||||
"size": {
|
||||
"width": 920,
|
||||
"height": 218
|
||||
},
|
||||
"type": "Texture Packer",
|
||||
"subMetas": {
|
||||
"icon.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "a5f955c4-a4a7-42f1-8025-bdd3b4d24a77",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "7218ca9c-d570-4a49-83c6-c06ea8ae8841",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 821,
|
||||
"trimY": 137,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"rawWidth": 64,
|
||||
"rawHeight": 64,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"rank_Item.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "95180df0-ea1e-4801-bc1c-f6645acbe701",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "7218ca9c-d570-4a49-83c6-c06ea8ae8841",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 1,
|
||||
"trimY": 123,
|
||||
"width": 750,
|
||||
"height": 94,
|
||||
"rawWidth": 750,
|
||||
"rawHeight": 94,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"rank_Self.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "5a7003f9-9012-4d22-af3a-5ee2872219f0",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "7218ca9c-d570-4a49-83c6-c06ea8ae8841",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 1,
|
||||
"trimY": 1,
|
||||
"width": 750,
|
||||
"height": 120,
|
||||
"rawWidth": 750,
|
||||
"rawHeight": 120,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"rank_icon1.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "d91cdea4-11b5-4308-8295-01e4c8535e1c",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "7218ca9c-d570-4a49-83c6-c06ea8ae8841",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 753,
|
||||
"trimY": 109,
|
||||
"width": 66,
|
||||
"height": 66,
|
||||
"rawWidth": 66,
|
||||
"rawHeight": 66,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"rank_icon2.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "a3c76285-5e54-410c-bd72-577d41e53d25",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "7218ca9c-d570-4a49-83c6-c06ea8ae8841",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 853,
|
||||
"trimY": 1,
|
||||
"width": 66,
|
||||
"height": 66,
|
||||
"rawWidth": 66,
|
||||
"rawHeight": 66,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"rank_icon3.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "1c6c147e-f416-4399-a911-db3b6e337904",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "7218ca9c-d570-4a49-83c6-c06ea8ae8841",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 853,
|
||||
"trimY": 69,
|
||||
"width": 66,
|
||||
"height": 66,
|
||||
"rawWidth": 66,
|
||||
"rawHeight": 66,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"rank_phoneBg.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "0fb3953f-d47d-4acf-a855-3d324321c0fa",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "7218ca9c-d570-4a49-83c6-c06ea8ae8841",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 753,
|
||||
"trimY": 1,
|
||||
"width": 98,
|
||||
"height": 106,
|
||||
"rawWidth": 98,
|
||||
"rawHeight": 106,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"rank_share.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "4bfd3c3f-5ea3-4a16-ace3-bbc81afd94e1",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "7218ca9c-d570-4a49-83c6-c06ea8ae8841",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 753,
|
||||
"trimY": 177,
|
||||
"width": 36,
|
||||
"height": 36,
|
||||
"rawWidth": 36,
|
||||
"rawHeight": 36,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user