This commit is contained in:
2024-05-01 19:13:01 +08:00
parent cf008327aa
commit 80a32d9b1b
150 changed files with 8561 additions and 5045 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -1,5 +1,5 @@
{ {
"image": { "image": {
"type": "texture" "type": "sprite-frame"
} }
} }

10
.gitignore vendored
View File

@@ -12,13 +12,3 @@ native
# NPM # NPM
#////////////////////////// #//////////////////////////
node_modules/ node_modules/
#//////////////////////////
# VSCode
#//////////////////////////
.vscode/
#//////////////////////////
# WebStorm
#//////////////////////////
.idea/

8
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

62
.idea/codeStyles/Project.xml generated Normal file
View File

@@ -0,0 +1,62 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<option name="LINE_SEPARATOR" value="&#10;" />
<HTMLCodeStyleSettings>
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
</HTMLCodeStyleSettings>
<JSCodeStyleSettings version="0">
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
<option name="FORCE_SEMICOLON_STYLE" value="true" />
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
<option name="USE_DOUBLE_QUOTES" value="false" />
<option name="FORCE_QUOTE_STYlE" value="true" />
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="SPACES_WITHIN_IMPORTS" value="true" />
</JSCodeStyleSettings>
<TypeScriptCodeStyleSettings version="0">
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
<option name="FORCE_SEMICOLON_STYLE" value="true" />
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
<option name="USE_DOUBLE_QUOTES" value="false" />
<option name="FORCE_QUOTE_STYlE" value="true" />
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="SPACES_WITHIN_IMPORTS" value="true" />
</TypeScriptCodeStyleSettings>
<VueCodeStyleSettings>
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
</VueCodeStyleSettings>
<codeStyleSettings language="HTML">
<option name="SOFT_MARGINS" value="100" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="JavaScript">
<option name="SOFT_MARGINS" value="100" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="TypeScript">
<option name="SOFT_MARGINS" value="100" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="Vue">
<option name="SOFT_MARGINS" value="100" />
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
</code_scheme>
</component>

5
.idea/codeStyles/codeStyleConfig.xml generated Normal file
View File

@@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>

View File

@@ -0,0 +1,7 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="Stylelint" enabled="true" level="ERROR" enabled_by_default="true" />
</profile>
</component>

12
.idea/jdt-fish-client.iml generated Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/jsLibraryMappings.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<includedPredefinedLibrary name="Node.js Core" />
</component>
</project>

6
.idea/jsLinters/eslint.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EslintConfiguration">
<option name="fix-on-save" value="true" />
</component>
</project>

9
.idea/misc.xml generated Normal file
View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownSettings">
<option name="fileGroupingEnabled" value="true" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/jdt-fish-client.iml" filepath="$PROJECT_DIR$/.idea/jdt-fish-client.iml" />
</modules>
</component>
</project>

6
.idea/prettier.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PrettierConfiguration">
<option name="myConfigurationMode" value="AUTOMATIC" />
</component>
</project>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

BIN
assets/.DS_Store vendored

Binary file not shown.

Binary file not shown.

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Click Effect", "_name": "Click Effect",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Click Effect", "_name": "Click Effect",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -55,6 +55,7 @@
"y": 1, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -62,15 +63,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -79,9 +78,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -104,9 +103,7 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": null,
"__uuid__": "7f560c03-1db2-49db-abb7-65e14eed3ef5"
},
"_id": "" "_id": ""
}, },
{ {
@@ -117,6 +114,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -127,11 +125,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "71a28c77-5924-40de-9a2e-df84682de9a6" "__uuid__": "71a28c77-5924-40de-9a2e-df84682de9a6",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "71a28c77-5924-40de-9a2e-df84682de9a6" "__uuid__": "71a28c77-5924-40de-9a2e-df84682de9a6",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -143,6 +143,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -150,7 +151,8 @@
"__prefab": { "__prefab": {
"__id__": 7 "__id__": 7
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -160,6 +162,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -167,7 +170,6 @@
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 40, "width": 40,
@@ -177,7 +179,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -191,6 +194,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "04Iog1bgRF3oo4bMCXFBTg" "fileId": "04Iog1bgRF3oo4bMCXFBTg",
"instance": null,
"targetOverrides": null
} }
] ]

Binary file not shown.

BIN
assets/FishSingle/fish/pic/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "511b874d-bc3c-4dc0-a237-dcc6aef6dbbd",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "511b874d-bc3c-4dc0-a237-dcc6aef6dbbd@6c48a",
"displayName": "weapon_level_3_0",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "511b874d-bc3c-4dc0-a237-dcc6aef6dbbd",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "511b874d-bc3c-4dc0-a237-dcc6aef6dbbd@f9941",
"displayName": "weapon_level_3_0",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 51,
"height": 69,
"rawWidth": 51,
"rawHeight": 69,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-25.5,
-34.5,
0,
25.5,
-34.5,
0,
-25.5,
34.5,
0,
25.5,
34.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
69,
51,
69,
0,
0,
51,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-25.5,
-34.5,
0
],
"maxPos": [
25.5,
34.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "511b874d-bc3c-4dc0-a237-dcc6aef6dbbd@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "511b874d-bc3c-4dc0-a237-dcc6aef6dbbd@f9941"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "7ef4a8d8-105a-4d0b-90e7-28f3e1643d60",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "7ef4a8d8-105a-4d0b-90e7-28f3e1643d60@6c48a",
"displayName": "weapon_level_4_0",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "7ef4a8d8-105a-4d0b-90e7-28f3e1643d60",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "7ef4a8d8-105a-4d0b-90e7-28f3e1643d60@f9941",
"displayName": "weapon_level_4_0",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 54,
"height": 71,
"rawWidth": 54,
"rawHeight": 71,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-27,
-35.5,
0,
27,
-35.5,
0,
-27,
35.5,
0,
27,
35.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
71,
54,
71,
0,
0,
54,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-27,
-35.5,
0
],
"maxPos": [
27,
35.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "7ef4a8d8-105a-4d0b-90e7-28f3e1643d60@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "7ef4a8d8-105a-4d0b-90e7-28f3e1643d60@f9941"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "c6812ce7-61f0-40f9-aa8f-d1121cc713df",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c6812ce7-61f0-40f9-aa8f-d1121cc713df@6c48a",
"displayName": "weapon_level_5_0",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "c6812ce7-61f0-40f9-aa8f-d1121cc713df",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c6812ce7-61f0-40f9-aa8f-d1121cc713df@f9941",
"displayName": "weapon_level_5_0",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 57,
"height": 75,
"rawWidth": 57,
"rawHeight": 75,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-28.5,
-37.5,
0,
28.5,
-37.5,
0,
-28.5,
37.5,
0,
28.5,
37.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
75,
57,
75,
0,
0,
57,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-28.5,
-37.5,
0
],
"maxPos": [
28.5,
37.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c6812ce7-61f0-40f9-aa8f-d1121cc713df@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c6812ce7-61f0-40f9-aa8f-d1121cc713df@f9941"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "62538856-6491-4ae4-a146-7a5d73c776e6",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "62538856-6491-4ae4-a146-7a5d73c776e6@6c48a",
"displayName": "weapon_level_6_0",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "62538856-6491-4ae4-a146-7a5d73c776e6",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "62538856-6491-4ae4-a146-7a5d73c776e6@f9941",
"displayName": "weapon_level_6_0",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 59,
"height": 80,
"rawWidth": 59,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-29.5,
-40,
0,
29.5,
-40,
0,
-29.5,
40,
0,
29.5,
40,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
80,
59,
80,
0,
0,
59,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-29.5,
-40,
0
],
"maxPos": [
29.5,
40,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "62538856-6491-4ae4-a146-7a5d73c776e6@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "62538856-6491-4ae4-a146-7a5d73c776e6@f9941"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "2d2df4eb-a4f1-4dfc-8a3b-fcbe190084b5",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2d2df4eb-a4f1-4dfc-8a3b-fcbe190084b5@6c48a",
"displayName": "weapon_level_7_0",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "2d2df4eb-a4f1-4dfc-8a3b-fcbe190084b5",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "2d2df4eb-a4f1-4dfc-8a3b-fcbe190084b5@f9941",
"displayName": "weapon_level_7_0",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 63,
"height": 87,
"rawWidth": 63,
"rawHeight": 87,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-31.5,
-43.5,
0,
31.5,
-43.5,
0,
-31.5,
43.5,
0,
31.5,
43.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
87,
63,
87,
0,
0,
63,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-31.5,
-43.5,
0
],
"maxPos": [
31.5,
43.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2d2df4eb-a4f1-4dfc-8a3b-fcbe190084b5@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "2d2df4eb-a4f1-4dfc-8a3b-fcbe190084b5@f9941"
}
}

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish1", "_name": "Fish1",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish1", "_name": "Fish1",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "93c2f724-ed94-4f0c-a8ca-7f6a303c15be@9755b" "__uuid__": "93c2f724-ed94-4f0c-a8ca-7f6a303c15be@9755b",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "93c2f724-ed94-4f0c-a8ca-7f6a303c15be" "__uuid__": "93c2f724-ed94-4f0c-a8ca-7f6a303c15be",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "f0d73212-6204-4066-a320-9f69893989cd" "__uuid__": "f0d73212-6204-4066-a320-9f69893989cd",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "f0d73212-6204-4066-a320-9f69893989cd" "__uuid__": "f0d73212-6204-4066-a320-9f69893989cd",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 1,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 1,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 72, "width": 72,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish10", "_name": "Fish10",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish10", "_name": "Fish10",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "d2126827-fe71-4739-9c2e-eead63785b23@e6f1d" "__uuid__": "d2126827-fe71-4739-9c2e-eead63785b23@e6f1d",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "d2126827-fe71-4739-9c2e-eead63785b23" "__uuid__": "d2126827-fe71-4739-9c2e-eead63785b23",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "e17a527d-4428-40a7-9683-7ad523432897" "__uuid__": "e17a527d-4428-40a7-9683-7ad523432897",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "e17a527d-4428-40a7-9683-7ad523432897" "__uuid__": "e17a527d-4428-40a7-9683-7ad523432897",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 10,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 10,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 118, "width": 118,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish11", "_name": "Fish11",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish11", "_name": "Fish11",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "065231ca-a207-4363-bba0-7786e89733cc@5a942" "__uuid__": "065231ca-a207-4363-bba0-7786e89733cc@5a942",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "065231ca-a207-4363-bba0-7786e89733cc" "__uuid__": "065231ca-a207-4363-bba0-7786e89733cc",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "5d6f772a-d206-41b3-88d7-af08f2a9c337" "__uuid__": "5d6f772a-d206-41b3-88d7-af08f2a9c337",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "5d6f772a-d206-41b3-88d7-af08f2a9c337" "__uuid__": "5d6f772a-d206-41b3-88d7-af08f2a9c337",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 11,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 11,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 106, "width": 106,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish12", "_name": "Fish12",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish12", "_name": "Fish12",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "2e4e01b9-8a30-4d74-8aed-1b2704a795cc@f3e0e" "__uuid__": "2e4e01b9-8a30-4d74-8aed-1b2704a795cc@f3e0e",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "2e4e01b9-8a30-4d74-8aed-1b2704a795cc" "__uuid__": "2e4e01b9-8a30-4d74-8aed-1b2704a795cc",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "71cb744b-ea83-4d5a-8516-215e397dfdaa" "__uuid__": "71cb744b-ea83-4d5a-8516-215e397dfdaa",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "71cb744b-ea83-4d5a-8516-215e397dfdaa" "__uuid__": "71cb744b-ea83-4d5a-8516-215e397dfdaa",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 12,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 12,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 140, "width": 140,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish13", "_name": "Fish13",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish13", "_name": "Fish13",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 2,
"y": 1, "y": 2,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "352c9803-6c53-4d8f-ba10-deec62a91cda@11aa1" "__uuid__": "352c9803-6c53-4d8f-ba10-deec62a91cda@11aa1",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "352c9803-6c53-4d8f-ba10-deec62a91cda" "__uuid__": "352c9803-6c53-4d8f-ba10-deec62a91cda",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "42b329aa-ff32-47cd-8b3c-88b068c0dfb3" "__uuid__": "42b329aa-ff32-47cd-8b3c-88b068c0dfb3",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "42b329aa-ff32-47cd-8b3c-88b068c0dfb3" "__uuid__": "42b329aa-ff32-47cd-8b3c-88b068c0dfb3",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 13,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 13,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 187, "width": 187,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish14", "_name": "Fish14",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish14", "_name": "Fish14",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "3b3e5578-dce9-43ce-a813-9a37e0d45e48@40c7c" "__uuid__": "3b3e5578-dce9-43ce-a813-9a37e0d45e48@40c7c",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "3b3e5578-dce9-43ce-a813-9a37e0d45e48" "__uuid__": "3b3e5578-dce9-43ce-a813-9a37e0d45e48",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "9c12558b-de44-410f-b49f-5853230941b1" "__uuid__": "9c12558b-de44-410f-b49f-5853230941b1",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "9c12558b-de44-410f-b49f-5853230941b1" "__uuid__": "9c12558b-de44-410f-b49f-5853230941b1",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 14,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 14,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 72, "width": 72,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish15", "_name": "Fish15",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish15", "_name": "Fish15",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 2,
"y": 1, "y": 2,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "e42f83bb-200e-445e-a9b5-7dbb8a331f57@4cf03" "__uuid__": "e42f83bb-200e-445e-a9b5-7dbb8a331f57@4cf03",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "e42f83bb-200e-445e-a9b5-7dbb8a331f57" "__uuid__": "e42f83bb-200e-445e-a9b5-7dbb8a331f57",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "69f18979-51b5-47d3-bfb1-0d7df4592a44" "__uuid__": "69f18979-51b5-47d3-bfb1-0d7df4592a44",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "69f18979-51b5-47d3-bfb1-0d7df4592a44" "__uuid__": "69f18979-51b5-47d3-bfb1-0d7df4592a44",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 15,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 15,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 280, "width": 280,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish16", "_name": "Fish16",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish16", "_name": "Fish16",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 2,
"y": 1, "y": 2,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "5be2479e-33c7-4c76-93be-e25b5f6dc729@942cf" "__uuid__": "5be2479e-33c7-4c76-93be-e25b5f6dc729@942cf",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "5be2479e-33c7-4c76-93be-e25b5f6dc729" "__uuid__": "5be2479e-33c7-4c76-93be-e25b5f6dc729",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "71c51c0e-ec84-453b-8eec-797c3380f73c" "__uuid__": "71c51c0e-ec84-453b-8eec-797c3380f73c",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "71c51c0e-ec84-453b-8eec-797c3380f73c" "__uuid__": "71c51c0e-ec84-453b-8eec-797c3380f73c",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 16,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 16,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 340, "width": 340,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish17", "_name": "Fish17",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish17", "_name": "Fish17",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [ "_children": [
{ {
@@ -76,10 +76,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 1.5,
"y": 1, "y": 1.5,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -87,15 +88,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Aura Tail", "_name": "Aura Tail",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
@@ -134,6 +133,7 @@
"y": 1, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -141,15 +141,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 2 "__id__": 2
}, },
@@ -158,9 +156,9 @@
"__id__": 4 "__id__": 4
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -171,7 +169,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b@bd0d8" "__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b@bd0d8",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -186,7 +185,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b" "__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -198,6 +198,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 2 "__id__": 2
}, },
@@ -205,7 +206,8 @@
"__prefab": { "__prefab": {
"__id__": 6 "__id__": 6
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -215,6 +217,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 2 "__id__": 2
}, },
@@ -222,7 +225,6 @@
"__prefab": { "__prefab": {
"__id__": 8 "__id__": 8
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 128, "width": 128,
@@ -232,7 +234,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -246,12 +249,16 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "e9KE2M+HlNGLuowgNFtVvB" "fileId": "e9KE2M+HlNGLuowgNFtVvB",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Aura Middle", "_name": "Aura Middle",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
@@ -290,6 +297,7 @@
"y": 1.4, "y": 1.4,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -297,15 +305,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 10 "__id__": 10
}, },
@@ -314,9 +320,9 @@
"__id__": 12 "__id__": 12
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -327,7 +333,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b@bd0d8" "__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b@bd0d8",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -342,7 +349,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b" "__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -354,6 +362,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 10 "__id__": 10
}, },
@@ -361,7 +370,8 @@
"__prefab": { "__prefab": {
"__id__": 14 "__id__": 14
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -371,6 +381,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 10 "__id__": 10
}, },
@@ -378,7 +389,6 @@
"__prefab": { "__prefab": {
"__id__": 16 "__id__": 16
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 128, "width": 128,
@@ -388,7 +398,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -402,12 +413,16 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "e8yB5mEDdNLacMF2+YdPE2" "fileId": "e8yB5mEDdNLacMF2+YdPE2",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Aura Head", "_name": "Aura Head",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
@@ -446,6 +461,7 @@
"y": 1, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -453,15 +469,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 18 "__id__": 18
}, },
@@ -470,9 +484,9 @@
"__id__": 20 "__id__": 20
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -483,7 +497,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b@bd0d8" "__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b@bd0d8",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -498,7 +513,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b" "__uuid__": "21b441a6-ca90-4dad-a919-b3a4524d720b",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -510,6 +526,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 18 "__id__": 18
}, },
@@ -517,7 +534,8 @@
"__prefab": { "__prefab": {
"__id__": 22 "__id__": 22
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -527,6 +545,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 18 "__id__": 18
}, },
@@ -534,7 +553,6 @@
"__prefab": { "__prefab": {
"__id__": 24 "__id__": 24
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 128, "width": 128,
@@ -544,7 +562,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -558,12 +577,16 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "c8pMDib3FCu60byqzGdcvX" "fileId": "c8pMDib3FCu60byqzGdcvX",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish Tail", "_name": "Fish Tail",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
@@ -605,6 +628,7 @@
"y": 1, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -612,15 +636,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 26 "__id__": 26
}, },
@@ -629,9 +651,9 @@
"__id__": 28 "__id__": 28
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -642,7 +664,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a@3ad0e" "__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a@3ad0e",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -657,7 +680,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a" "__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -669,6 +693,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 26 "__id__": 26
}, },
@@ -679,11 +704,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd" "__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd" "__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -695,6 +722,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 26 "__id__": 26
}, },
@@ -702,7 +730,8 @@
"__prefab": { "__prefab": {
"__id__": 32 "__id__": 32
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -712,6 +741,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 26 "__id__": 26
}, },
@@ -719,7 +749,6 @@
"__prefab": { "__prefab": {
"__id__": 34 "__id__": 34
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 88, "width": 88,
@@ -729,7 +758,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -743,12 +773,16 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "d7fdXt81lDULlkr6FtD9cc" "fileId": "d7fdXt81lDULlkr6FtD9cc",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish Middle", "_name": "Fish Middle",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
@@ -790,6 +824,7 @@
"y": 2.2, "y": 2.2,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -797,15 +832,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 36 "__id__": 36
}, },
@@ -814,9 +847,9 @@
"__id__": 38 "__id__": 38
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -827,7 +860,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "3b3e5578-dce9-43ce-a813-9a37e0d45e48@40c7c" "__uuid__": "3b3e5578-dce9-43ce-a813-9a37e0d45e48@40c7c",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -842,7 +876,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "3b3e5578-dce9-43ce-a813-9a37e0d45e48" "__uuid__": "3b3e5578-dce9-43ce-a813-9a37e0d45e48",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -854,6 +889,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 36 "__id__": 36
}, },
@@ -864,11 +900,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "9c12558b-de44-410f-b49f-5853230941b1" "__uuid__": "9c12558b-de44-410f-b49f-5853230941b1",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "9c12558b-de44-410f-b49f-5853230941b1" "__uuid__": "9c12558b-de44-410f-b49f-5853230941b1",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -880,6 +918,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 36 "__id__": 36
}, },
@@ -887,7 +926,8 @@
"__prefab": { "__prefab": {
"__id__": 42 "__id__": 42
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -897,6 +937,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 36 "__id__": 36
}, },
@@ -904,7 +945,6 @@
"__prefab": { "__prefab": {
"__id__": 44 "__id__": 44
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 72, "width": 72,
@@ -914,7 +954,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -928,12 +969,16 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "0aJ104ErlOB7J60SIDGmL0" "fileId": "0aJ104ErlOB7J60SIDGmL0",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish Head", "_name": "Fish Head",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
@@ -975,6 +1020,7 @@
"y": 1, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -982,15 +1028,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 46 "__id__": 46
}, },
@@ -999,9 +1043,9 @@
"__id__": 48 "__id__": 48
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -1012,7 +1056,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a@3ad0e" "__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a@3ad0e",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -1027,7 +1072,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a" "__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -1039,6 +1085,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 46 "__id__": 46
}, },
@@ -1049,11 +1096,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd" "__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd" "__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -1065,6 +1114,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 46 "__id__": 46
}, },
@@ -1072,7 +1122,8 @@
"__prefab": { "__prefab": {
"__id__": 52 "__id__": 52
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -1082,6 +1133,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 46 "__id__": 46
}, },
@@ -1089,7 +1141,6 @@
"__prefab": { "__prefab": {
"__id__": 54 "__id__": 54
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 88, "width": 88,
@@ -1099,7 +1150,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -1113,12 +1165,16 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "2cGbGc0mNJp6NBBV1eaSjV" "fileId": "2cGbGc0mNJp6NBBV1eaSjV",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
}, },
{ {
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -1129,11 +1185,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "d634b6d3-5dbf-48c9-a0bc-61977878c8e7" "__uuid__": "d634b6d3-5dbf-48c9-a0bc-61977878c8e7",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "d634b6d3-5dbf-48c9-a0bc-61977878c8e7" "__uuid__": "d634b6d3-5dbf-48c9-a0bc-61977878c8e7",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -1145,6 +1203,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -1178,16 +1237,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 17,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 61 "__id__": 61
} },
"fishType": 17,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -1197,14 +1257,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 63 "__id__": 63
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -1214,6 +1275,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -1221,7 +1283,8 @@
"__prefab": { "__prefab": {
"__id__": 65 "__id__": 65
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -1231,6 +1294,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -1238,7 +1302,6 @@
"__prefab": { "__prefab": {
"__id__": 67 "__id__": 67
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 390, "width": 390,
@@ -1248,7 +1311,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -1262,6 +1326,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "16XB8pfHBIELcPmfMvv/nD" "fileId": "16XB8pfHBIELcPmfMvv/nD",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish18", "_name": "Fish18",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish18", "_name": "Fish18",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 2,
"y": 1, "y": 2,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "91a85e7e-2d0a-4294-8cb0-53478537bc55@6e2fd" "__uuid__": "91a85e7e-2d0a-4294-8cb0-53478537bc55@6e2fd",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "91a85e7e-2d0a-4294-8cb0-53478537bc55" "__uuid__": "91a85e7e-2d0a-4294-8cb0-53478537bc55",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "2485429c-f56b-4248-b865-ed51e490c8a8" "__uuid__": "2485429c-f56b-4248-b865-ed51e490c8a8",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "2485429c-f56b-4248-b865-ed51e490c8a8" "__uuid__": "2485429c-f56b-4248-b865-ed51e490c8a8",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 18,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 18,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 160, "width": 160,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

File diff suppressed because it is too large Load Diff

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish2", "_name": "Fish2",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish2", "_name": "Fish2",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "9db8c528-dae8-4e5a-a35b-43406ae12486@a9841" "__uuid__": "9db8c528-dae8-4e5a-a35b-43406ae12486@a9841",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "9db8c528-dae8-4e5a-a35b-43406ae12486" "__uuid__": "9db8c528-dae8-4e5a-a35b-43406ae12486",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "3d05305d-6627-4e0c-9511-cd01676d144c" "__uuid__": "3d05305d-6627-4e0c-9511-cd01676d144c",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "3d05305d-6627-4e0c-9511-cd01676d144c" "__uuid__": "3d05305d-6627-4e0c-9511-cd01676d144c",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 2,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 2,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 82, "width": 82,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish20", "_name": "Fish20",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish20", "_name": "Fish20",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 2,
"y": 1, "y": 2,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "4c39bae7-e304-433f-90d1-b01f8ce1f50d@53e28" "__uuid__": "4c39bae7-e304-433f-90d1-b01f8ce1f50d@53e28",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "4c39bae7-e304-433f-90d1-b01f8ce1f50d" "__uuid__": "4c39bae7-e304-433f-90d1-b01f8ce1f50d",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "27e6df97-4896-42ca-abe6-34554eee08fc" "__uuid__": "27e6df97-4896-42ca-abe6-34554eee08fc",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "27e6df97-4896-42ca-abe6-34554eee08fc" "__uuid__": "27e6df97-4896-42ca-abe6-34554eee08fc",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 20,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 20,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 380, "width": 380,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish24", "_name": "Fish24",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish24", "_name": "Fish24",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [ "_children": [
{ {
@@ -65,6 +65,7 @@
"y": 1, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -72,15 +73,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Sprite", "_name": "Sprite",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
@@ -119,6 +118,7 @@
"y": 1, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -126,15 +126,13 @@
"y": 0, "y": 0,
"z": 90 "z": 90
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 2 "__id__": 2
}, },
@@ -143,9 +141,9 @@
"__id__": 4 "__id__": 4
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -156,7 +154,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "e0530ef6-394e-4c6c-9615-375bc9a13a21@5abcb" "__uuid__": "e0530ef6-394e-4c6c-9615-375bc9a13a21@5abcb",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -171,7 +170,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "e0530ef6-394e-4c6c-9615-375bc9a13a21" "__uuid__": "e0530ef6-394e-4c6c-9615-375bc9a13a21",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -183,6 +183,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 2 "__id__": 2
}, },
@@ -190,7 +191,8 @@
"__prefab": { "__prefab": {
"__id__": 6 "__id__": 6
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -200,6 +202,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 2 "__id__": 2
}, },
@@ -207,7 +210,6 @@
"__prefab": { "__prefab": {
"__id__": 8 "__id__": 8
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 160, "width": 160,
@@ -217,7 +219,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -231,12 +234,16 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "2eGfPyradLS4VS8RlEF/Fb" "fileId": "2eGfPyradLS4VS8RlEF/Fb",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
}, },
{ {
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -270,6 +277,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -280,11 +288,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "063d7bdc-6650-4b40-a7f7-9afc4a3deb4a" "__uuid__": "063d7bdc-6650-4b40-a7f7-9afc4a3deb4a",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "063d7bdc-6650-4b40-a7f7-9afc4a3deb4a" "__uuid__": "063d7bdc-6650-4b40-a7f7-9afc4a3deb4a",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -296,16 +306,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 24,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
} },
"fishType": 24,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -315,14 +326,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 17 "__id__": 17
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -332,6 +344,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -339,7 +352,8 @@
"__prefab": { "__prefab": {
"__id__": 19 "__id__": 19
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -349,6 +363,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -356,7 +371,6 @@
"__prefab": { "__prefab": {
"__id__": 21 "__id__": 21
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 72, "width": 72,
@@ -366,7 +380,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -380,6 +395,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "275EqqIrVC+IeN9rlHGt2L" "fileId": "275EqqIrVC+IeN9rlHGt2L",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish3", "_name": "Fish3",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish3", "_name": "Fish3",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "32f9df4c-ff0f-447a-92f1-3d3aa53e8ff0@0dd99" "__uuid__": "32f9df4c-ff0f-447a-92f1-3d3aa53e8ff0@0dd99",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "32f9df4c-ff0f-447a-92f1-3d3aa53e8ff0" "__uuid__": "32f9df4c-ff0f-447a-92f1-3d3aa53e8ff0",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "b62b9130-675a-45a9-b65e-1b55c5814675" "__uuid__": "b62b9130-675a-45a9-b65e-1b55c5814675",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "b62b9130-675a-45a9-b65e-1b55c5814675" "__uuid__": "b62b9130-675a-45a9-b65e-1b55c5814675",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 3,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 3,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 48, "width": 48,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish4", "_name": "Fish4",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish4", "_name": "Fish4",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "3ccc1345-0250-41f6-8000-e754061ee84d@2ef7d" "__uuid__": "3ccc1345-0250-41f6-8000-e754061ee84d@2ef7d",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "3ccc1345-0250-41f6-8000-e754061ee84d" "__uuid__": "3ccc1345-0250-41f6-8000-e754061ee84d",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "d8996496-648c-4ab9-9268-c561e3f70bcc" "__uuid__": "d8996496-648c-4ab9-9268-c561e3f70bcc",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "d8996496-648c-4ab9-9268-c561e3f70bcc" "__uuid__": "d8996496-648c-4ab9-9268-c561e3f70bcc",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 4,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 4,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 60, "width": 60,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish5", "_name": "Fish5",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish5", "_name": "Fish5",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "ffdb3623-e0fd-4c59-aef5-acdfd6a09d44@43452" "__uuid__": "ffdb3623-e0fd-4c59-aef5-acdfd6a09d44@43452",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "ffdb3623-e0fd-4c59-aef5-acdfd6a09d44" "__uuid__": "ffdb3623-e0fd-4c59-aef5-acdfd6a09d44",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "cdf46818-beeb-4fa6-9de0-03dbb80970d6" "__uuid__": "cdf46818-beeb-4fa6-9de0-03dbb80970d6",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "cdf46818-beeb-4fa6-9de0-03dbb80970d6" "__uuid__": "cdf46818-beeb-4fa6-9de0-03dbb80970d6",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 5,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 5,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 62, "width": 62,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish6", "_name": "Fish6",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish6", "_name": "Fish6",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a@3ad0e" "__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a@3ad0e",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a" "__uuid__": "1992ce6d-8279-48be-a1dd-2f9c3d9e7d6a",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd" "__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd" "__uuid__": "42335d8d-2042-4204-8772-6f3f241cbdbd",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 6,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 6,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 88, "width": 88,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish7", "_name": "Fish7",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish7", "_name": "Fish7",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 1.5,
"y": 1, "y": 1.5,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "0021d952-9879-45ad-a76b-30b82e1c6104@d1ecd" "__uuid__": "0021d952-9879-45ad-a76b-30b82e1c6104@d1ecd",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "0021d952-9879-45ad-a76b-30b82e1c6104" "__uuid__": "0021d952-9879-45ad-a76b-30b82e1c6104",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "4fa328b7-7054-4430-b113-7bab95ac94b3" "__uuid__": "4fa328b7-7054-4430-b113-7bab95ac94b3",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "4fa328b7-7054-4430-b113-7bab95ac94b3" "__uuid__": "4fa328b7-7054-4430-b113-7bab95ac94b3",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 7,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 7,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 106, "width": 106,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish8", "_name": "Fish8",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish8", "_name": "Fish8",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 3,
"y": 1, "y": 3,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "0190f1af-d5b4-4053-8850-ab0e2e0b0bf2@acc0d" "__uuid__": "0190f1af-d5b4-4053-8850-ab0e2e0b0bf2@acc0d",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "0190f1af-d5b4-4053-8850-ab0e2e0b0bf2" "__uuid__": "0190f1af-d5b4-4053-8850-ab0e2e0b0bf2",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "b21b52a9-08e5-4869-89dd-6e1bd2b82ca2" "__uuid__": "b21b52a9-08e5-4869-89dd-6e1bd2b82ca2",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "b21b52a9-08e5-4869-89dd-6e1bd2b82ca2" "__uuid__": "b21b52a9-08e5-4869-89dd-6e1bd2b82ca2",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 8,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 8,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 78, "width": 78,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -3,19 +3,19 @@
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "Fish9", "_name": "Fish9",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_native": "", "_native": "",
"data": { "data": {
"__id__": 1 "__id__": 1
}, },
"optimizationPolicy": 0, "optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false,
"persistent": false "persistent": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Fish9", "_name": "Fish9",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"_parent": null, "_parent": null,
"_children": [], "_children": [],
"_active": true, "_active": true,
@@ -60,10 +60,11 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 1.5,
"y": 1, "y": 1.5,
"z": 1 "z": 1
}, },
"_mobility": 0,
"_layer": 1, "_layer": 1,
"_euler": { "_euler": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -71,15 +72,13 @@
"y": 0, "y": 0,
"z": 0 "z": 0
}, },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -88,9 +87,9 @@
"__id__": 3 "__id__": 3
}, },
"_customMaterial": { "_customMaterial": {
"__uuid__": "fda095cb-831d-4601-ad94-846013963de8" "__uuid__": "fda095cb-831d-4601-ad94-846013963de8",
"__expectedType__": "cc.Material"
}, },
"_visFlags": 0,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
@@ -101,7 +100,8 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "aed1f5f3-0643-4ad1-8536-65d1294b7db1@5f735" "__uuid__": "aed1f5f3-0643-4ad1-8536-65d1294b7db1@5f735",
"__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
@@ -116,7 +116,8 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": { "_atlas": {
"__uuid__": "aed1f5f3-0643-4ad1-8536-65d1294b7db1" "__uuid__": "aed1f5f3-0643-4ad1-8536-65d1294b7db1",
"__expectedType__": "cc.SpriteAtlas"
}, },
"_id": "" "_id": ""
}, },
@@ -128,6 +129,7 @@
"__type__": "cc.BoxCollider2D", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -161,6 +163,7 @@
"__type__": "cc.Animation", "__type__": "cc.Animation",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -171,11 +174,13 @@
"playOnLoad": false, "playOnLoad": false,
"_clips": [ "_clips": [
{ {
"__uuid__": "b1e4a822-98c1-4dcd-8f46-dd524fad6381" "__uuid__": "b1e4a822-98c1-4dcd-8f46-dd524fad6381",
"__expectedType__": "cc.AnimationClip"
} }
], ],
"_defaultClip": { "_defaultClip": {
"__uuid__": "b1e4a822-98c1-4dcd-8f46-dd524fad6381" "__uuid__": "b1e4a822-98c1-4dcd-8f46-dd524fad6381",
"__expectedType__": "cc.AnimationClip"
}, },
"_id": "" "_id": ""
}, },
@@ -187,16 +192,17 @@
"__type__": "bcf7fDIJDhKnaxGPja2YnSj", "__type__": "bcf7fDIJDhKnaxGPja2YnSj",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"fishType": 9,
"speed": 3,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 9 "__id__": 9
} },
"fishType": 9,
"speed": 3,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -206,14 +212,15 @@
"__type__": "ce1d8SdoYxBMoB8LPTW6b6l", "__type__": "ce1d8SdoYxBMoB8LPTW6b6l",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_enabled": true,
"_id": "",
"__prefab": { "__prefab": {
"__id__": 11 "__id__": 11
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -223,6 +230,7 @@
"__type__": "cc.UIOpacity", "__type__": "cc.UIOpacity",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -230,7 +238,8 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"_opacity": 255 "_opacity": 255,
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -240,6 +249,7 @@
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
@@ -247,7 +257,6 @@
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"_priority": 0,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 126, "width": 126,
@@ -257,7 +266,8 @@
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
} },
"_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
@@ -271,6 +281,8 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "famL4PhGRFkopG4SNLzIh+" "fileId": "famL4PhGRFkopG4SNLzIh+",
"instance": null,
"targetOverrides": null
} }
] ]

View File

@@ -1,30 +1,36 @@
import { _decorator, Component, Tween, tween } from 'cc' import { Component, Tween, _decorator, tween } from 'cc'
const { ccclass, property } = _decorator
import { FishInfo } from '../../script/game/config/FishInfo'
import { FishPathInfo } from '../../script/game/config/FishPathInfo' import { FishPathInfo } from '../../script/game/config/FishPathInfo'
import FishManager from '../../script/game/manager/FishManager' import FishManager from '../../script/game/manager/FishManager'
import { FishInfo } from '../../script/game/config/FishInfo' import WsManager from '../../script/game/manager/WsManager'
const { ccclass, property } = _decorator
@ccclass('FishBase') @ccclass('FishBase')
export default class FishBase extends Component { export default class FishBase extends Component {
public fishInfo: FishInfo public fishInfo: FishInfo
public fishType: number = 1 public fishType: number = 1
public blood: number = 1 public fishId: string = ''
public fishPathInfo: FishPathInfo public fishPathInfo: FishPathInfo
public isDead: boolean public isDead: number = 2
onLoad() {} onLoad() {}
start() {} start() {}
public playDeadMv() {
this.isDead = true // 播放死亡动画
public playDeadMv(res: any) {
this.isDead = 1
this.scheduleOnce(() => { this.scheduleOnce(() => {
FishManager.instance.killFish(this) FishManager.instance.killFish(res)
}, 1.5) }, 1)
tween(this.node) tween(this.node)
.repeatForever(tween().by(0.6, { angle: -360 })) .repeatForever(tween().by(0.6, { angle: -360 }))
.start() .start()
} }
onDisable() { onDisable() {
//this.node.stopAllActions();
Tween.stopAllByTarget(this.node) Tween.stopAllByTarget(this.node)
this.unscheduleAllCallbacks() this.unscheduleAllCallbacks()
} }

View File

@@ -1,85 +1,76 @@
import { import { Collider2D, Component, Contact2DType, IPhysics2DContact, Vec2, Vec3, _decorator } from 'cc'
_decorator,
Component, import BulletManager from '../../script/game/manager/BulletManager'
Vec2, import FishNetManager from '../../script/game/manager/FishNetManager'
Node,
Vec3,
error,
Collider2D,
Contact2DType,
IPhysics2DContact,
} from 'cc'
const { ccclass, property } = _decorator
import FishBase from './FishBase' import FishBase from './FishBase'
import FishNetManager from '../../script/game/manager/FishNetManager' import WsManager from '../../script/game/manager/WsManager'
import BulletManager from '../../script/game/manager/BulletManager' import CannonManager from '../../script/game/manager/CannonManager'
import FishUI from './FishUI'
import FishManager from '../../script/game/manager/FishManager'
const { ccclass, property } = _decorator
@ccclass('FishBulletBase') @ccclass('FishBulletBase')
export default class FishBulletBase extends Component { export default class FishBulletBase extends Component {
public bulletType: number = 0 public bulletType: number = 0
public targetP: Vec2 public targetP: Vec2
public _cacheVec2: Vec2 = new Vec2() public _cacheVec2: Vec2 = new Vec2()
public _cacheVec3: Vec3 = new Vec3() public _cacheVec3: Vec3 = new Vec3()
private _collider: Collider2D
private _collider: Collider2D | null = null
private currFish: FishBase | null = null
onLoad() { onLoad() {
WsManager.instance.on(5, this.handelMsg, this)
this._collider = this.getComponent(Collider2D) this._collider = this.getComponent(Collider2D)
if (this._collider) {
this._collider.sensor = true this._collider.sensor = true
//this._collider.on(Contact2DType.PRE_SOLVE, this.onBeginContact, this); this._collider.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this)
// PhysicsSystem2D.instance.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this);
} }
}
start() {} start() {}
onEnable() { onEnable() {
this._collider.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this) if (this._collider) this._collider.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this)
//this._collider.on(Contact2DType.END_CONTACT, this.onBeginContact, this);
} }
onDisable() { onDisable() {
this._collider.off(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this) if (this._collider) this._collider.off(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this)
//this._collider.off(Contact2DType.END_CONTACT, this.onBeginContact, this);
} }
onBeginContact( // 处理碰撞
selfCollider: Collider2D, private handleFishCollision(fish: FishBase | null, contact: IPhysics2DContact | null) {
other: Collider2D, if (fish && fish.isDead === 2) {
contact: IPhysics2DContact | null
) {
// 只在两个碰撞体开始接触时被调用一次
if (other) {
let fish: FishBase = other.getComponent(FishBase)
if (fish && !fish.isDead) {
this.node.getPosition(this._cacheVec3) this.node.getPosition(this._cacheVec3)
this._cacheVec2.x = this._cacheVec3.x this._cacheVec2.x = this._cacheVec3.x
this._cacheVec2.y = this._cacheVec3.y this._cacheVec2.y = this._cacheVec3.y
FishNetManager.instance.addFishNet(this.bulletType, this._cacheVec2) FishNetManager.instance.addFishNet(this.bulletType, this._cacheVec2)
BulletManager.instance.killBullet(this) BulletManager.instance.killBullet(this)
fish.blood -= this.bulletType + 1
// fish.blood -= 100
if (fish.blood <= 0) {
fish.playDeadMv()
}
}
} }
} }
//v2.4代码 // 碰撞检测
onCollisionEnter(other: Node, self: Node) { onBeginContact(selfCollider: Collider2D, other: Collider2D, contact: IPhysics2DContact | null) {
error('onCollisionEnter=FishBulletBase=', other, self) const fish: FishBase | null = other.getComponent(FishBase)
if (other) { WsManager.instance.onSend({
let fish: FishBase = other.getComponent(FishBase) fish_id: fish.fishId,
if (fish && !fish.isDead) { cannon_id: CannonManager.instance.cannonType,
this.node.getPosition(this._cacheVec3) })
this._cacheVec2.x = this._cacheVec3.x this.handleFishCollision(fish, contact)
this._cacheVec2.y = this._cacheVec3.y }
FishNetManager.instance.addFishNet(this.bulletType, this._cacheVec2)
BulletManager.instance.killBullet(this) handelMsg(res: any) {
fish.blood -= this.bulletType + 1 FishUI.instance.refreshScore(res)
// fish.blood -= 100 if (res.fish_status === 1) {
if (fish.blood <= 0) { FishManager.instance.killFish(res)
fish.playDeadMv()
}
}
} }
} }
protected onDestroy(): void {}
} }

View File

@@ -1,28 +1,23 @@
import { import { Animation, CCFloat, CCInteger, Component, Vec2, Vec3, _decorator, log } from 'cc'
_decorator,
Component,
CCInteger,
CCFloat,
Vec2,
Animation,
Vec3,
} from 'cc'
const {ccclass, property} = _decorator import { Logger } from '../../script/engine/utils/Logger'
import MathUtils from '../../script/engine/utils/MathUtils'
import TimeHelper from '../../script/game/utils/TimeHelper'
import FishBase from './FishBase' import FishBase from './FishBase'
import MathUtils from '../../script/engine/utils/MathUtils'
import {Logger} from '../../script/engine/utils/Logger' const { ccclass, property } = _decorator
import TimeHelper from '../../script/game/utils/TimeHelper'
@ccclass('FishMover') @ccclass('FishMover')
export default class FishMover extends Component { export default class FishMover extends Component {
// 鱼类型 // 鱼类型
@property({ type: CCInteger }) @property({ type: CCInteger })
public fishType: number = 1 public fishType: number = 1
// 鱼移动速度 // 鱼移动速度
@property({ type: CCFloat }) @property({ type: CCFloat })
public speed: number = 3 public speed: number = 3
// 下个位置移动点 // 下个位置移动点
private targetMoveIndex: number = 0 private targetMoveIndex: number = 0
// 鱼移动位置 // 鱼移动位置
@@ -39,9 +34,7 @@ export default class FishMover extends Component {
this.targetMoveIndex = 0 this.targetMoveIndex = 0
this.isMoving = true this.isMoving = true
// this.node.getComponent(Animation).play()//v3 当前帧 不能播放 // this.node.getComponent(Animation).play()//v3 当前帧 不能播放
TimeHelper.exeNextFrame(this.node, () => TimeHelper.exeNextFrame(this.node, () => this.node.getComponent(Animation).play())
this.node.getComponent(Animation).play()
)
} }
update(dt) { update(dt) {
@@ -49,88 +42,63 @@ export default class FishMover extends Component {
this.checkMoveBezier() this.checkMoveBezier()
} }
// 检测是否到达目标点
private checkMoveBezier() { private checkMoveBezier() {
if (this.isMoving && !this.getComponent(FishBase).isDead) { if (this.isMoving && this.getComponent(FishBase).isDead === 2) {
this.moveCount++ this.moveCount++
if (this.moveCount >= this.totalTimes) { if (this.moveCount >= this.totalTimes) this.moveCount = this.totalTimes
this.moveCount = this.totalTimes
}
this.moveBezier() this.moveBezier()
} }
} }
// 贝塞尔曲线移动
public moveBezier() { public moveBezier() {
// [warn] [[-632,-230],[-444,-117],[-264,-242]]
// let p0: cc.Vec2 = cc.v2(-632, -230)
// let p1: cc.Vec2 = cc.v2(-444, -117)
// let p2: cc.Vec2 = cc.v2(-264, -242)
if (this.bezierPList.length > this.targetMoveIndex + 2) { if (this.bezierPList.length > this.targetMoveIndex + 2) {
let p0: Vec2 = this.bezierPList[this.targetMoveIndex] const p0: Vec2 = this.bezierPList[this.targetMoveIndex]
let p1: Vec2 = this.bezierPList[this.targetMoveIndex + 1] const p1: Vec2 = this.bezierPList[this.targetMoveIndex + 1]
let p2: Vec2 = this.bezierPList[this.targetMoveIndex + 2] const p2: Vec2 = this.bezierPList[this.targetMoveIndex + 2]
let t: number = this.moveCount / this.totalTimes const t: number = this.moveCount / this.totalTimes
let mx: number = const mx: number = (1 - t) ** 2 * p0.x + 2 * t * (1 - t) * p1.x + t ** 2 * p2.x
Math.pow(1 - t, 2) * p0.x + const my: number = (1 - t) ** 2 * p0.y + 2 * t * (1 - t) * p1.y + t ** 2 * p2.y
2 * t * (1 - t) * p1.x +
Math.pow(t, 2) * p2.x
let my: number =
Math.pow(1 - t, 2) * p0.y +
2 * t * (1 - t) * p1.y +
Math.pow(t, 2) * p2.y
this.node.getPosition(this._vec3Cahce) this.node.getPosition(this._vec3Cahce)
let rad: number = MathUtils.p2pRad( const rad: number = MathUtils.p2pRad(
new Vec2(this._vec3Cahce.x, this._vec3Cahce.y), new Vec2(this._vec3Cahce.x, this._vec3Cahce.y),
new Vec2(mx, my) new Vec2(mx, my),
) )
let rot111: number = MathUtils.radiansToDegrees(rad) const rot111: number = MathUtils.radiansToDegrees(rad)
let rot: number = MathUtils.rotation2Fish(rot111) const rot: number = MathUtils.rotation2Fish(rot111)
if (this.fishType == 7 || this.fishType == 27 || this.fishType == 29) { if (this.fishType === 7 || this.fishType === 27 || this.fishType === 29) {
if (rot > 90 || rot < -90) { if (rot > 90 || rot < -90) {
this.node.getScale(this._vec3Cahce) this.node.getScale(this._vec3Cahce)
if (this._vec3Cahce.x > 0) { if (this._vec3Cahce.x > 0) {
this._vec3Cahce.x = -1 * this._vec3Cahce.x this._vec3Cahce.x = -1 * this._vec3Cahce.x
this.node.setScale(this._vec3Cahce) this.node.setScale(this._vec3Cahce)
} }
} else {
this.node.getScale(this._vec3Cahce)
if (this._vec3Cahce.x < 0) {
this._vec3Cahce.x = -1 * this._vec3Cahce.x
this.node.setScale(this._vec3Cahce)
}
} }
} else if ( } else if (
this.fishType == 9 || this.fishType === 9 ||
this.fishType == 10 || this.fishType === 10 ||
this.fishType == 21 || this.fishType === 21 ||
this.fishType == 28 this.fishType === 28
) { ) {
} else { } else {
// this.node.rotation = rot; //过时
this.node.angle = -rot this.node.angle = -rot
} }
// Logger.log("moveBezier====", rad, rot111, this.fishType, rot) // Logger.log("moveBezier====", rad, rot111, this.fishType, rot)
let moveTimes: number = Math.round(this.speed / this.minSpeed) const moveTimes: number = Math.round(this.speed / this.minSpeed)
for (let i = 0; i < moveTimes; i++) { for (let i = 0; i < moveTimes; i++) {
let speedX: number = this.minSpeed * Math.cos(rad) const speedX: number = this.minSpeed * Math.cos(rad)
let speedY: number = this.minSpeed * Math.sin(rad) const speedY: number = this.minSpeed * Math.sin(rad)
this.node.getPosition(this._vec3Cahce) this.node.getPosition(this._vec3Cahce)
this._vec3Cahce.x += speedX this._vec3Cahce.x += speedX
this._vec3Cahce.y += speedY this._vec3Cahce.y += speedY
this.node.setPosition(this._vec3Cahce) this.node.setPosition(this._vec3Cahce)
if ( if (MathUtils.distance(this._vec3Cahce.x, this._vec3Cahce.y, mx, my) <= this.minSpeed) {
MathUtils.distance(this._vec3Cahce.x, this._vec3Cahce.y, mx, my) <=
this.minSpeed
) {
this.node.setPosition(mx, my) this.node.setPosition(mx, my)
break break
} }
if ( if (
MathUtils.distance( MathUtils.distance(this._vec3Cahce.x, this._vec3Cahce.y, p2.x, p2.y) <=
this._vec3Cahce.x,
this._vec3Cahce.y,
p2.x,
p2.y
) <=
this.minSpeed * 2 this.minSpeed * 2
) { ) {
this.node.setPosition(p2.x, p2.y) this.node.setPosition(p2.x, p2.y)
@@ -140,6 +108,7 @@ export default class FishMover extends Component {
} }
} }
} else { } else {
Logger.log('moveBezier====', 'end')
this.isMoving = false this.isMoving = false
} }
} }
@@ -148,9 +117,10 @@ export default class FishMover extends Component {
this.isMoving = false this.isMoving = false
} }
// 导出贝塞尔曲线配置
public exportBezierConfig() { public exportBezierConfig() {
Logger.warn('exportBezierConfig=') Logger.warn('exportBezierConfig=')
let tempConfig: Array<Array<number>> = [] const tempConfig: Array<Array<number>> = []
for (let i = 0; i < this.bezierPList.length; i++) { for (let i = 0; i < this.bezierPList.length; i++) {
tempConfig[i] = [] tempConfig[i] = []
tempConfig[i].push(Math.floor(this.bezierPList[i].x)) tempConfig[i].push(Math.floor(this.bezierPList[i].x))

View File

@@ -1,14 +1,17 @@
import { _decorator, Component, Tween, tween, Vec3, Vec2 } from 'cc' import { Component, Tween, Vec3, _decorator, tween } from 'cc'
const { ccclass, property } = _decorator
import FishNetManager from '../../script/game/manager/FishNetManager' import FishNetManager from '../../script/game/manager/FishNetManager'
const { ccclass, property } = _decorator
@ccclass('FishNetBase') @ccclass('FishNetBase')
export default class FishNetBase extends Component { export default class FishNetBase extends Component {
public netType: number = 0 public netType: number = 0
private tween: Tween<any> private tween: Tween<any>
private static vec3: Vec3 = new Vec3(2, 2, 1) private static vec3: Vec3 = new Vec3(2, 2, 1)
// 销毁渔网
public playMv() { public playMv() {
this.node.setScale(Vec3.ZERO) this.node.setScale(Vec3.ZERO)
this.tween = tween(this.node) this.tween = tween(this.node)
@@ -19,9 +22,8 @@ export default class FishNetBase extends Component {
}) })
.start() .start()
} }
onDestroy() { onDestroy() {
if (this.tween) { if (this.tween) this.tween.stop()
this.tween.stop()
}
} }
} }

View File

@@ -1,67 +1,55 @@
import { _decorator, Slider, Node, Canvas, instantiate, director } from 'cc' import { Node, Slider, _decorator, instantiate } from 'cc'
const { ccclass, property } = _decorator
import EventManager from '../../script/engine/utils/EventManager'
import DialogBase from '../../script/engine/uicomponent/DialogBase' import DialogBase from '../../script/engine/uicomponent/DialogBase'
import MusicPrefab from '../../script/engine/uicomponent/MusicPrefab' import MusicPrefab from '../../script/engine/uicomponent/MusicPrefab'
import SoundPrefab from '../../script/engine/uicomponent/SoundPrefab' import SoundPrefab from '../../script/engine/uicomponent/SoundPrefab'
import EventManager from '../../script/engine/utils/EventManager'
import PrefabLoader from '../../script/engine/utils/PrefabLoader' import PrefabLoader from '../../script/engine/utils/PrefabLoader'
import { GameConfig } from '../../script/game/config/GameConfig' import { GameConfig } from '../../script/game/config/GameConfig'
const { ccclass, property } = _decorator
@ccclass('FishSetting') @ccclass('FishSetting')
export default class FishSetting extends DialogBase { export default class FishSetting extends DialogBase {
@property({ type: Slider }) @property({ type: Slider })
private musicSlider: Slider | null = null private musicSlider: Slider | null = null
@property({ type: Slider }) @property({ type: Slider })
private soundSlider: Slider | null = null private soundSlider: Slider | null = null
onLoadMe() { onLoadMe() {
EventManager.instance.addSliderEvent( EventManager.instance.addSliderEvent(this.node, this.musicSlider.node, 'onMusicSlider', 0)
this.node, EventManager.instance.addSliderEvent(this.node, this.soundSlider.node, 'onSoundSlider', 0)
this.musicSlider.node,
'onMusicSlider',
0
)
EventManager.instance.addSliderEvent(
this.node,
this.soundSlider.node,
'onSoundSlider',
0
)
this.refresh() this.refresh()
} }
// 音乐
private onMusicSlider(slider: Slider, customEventData) { private onMusicSlider(slider: Slider, customEventData) {
let percent: number = Number(slider.progress.toFixed(3)) const percent: number = Number(slider.progress.toFixed(3))
// let maxMoney: number = Math.max(UserInfoModel.userScore - 10, 0)
// this.nowExchangeNum = Math.floor(maxMoney * this.nowPercent);
// this.refresh();
MusicPrefab.changeVolumn(percent) MusicPrefab.changeVolumn(percent)
this.refresh() this.refresh()
} }
// 声音
private onSoundSlider(slider: Slider, customEventData) { private onSoundSlider(slider: Slider, customEventData) {
let percent: number = Number(slider.progress.toFixed(3)) const percent: number = Number(slider.progress.toFixed(3))
SoundPrefab.changeVolumn(percent) SoundPrefab.changeVolumn(percent)
this.refresh() this.refresh()
} }
// 刷新音乐和声音
private refresh() { private refresh() {
this.musicSlider.progress = MusicPrefab.musicVolumn this.musicSlider.progress = MusicPrefab.musicVolumn
this.soundSlider.progress = SoundPrefab.soundVolumn this.soundSlider.progress = SoundPrefab.soundVolumn
} }
public static show(parentNode: Node = null) { public static show(parentNode: Node = null) {
PrefabLoader.loadPrefab( PrefabLoader.loadPrefab(`${GameConfig.GameName}/game/dialog/FishSetting`, (loadedResource) => {
GameConfig.GameName + '/' + 'game/dialog/FishSetting', if (!parentNode) parentNode = DialogBase.GetRootCanvas()
(loadedResource) => {
if (!parentNode) { const node: Node = instantiate(loadedResource)
parentNode = DialogBase.GetRootCanvas()
}
let node: Node = instantiate(loadedResource)
parentNode.addChild(node) parentNode.addChild(node)
node.setPosition(0, 0) node.setPosition(0, 0)
} })
)
} }
} }

View File

@@ -1,54 +1,55 @@
import { import { Animation, Component, Label, Node, Tween, Vec2, Vec3, _decorator, find, tween } from 'cc'
_decorator,
Component, import CannonManager from '../../script/game/manager/CannonManager'
Label, import FishManager from '../../script/game/manager/FishManager'
Animation,
Node,
Vec2,
Tween,
tween,
Vec3,
} from 'cc'
const { ccclass, property } = _decorator
import FishSetting from './FishSetting' import FishSetting from './FishSetting'
import FishManager from '../../script/game/manager/FishManager' import WsManager from '../../script/game/manager/WsManager'
import CannonManager from '../../script/game/manager/CannonManager'
const { ccclass, property } = _decorator
@ccclass('FishUI') @ccclass('FishUI')
export default class FishUI extends Component { export default class FishUI extends Component {
public static instance: FishUI = null public static instance: FishUI = null
@property({ type: Label }) @property({ type: Label })
private dzScore: Label | null = null private dzScore: Label | null = null
@property({ type: Label }) @property({ type: Label })
private jfScore: Label | null = null private jfScore: Label | null = null
@property({ type: Animation }) @property({ type: Animation })
private clickEffect: Animation | null = null private clickEffect: Animation | null = null
@property({ type: Node }) @property({ type: Node })
private waveEffect: Node | null = null private waveEffect: Node | null = null
// 豆子 // 豆子
public dz_score: number = 100 public dz_score: number = 0
// 积分 // 积分
public jf_score: number = 0 public jf_score: number = 0
private _vec3Cache: Vec3 private _vec3Cache: Vec3
onLoad() { onLoad() {
FishUI.instance = this FishUI.instance = this
this._vec3Cache = new Vec3() this._vec3Cache = new Vec3()
this.clickEffect.node.active = false this.clickEffect.node.active = false
this.waveEffect.active = false this.waveEffect.active = false
this.dzScore = this.node this.dzScore = this.node
.getChildByName('dzScore') .getChildByName('userInfo')
.getChildByName('info')
.getChildByName('dz_fillet')
.getChildByName('dz_text')
.getComponent(Label) as Label .getComponent(Label) as Label
this.jfScore = this.node this.jfScore = this.node
.getChildByName('jfScore') .getChildByName('userInfo')
.getChildByName('info')
.getChildByName('jf_fillet')
.getChildByName('jf_text')
.getComponent(Label) as Label .getComponent(Label) as Label
} }
start() { start() {
this.refreshScore() // this.refreshScore()
// setTimeout(()=>{
// this.playWaveEffect();
// }, 5000)
} }
public playClickEffect(p: Vec2) { public playClickEffect(p: Vec2) {
@@ -88,9 +89,11 @@ export default class FishUI extends Component {
} }
} }
public refreshScore() { public refreshScore(res: any) {
this.dzScore.string = this.dz_score + '' this.dz_score = res.pulse
this.jfScore.string = this.jf_score + '' this.jf_score = res.integral
this.dzScore.string = `${this.dz_score}`
this.jfScore.string = `${this.jf_score}`
} }
private onClickSetting() { private onClickSetting() {

View File

@@ -1,13 +1,4 @@
import { import { _decorator, ScrollView, Prefab, Node, instantiate, Label, Vec3, Animation } from 'cc'
_decorator,
ScrollView,
Prefab,
Node,
instantiate,
Label,
Vec3,
Animation,
} from 'cc'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
import FishBase from './FishBase' import FishBase from './FishBase'
@@ -43,20 +34,14 @@ export default class FishWiki extends DialogBase {
this.scrollView.content.addChild(itemNode) this.scrollView.content.addChild(itemNode)
let fishInfo: FishInfo = FishConfig.config[index] let fishInfo: FishInfo = FishConfig.config[index]
let txtName: Label = itemNode let txtName: Label = itemNode.getChildByName('txtName').getComponent(Label)
.getChildByName('txtName')
.getComponent(Label)
txtName.string = fishInfo.name txtName.string = fishInfo.name
let txtLife: Label = itemNode let txtLife: Label = itemNode.getChildByName('txtLife').getComponent(Label)
.getChildByName('txtLife') txtLife.string = '积分:' + fishInfo.blood + ''
.getComponent(Label)
txtLife.string = 'life:' + fishInfo.blood + ''
let view: Node = itemNode.getChildByName('view') let view: Node = itemNode.getChildByName('view')
view.removeAllChildren() view.removeAllChildren()
let fish: FishBase = FishManager.instance.createFishByType( let fish: FishBase = FishManager.instance.createFishByType(fishInfo.fishType)
fishInfo.fishType
)
view.addChild(fish.node) view.addChild(fish.node)
fish.node.setPosition(0, 0) fish.node.setPosition(0, 0)
@@ -65,9 +50,7 @@ export default class FishWiki extends DialogBase {
//fish.node.setScale(this._vec3Cache); //fish.node.setScale(this._vec3Cache);
//fish.node.getComponent(Animation).play(); //v3 当前帧 不能播放 //fish.node.getComponent(Animation).play(); //v3 当前帧 不能播放
TimeHelper.exeNextFrame(this.node, () => TimeHelper.exeNextFrame(this.node, () => fish.node.getComponent(Animation).play())
fish.node.getComponent(Animation).play()
)
this.scheduleOnce(() => { this.scheduleOnce(() => {
this.initOne(index + 1) this.initOne(index + 1)
}, 0.05) }, 0.05)
@@ -84,7 +67,7 @@ export default class FishWiki extends DialogBase {
let node: Node = instantiate(loadedResource) let node: Node = instantiate(loadedResource)
parentNode.addChild(node) parentNode.addChild(node)
node.setPosition(0, 0) node.setPosition(0, 0)
} },
) )
} }
} }

BIN
assets/FishSingle/pictures/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "cda62680-32c9-4bf8-bdf5-341b6d6f41c3",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "cda62680-32c9-4bf8-bdf5-341b6d6f41c3@6c48a",
"displayName": "avatar",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "cda62680-32c9-4bf8-bdf5-341b6d6f41c3",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "cda62680-32c9-4bf8-bdf5-341b6d6f41c3@f9941",
"displayName": "avatar",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 74,
"height": 77,
"rawWidth": 74,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-37,
-38.5,
0,
37,
-38.5,
0,
-37,
38.5,
0,
37,
38.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
77,
74,
77,
0,
0,
74,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-37,
-38.5,
0
],
"maxPos": [
37,
38.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "cda62680-32c9-4bf8-bdf5-341b6d6f41c3@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "cda62680-32c9-4bf8-bdf5-341b6d6f41c3@f9941"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "962c910f-069b-4a38-9099-4596ed34e91e",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "962c910f-069b-4a38-9099-4596ed34e91e@6c48a",
"displayName": "dz",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "962c910f-069b-4a38-9099-4596ed34e91e",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "962c910f-069b-4a38-9099-4596ed34e91e@f9941",
"displayName": "dz",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 45,
"height": 42,
"rawWidth": 45,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-22.5,
-21,
0,
22.5,
-21,
0,
-22.5,
21,
0,
22.5,
21,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
42,
45,
42,
0,
0,
45,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-22.5,
-21,
0
],
"maxPos": [
22.5,
21,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "962c910f-069b-4a38-9099-4596ed34e91e@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": true,
"redirect": "962c910f-069b-4a38-9099-4596ed34e91e@f9941"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,137 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "38ef2cdf-a945-429d-b703-3c9536058498",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "38ef2cdf-a945-429d-b703-3c9536058498@6c48a",
"displayName": "fillet",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "38ef2cdf-a945-429d-b703-3c9536058498",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "38ef2cdf-a945-429d-b703-3c9536058498@f9941",
"displayName": "fillet",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": 0,
"trimX": 1,
"trimY": 0,
"width": 166,
"height": 36,
"rawWidth": 167,
"rawHeight": 36,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 15,
"borderRight": 15,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-83,
-18,
0,
83,
-18,
0,
-83,
18,
0,
83,
18,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
1,
36,
167,
36,
1,
0,
167,
0
],
"nuv": [
0.005988023952095809,
0,
1,
0,
0.005988023952095809,
1,
1,
1
],
"minPos": [
-83,
-18,
0
],
"maxPos": [
83,
18,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "38ef2cdf-a945-429d-b703-3c9536058498@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "38ef2cdf-a945-429d-b703-3c9536058498@f9941",
"compressSettings": {
"useCompressTexture": false
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 287 KiB

View File

@@ -46,10 +46,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 1920, "width": 1334,
"height": 1080, "height": 750,
"rawWidth": 1920, "rawWidth": 1334,
"rawHeight": 1080, "rawHeight": 750,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
@@ -64,17 +64,17 @@
"meshType": 0, "meshType": 0,
"vertices": { "vertices": {
"rawPosition": [ "rawPosition": [
-960, -667,
-540, -375,
0, 0,
960, 667,
-540, -375,
0, 0,
-960, -667,
540, 375,
0, 0,
960, 667,
540, 375,
0 0
], ],
"indexes": [ "indexes": [
@@ -87,12 +87,12 @@
], ],
"uv": [ "uv": [
0, 0,
1080, 750,
1920, 1334,
1080, 750,
0, 0,
0, 0,
1920, 1334,
0 0
], ],
"nuv": [ "nuv": [
@@ -106,13 +106,13 @@
1 1
], ],
"minPos": [ "minPos": [
-960, -667,
-540, -375,
0 0
], ],
"maxPos": [ "maxPos": [
960, 667,
540, 375,
0 0
] ]
} }

BIN
assets/FishSingle/pictures/haobuyu/fishbg1.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 121 KiB

View File

@@ -2,7 +2,7 @@
"ver": "1.0.26", "ver": "1.0.26",
"importer": "image", "importer": "image",
"imported": true, "imported": true,
"uuid": "66d28bb4-7926-457a-bfdd-352fbdff0612", "uuid": "30514d45-db3b-4904-9e84-5269572856f6",
"files": [ "files": [
".jpg", ".jpg",
".json" ".json"
@@ -10,20 +10,20 @@
"subMetas": { "subMetas": {
"6c48a": { "6c48a": {
"importer": "texture", "importer": "texture",
"uuid": "66d28bb4-7926-457a-bfdd-352fbdff0612@6c48a", "uuid": "30514d45-db3b-4904-9e84-5269572856f6@6c48a",
"displayName": "fishbg1", "displayName": "fishbg1",
"id": "6c48a", "id": "6c48a",
"name": "texture", "name": "texture",
"userData": { "userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "30514d45-db3b-4904-9e84-5269572856f6",
"isUuid": true,
"visible": false,
"minfilter": "linear", "minfilter": "linear",
"magfilter": "linear", "magfilter": "linear",
"wrapModeT": "clamp-to-edge",
"wrapModeS": "clamp-to-edge",
"mipfilter": "none", "mipfilter": "none",
"imageUuidOrDatabaseUri": "66d28bb4-7926-457a-bfdd-352fbdff0612", "anisotropy": 0
"anisotropy": 0,
"isUuid": true,
"visible": false
}, },
"ver": "1.0.22", "ver": "1.0.22",
"imported": true, "imported": true,
@@ -34,7 +34,7 @@
}, },
"f9941": { "f9941": {
"importer": "sprite-frame", "importer": "sprite-frame",
"uuid": "66d28bb4-7926-457a-bfdd-352fbdff0612@f9941", "uuid": "30514d45-db3b-4904-9e84-5269572856f6@f9941",
"displayName": "fishbg1", "displayName": "fishbg1",
"id": "f9941", "id": "f9941",
"name": "spriteFrame", "name": "spriteFrame",
@@ -46,35 +46,32 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 941, "width": 1280,
"height": 529, "height": 720,
"rawWidth": 941, "rawWidth": 1280,
"rawHeight": 529, "rawHeight": 720,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"imageUuidOrDatabaseUri": "66d28bb4-7926-457a-bfdd-352fbdff0612@6c48a",
"packable": true, "packable": true,
"isUuid": true,
"atlasUuid": "",
"pixelsToUnit": 100, "pixelsToUnit": 100,
"pivotX": 0.5, "pivotX": 0.5,
"pivotY": 0.5, "pivotY": 0.5,
"meshType": 0, "meshType": 0,
"vertices": { "vertices": {
"rawPosition": [ "rawPosition": [
-470.5, -640,
-264.5, -360,
0, 0,
470.5, 640,
-264.5, -360,
0, 0,
-470.5, -640,
264.5, 360,
0, 0,
470.5, 640,
264.5, 360,
0 0
], ],
"indexes": [ "indexes": [
@@ -87,12 +84,12 @@
], ],
"uv": [ "uv": [
0, 0,
529, 720,
941, 1280,
529, 720,
0, 0,
0, 0,
941, 1280,
0 0
], ],
"nuv": [ "nuv": [
@@ -106,16 +103,19 @@
1 1
], ],
"minPos": [ "minPos": [
-470.5, -640,
-264.5, -360,
0 0
], ],
"maxPos": [ "maxPos": [
470.5, 640,
264.5, 360,
0 0
] ]
} },
"isUuid": true,
"imageUuidOrDatabaseUri": "30514d45-db3b-4904-9e84-5269572856f6@6c48a",
"atlasUuid": ""
}, },
"ver": "1.0.12", "ver": "1.0.12",
"imported": true, "imported": true,
@@ -128,7 +128,7 @@
"userData": { "userData": {
"type": "sprite-frame", "type": "sprite-frame",
"hasAlpha": false, "hasAlpha": false,
"redirect": "66d28bb4-7926-457a-bfdd-352fbdff0612@f9941", "fixAlphaTransparencyArtifacts": false,
"fixAlphaTransparencyArtifacts": false "redirect": "30514d45-db3b-4904-9e84-5269572856f6@f9941"
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "667dae90-8327-4fd8-b314-c95c92ed1420",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "667dae90-8327-4fd8-b314-c95c92ed1420@6c48a",
"displayName": "jf",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "667dae90-8327-4fd8-b314-c95c92ed1420",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "667dae90-8327-4fd8-b314-c95c92ed1420@f9941",
"displayName": "jf",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 36,
"height": 36,
"rawWidth": 36,
"rawHeight": 36,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-18,
-18,
0,
18,
-18,
0,
-18,
18,
0,
18,
18,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
36,
36,
36,
0,
0,
36,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-18,
-18,
0
],
"maxPos": [
18,
18,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "667dae90-8327-4fd8-b314-c95c92ed1420@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "667dae90-8327-4fd8-b314-c95c92ed1420@f9941"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "f9fc17ee-6006-40dd-8429-f46040b4d56c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f9fc17ee-6006-40dd-8429-f46040b4d56c@6c48a",
"displayName": "userbg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "f9fc17ee-6006-40dd-8429-f46040b4d56c",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "f9fc17ee-6006-40dd-8429-f46040b4d56c@f9941",
"displayName": "userbg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 262,
"height": 90,
"rawWidth": 264,
"rawHeight": 92,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-131,
-45,
0,
131,
-45,
0,
-131,
45,
0,
131,
45,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
1,
91,
263,
91,
1,
1,
263,
1
],
"nuv": [
0.003787878787878788,
0.010869565217391304,
0.9962121212121212,
0.010869565217391304,
0.003787878787878788,
0.9891304347826086,
0.9962121212121212,
0.9891304347826086
],
"minPos": [
-131,
-45,
0
],
"maxPos": [
131,
45,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "f9fc17ee-6006-40dd-8429-f46040b4d56c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f9fc17ee-6006-40dd-8429-f46040b4d56c@f9941"
}
}

View File

@@ -487,7 +487,6 @@
"_batchAsBitmap": false, "_batchAsBitmap": false,
"_id": "", "_id": "",
"_enableOutline": true, "_enableOutline": true,
"_outlineWidth": 3,
"_outlineColor": { "_outlineColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 0, "r": 0,

View File

@@ -549,12 +549,11 @@
"_styleFlags": 0, "_styleFlags": 0,
"_id": "", "_id": "",
"_enableOutline": true, "_enableOutline": true,
"_outlineWidth": 3,
"_outlineColor": { "_outlineColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 0,
"g": 255, "g": 0,
"b": 255, "b": 0,
"a": 255 "a": 255
} }
}, },
@@ -736,12 +735,11 @@
"_styleFlags": 0, "_styleFlags": 0,
"_id": "", "_id": "",
"_enableOutline": true, "_enableOutline": true,
"_outlineWidth": 3,
"_outlineColor": { "_outlineColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 0,
"g": 255, "g": 0,
"b": 255, "b": 0,
"a": 255 "a": 255
} }
}, },

View File

@@ -173,16 +173,14 @@
"_batchAsBitmap": false, "_batchAsBitmap": false,
"_id": "", "_id": "",
"_enableOutline": true, "_enableOutline": true,
"_outlineWidth": 2,
"_outlineColor": { "_outlineColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 0,
"g": 255, "g": 0,
"b": 255, "b": 0,
"a": 255 "a": 255
}, },
"_enableShadow": true, "_enableShadow": true,
"_shadowBlur": 2,
"_shadowOffset": { "_shadowOffset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 2, "x": 2,
@@ -190,9 +188,9 @@
}, },
"_shadowColor": { "_shadowColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 250, "r": 0,
"g": 250, "g": 0,
"b": 250, "b": 0,
"a": 255 "a": 255
} }
}, },

File diff suppressed because it is too large Load Diff

View File

@@ -23,7 +23,7 @@
"_active": true, "_active": true,
"_components": [], "_components": [],
"_prefab": { "_prefab": {
"__id__": 44 "__id__": 52
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -54,7 +54,7 @@
}, },
"autoReleaseAssets": false, "autoReleaseAssets": false,
"_globals": { "_globals": {
"__id__": 53 "__id__": 61
}, },
"_id": "3deca686-356b-4a89-97e0-d255f6a637b7" "_id": "3deca686-356b-4a89-97e0-d255f6a637b7"
}, },
@@ -77,25 +77,25 @@
"__id__": 12 "__id__": 12
}, },
{ {
"__id__": 35 "__id__": 43
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 39 "__id__": 47
}, },
{ {
"__id__": 40 "__id__": 48
}, },
{ {
"__id__": 41 "__id__": 49
}, },
{ {
"__id__": 42 "__id__": 50
}, },
{ {
"__id__": 43 "__id__": 51
} }
], ],
"_prefab": null, "_prefab": null,
@@ -193,7 +193,7 @@
"_priority": -1, "_priority": -1,
"_fov": 60, "_fov": 60,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 803.9871382636657, "_orthoHeight": 627.2953367875648,
"_near": 1, "_near": 1,
"_far": 4096, "_far": 4096,
"_color": { "_color": {
@@ -484,6 +484,24 @@
}, },
{ {
"__id__": 33 "__id__": 33
},
{
"__id__": 35
},
{
"__id__": 36
},
{
"__id__": 37
},
{
"__id__": 38
},
{
"__id__": 39
},
{
"__id__": 41
} }
], ],
"removedComponents": [] "removedComponents": []
@@ -674,6 +692,88 @@
"9686r/7GBC1Jgt/Xl5Wlbk" "9686r/7GBC1Jgt/Xl5Wlbk"
] ]
}, },
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 16
},
"propertyPath": [
"_active"
],
"value": true
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 16
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": -22.359,
"y": -464.755,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 22
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 22
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": -646.5,
"y": -0.10000000149011612,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 40
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "cc.TargetInfo",
"localID": [
"e2Vv1bUelC/7EpoI1XnDNy"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 42
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "cc.TargetInfo",
"localID": [
"c244u/aPRAJrCOXsUYfICO"
]
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "UIRoot", "_name": "UIRoot",
@@ -686,13 +786,13 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 44
}, },
{ {
"__id__": 37 "__id__": 45
}, },
{ {
"__id__": 38 "__id__": 46
} }
], ],
"_prefab": null, "_prefab": null,
@@ -731,7 +831,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 35 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@@ -753,7 +853,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 35 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@@ -783,7 +883,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 35 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@@ -893,13 +993,13 @@
"instance": null, "instance": null,
"targetOverrides": [ "targetOverrides": [
{ {
"__id__": 45 "__id__": 53
}, },
{ {
"__id__": 47 "__id__": 55
}, },
{ {
"__id__": 50 "__id__": 58
} }
], ],
"nestedPrefabInstanceRoots": [ "nestedPrefabInstanceRoots": [
@@ -911,7 +1011,7 @@
{ {
"__type__": "cc.TargetOverrideInfo", "__type__": "cc.TargetOverrideInfo",
"source": { "source": {
"__id__": 40 "__id__": 48
}, },
"sourceInfo": null, "sourceInfo": null,
"propertyPath": [ "propertyPath": [
@@ -921,7 +1021,7 @@
"__id__": 12 "__id__": 12
}, },
"targetInfo": { "targetInfo": {
"__id__": 46 "__id__": 54
} }
}, },
{ {
@@ -936,7 +1036,7 @@
"__id__": 12 "__id__": 12
}, },
"sourceInfo": { "sourceInfo": {
"__id__": 48 "__id__": 56
}, },
"propertyPath": [ "propertyPath": [
"percentLable" "percentLable"
@@ -945,7 +1045,7 @@
"__id__": 12 "__id__": 12
}, },
"targetInfo": { "targetInfo": {
"__id__": 49 "__id__": 57
} }
}, },
{ {
@@ -966,7 +1066,7 @@
"__id__": 12 "__id__": 12
}, },
"sourceInfo": { "sourceInfo": {
"__id__": 51 "__id__": 59
}, },
"propertyPath": [ "propertyPath": [
"bar" "bar"
@@ -975,7 +1075,7 @@
"__id__": 12 "__id__": 12
}, },
"targetInfo": { "targetInfo": {
"__id__": 52 "__id__": 60
} }
}, },
{ {
@@ -993,28 +1093,28 @@
{ {
"__type__": "cc.SceneGlobals", "__type__": "cc.SceneGlobals",
"ambient": { "ambient": {
"__id__": 54 "__id__": 62
}, },
"shadows": { "shadows": {
"__id__": 55 "__id__": 63
}, },
"_skybox": { "_skybox": {
"__id__": 56 "__id__": 64
}, },
"fog": { "fog": {
"__id__": 57 "__id__": 65
}, },
"octree": { "octree": {
"__id__": 58 "__id__": 66
}, },
"skin": { "skin": {
"__id__": 59 "__id__": 67
}, },
"lightProbeInfo": { "lightProbeInfo": {
"__id__": 60 "__id__": 68
}, },
"postSettings": { "postSettings": {
"__id__": 61 "__id__": 69
}, },
"bakedWithStationaryMainLight": false, "bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false "bakedWithHighpLightmap": false

View File

@@ -1,4 +1,5 @@
import DateUtil from '../utils/DateUtil' import DateUtil from '../utils/DateUtil'
import NetConfig from './NetConfig' import NetConfig from './NetConfig'
export default class ManifestConfig { export default class ManifestConfig {
@@ -8,30 +9,28 @@ export default class ManifestConfig {
public static version: string = '1.0.0' // 更新包要更新这里 public static version: string = '1.0.0' // 更新包要更新这里
public static assets: object = {} public static assets: object = {}
public static searchPaths: Array<any> = [] public static searchPaths: Array<any> = []
public static getManifestStr(key: string) { public static getManifestStr(key: string) {
let obj: Object = {} const obj: {
obj['packageUrl'] = `${NetConfig.hotupdateUrl}/hotupdate/${key}/` packageUrl?: string
obj['remoteManifestUrl'] = remoteManifestUrl?: string
NetConfig.hotupdateUrl + remoteVersionUrl?: string
'/hotupdate/' + version?: string
key + assets?: object
'/project.manifest?t=' + searchPaths?: Array<any>
DateUtil.now() } = {}
obj['remoteManifestUrl'] = `${ obj.packageUrl = `${NetConfig.hotupdateUrl}/hotupdate/${key}/`
obj.remoteManifestUrl = `${NetConfig.hotupdateUrl}/hotupdate/${key}/project.manifest?t=${DateUtil.now()}`
obj.remoteManifestUrl = `${
NetConfig.hotupdateUrl NetConfig.hotupdateUrl
}/hotupdate/${key}/project.manifest?t=${DateUtil.now()}` }/hotupdate/${key}/project.manifest?t=${DateUtil.now()}`
obj['remoteVersionUrl'] = obj.remoteVersionUrl = `${NetConfig.hotupdateUrl}/hotupdate/${key}/version.manifest?t=${DateUtil.now()}`
NetConfig.hotupdateUrl + obj.remoteVersionUrl = `${
'/hotupdate/' +
key +
'/version.manifest?t=' +
DateUtil.now()
obj['remoteVersionUrl'] = `${
NetConfig.hotupdateUrl NetConfig.hotupdateUrl
}/hotupdate/${key}/version.manifest?t=${DateUtil.now()}` }/hotupdate/${key}/version.manifest?t=${DateUtil.now()}`
obj['version'] = ManifestConfig.version obj.version = ManifestConfig.version
obj['assets'] = {} obj.assets = {}
obj['searchPaths'] = [] obj.searchPaths = []
return JSON.stringify(obj) return JSON.stringify(obj)
} }
} }

View File

@@ -1,19 +1,14 @@
import { AudioClip } from 'cc' import { AudioClip } from 'cc'
import { GameConfig } from '../../game/config/GameConfig' import { GameConfig } from '../../game/config/GameConfig'
export default class MusicConfig { export default class MusicConfig {
public static musicKey2Path: Map<string, string> = new Map<string, string>() // 资源预加载路径 public static musicKey2Path: Map<string, string> = new Map<string, string>() // 资源预加载路径
public static musicKey2Cache: Map<string, AudioClip> = new Map< public static musicKey2Cache: Map<string, AudioClip> = new Map<string, AudioClip>() // 资源加载后cache路径
string,
AudioClip
>() //资源加载后cache路径
public static init() { public static init() {
if ( if (typeof GameConfig.GameName === 'undefined' || GameConfig.GameName === null) {
typeof GameConfig.GameName === 'undefined' ||
GameConfig.GameName === null
) {
console.error('GameConfig.GameName 未配置!') console.error('GameConfig.GameName 未配置!')
return return
} }
@@ -55,7 +50,7 @@ export default class MusicConfig {
} }
// 音乐要预加载的配置 // 音乐要预加载的配置
for (const key in musicConfig) { for (const key in musicConfig) {
if (musicConfig.hasOwnProperty(key)) { if (Object.prototype.hasOwnProperty.call(musicConfig, key)) {
const path = `${GameConfig.GameName}/${musicConfig[key]}` const path = `${GameConfig.GameName}/${musicConfig[key]}`
MusicConfig.musicKey2Path.set(key, path) MusicConfig.musicKey2Path.set(key, path)
} }

View File

@@ -1,6 +1,8 @@
import { _decorator, Component, instantiate, Label, Node, tween, Vec3 } from 'cc' import { Component, Label, Node, Vec3, _decorator, instantiate, tween } from 'cc'
import PrefabLoader from '../utils/PrefabLoader'
import { GameConfig } from '../../game/config/GameConfig' import { GameConfig } from '../../game/config/GameConfig'
import PrefabLoader from '../utils/PrefabLoader'
import DialogBase from './DialogBase' import DialogBase from './DialogBase'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
@@ -10,8 +12,10 @@ export default class CommonTips extends Component {
public static TipsZorderIndex: number = 999 public static TipsZorderIndex: number = 999
@property({ type: Label }) @property({ type: Label })
txtContent: Label | null = null txtContent: Label | null = null
private tips: string = '' private tips: string = ''
private static showingNameList: Array<string> = [] private static showingNameList: Array<string> = []
onLoad() {} onLoad() {}
start() { start() {
@@ -25,7 +29,7 @@ export default class CommonTips extends Component {
} }
onDestroy() { onDestroy() {
let index: number = CommonTips.showingNameList.indexOf(this.tips) const index: number = CommonTips.showingNameList.indexOf(this.tips)
CommonTips.showingNameList.splice(index, 1) CommonTips.showingNameList.splice(index, 1)
this.unscheduleAllCallbacks() this.unscheduleAllCallbacks()
} }
@@ -35,16 +39,15 @@ export default class CommonTips extends Component {
`${GameConfig.GameName}/share/uicomponent/CommonTips`, `${GameConfig.GameName}/share/uicomponent/CommonTips`,
(loadedResource) => { (loadedResource) => {
parentNode = parentNode || DialogBase.GetRootCanvas() parentNode = parentNode || DialogBase.GetRootCanvas()
if (CommonTips.showingNameList.indexOf(msg) === -1) { if (!CommonTips.showingNameList.includes(msg)) CommonTips.showingNameList.push(msg)
CommonTips.showingNameList.push(msg)
} const dialogNode = instantiate(loadedResource)
let dialogNode = instantiate(loadedResource)
dialogNode.setPosition(0, 0) dialogNode.setPosition(0, 0)
let dialogScript: CommonTips = dialogNode.getComponent(CommonTips) const dialogScript: CommonTips = dialogNode.getComponent(CommonTips)
dialogScript.tips = msg dialogScript.tips = msg
dialogScript.txtContent.string = msg dialogScript.txtContent.string = msg
parentNode.insertChild(dialogNode, CommonTips.TipsZorderIndex) parentNode.insertChild(dialogNode, CommonTips.TipsZorderIndex)
} },
) )
} }
} }

View File

@@ -1,6 +1,8 @@
import { _decorator, Component, instantiate, Node, Prefab, Widget } from 'cc' import { Component, Node, Prefab, Widget, _decorator, instantiate } from 'cc'
import PrefabLoader from '../utils/PrefabLoader'
import { GameConfig } from '../../game/config/GameConfig' import { GameConfig } from '../../game/config/GameConfig'
import PrefabLoader from '../utils/PrefabLoader'
import DialogBase from './DialogBase' import DialogBase from './DialogBase'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
@@ -8,10 +10,13 @@ const { ccclass, property } = _decorator
@ccclass('DarkLayer') @ccclass('DarkLayer')
export default class DarkLayer extends Component { export default class DarkLayer extends Component {
private static prefab: Prefab private static prefab: Prefab
onLoad() { onLoad() {
this.getComponent(Widget).target = DialogBase.GetRootCanvas() this.getComponent(Widget).target = DialogBase.GetRootCanvas()
} }
start() {} start() {}
public static preLoad(): Promise<void> { public static preLoad(): Promise<void> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PrefabLoader.loadPrefab( PrefabLoader.loadPrefab(
@@ -19,12 +24,13 @@ export default class DarkLayer extends Component {
(loadedResource) => { (loadedResource) => {
DarkLayer.prefab = loadedResource DarkLayer.prefab = loadedResource
resolve() resolve()
} },
) )
}) })
} }
public static getDarkLayer() { public static getDarkLayer() {
let dialogNode: Node = instantiate(DarkLayer.prefab) const dialogNode: Node = instantiate(DarkLayer.prefab)
return dialogNode return dialogNode
} }
} }

View File

@@ -1,7 +1,9 @@
import { _decorator, Component, Node, Widget } from 'cc' import { Component, Node, Widget, _decorator } from 'cc'
import DarkLayer from './DarkLayer'
import { UIRoot } from '../../game/utils/UIRoot' import { UIRoot } from '../../game/utils/UIRoot'
import DarkLayer from './DarkLayer'
const { ccclass } = _decorator const { ccclass } = _decorator
@ccclass('DialogBase') @ccclass('DialogBase')
@@ -16,11 +18,12 @@ export default class DialogBase extends Component {
// return DialogBase._canvas; // return DialogBase._canvas;
return UIRoot.Instance.node return UIRoot.Instance.node
} }
onLoad() { onLoad() {
DialogBase.LocalZOrder += 1 DialogBase.LocalZOrder += 1
let closeLayer: Node = this.node.getChildByName('closeLayer') const closeLayer: Node = this.node.getChildByName('closeLayer')
if (closeLayer) { if (closeLayer) {
let closeLayerWidget: Widget = closeLayer.getComponent(Widget) const closeLayerWidget: Widget = closeLayer.getComponent(Widget)
if (closeLayerWidget) { if (closeLayerWidget) {
closeLayerWidget.target = DialogBase.GetRootCanvas() closeLayerWidget.target = DialogBase.GetRootCanvas()
closeLayerWidget.left = 0 closeLayerWidget.left = 0
@@ -37,11 +40,8 @@ export default class DialogBase extends Component {
start(isPlayMv: boolean = false) { start(isPlayMv: boolean = false) {
this.darkLayer = DarkLayer.getDarkLayer() this.darkLayer = DarkLayer.getDarkLayer()
this.node.insertChild(this.darkLayer, 0) // this.node.addChild(this.darkLayer, -1); this.node.insertChild(this.darkLayer, 0) // this.node.addChild(this.darkLayer, -1);
if (isPlayMv) { if (isPlayMv) this.node.setScale(0, 0)
this.node.setScale(0, 0) else this.onStartMe()
} else {
this.onStartMe()
}
} }
onStartMe() {} onStartMe() {}

View File

@@ -1,6 +1,8 @@
import { _decorator, Component, instantiate, Node, Prefab, Quat, Vec3 } from 'cc' import { Component, Node, Prefab, Quat, Vec3, _decorator, instantiate } from 'cc'
import PrefabLoader from '../utils/PrefabLoader'
import { GameConfig } from '../../game/config/GameConfig' import { GameConfig } from '../../game/config/GameConfig'
import PrefabLoader from '../utils/PrefabLoader'
import DialogBase from './DialogBase' import DialogBase from './DialogBase'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
@@ -15,6 +17,7 @@ export default class LoadingPrefab extends Component {
private _quatCache: Quat private _quatCache: Quat
private _vec3Cache: Vec3 private _vec3Cache: Vec3
onLoad() { onLoad() {
this._quatCache = new Quat() this._quatCache = new Quat()
this._vec3Cache = new Vec3() this._vec3Cache = new Vec3()
@@ -23,9 +26,8 @@ export default class LoadingPrefab extends Component {
start() {} start() {}
public static close() { public static close() {
if (!LoadingPrefab.instance) { if (!LoadingPrefab.instance) return
return
}
LoadingPrefab.instance.removeFromParent() LoadingPrefab.instance.removeFromParent()
LoadingPrefab.instance.destroy() LoadingPrefab.instance.destroy()
LoadingPrefab.instance = null LoadingPrefab.instance = null
@@ -34,30 +36,28 @@ export default class LoadingPrefab extends Component {
public static preLoad(): Promise<void> { public static preLoad(): Promise<void> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PrefabLoader.loadPrefab( PrefabLoader.loadPrefab(
GameConfig.GameName + '/' + 'share/uicomponent/LoadingPrefab', `${GameConfig.GameName}/share/uicomponent/LoadingPrefab`,
(loadedResource) => { (loadedResource) => {
LoadingPrefab.prefab = loadedResource LoadingPrefab.prefab = loadedResource
resolve() resolve()
} },
) )
}) })
} }
private static createLoadingPrefab(parentNode: Node = null) { private static createLoadingPrefab(parentNode: Node = null) {
let dialogNode: Node = instantiate(LoadingPrefab.prefab) const dialogNode: Node = instantiate(LoadingPrefab.prefab)
LoadingPrefab.instance = dialogNode LoadingPrefab.instance = dialogNode
if (!parentNode) { if (!parentNode) parentNode = DialogBase.GetRootCanvas()
parentNode = DialogBase.GetRootCanvas()
}
parentNode.insertChild(dialogNode, LoadingPrefab.LoadingZorderIndex) parentNode.insertChild(dialogNode, LoadingPrefab.LoadingZorderIndex)
dialogNode.setPosition(0, 0) dialogNode.setPosition(0, 0)
} }
public static async show(parentNode: Node = null) { public static async show(parentNode: Node = null) {
if (LoadingPrefab.instance) return if (LoadingPrefab.instance) return
if (!LoadingPrefab.prefab) { if (!LoadingPrefab.prefab) await LoadingPrefab.preLoad()
await LoadingPrefab.preLoad()
}
this.createLoadingPrefab(parentNode) this.createLoadingPrefab(parentNode)
} }
@@ -66,9 +66,7 @@ export default class LoadingPrefab extends Component {
Quat.toEuler(this._vec3Cache, this._quatCache) Quat.toEuler(this._vec3Cache, this._quatCache)
this._vec3Cache.z += 10 this._vec3Cache.z += 10
this.loadingSp.setRotationFromEuler(this._vec3Cache) this.loadingSp.setRotationFromEuler(this._vec3Cache)
if (this._vec3Cache.z >= 360) { if (this._vec3Cache.z >= 360) this.loadingSp.getRotation(Quat.IDENTITY)
this.loadingSp.getRotation(Quat.IDENTITY)
}
} }
public static clear() { public static clear() {

View File

@@ -1,8 +1,10 @@
import { _decorator, Component, instantiate, Node, Prefab } from 'cc' import { Component, Node, Prefab, _decorator, instantiate } from 'cc'
import PrefabLoader from '../utils/PrefabLoader'
import Progress from './Progress'
import { GameConfig } from '../../game/config/GameConfig' import { GameConfig } from '../../game/config/GameConfig'
import PrefabLoader from '../utils/PrefabLoader'
import DialogBase from './DialogBase' import DialogBase from './DialogBase'
import Progress from './Progress'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
@@ -13,44 +15,30 @@ export default class LoadingScenePrefab extends Component {
public static LoadingZorderIndex: number = 99 public static LoadingZorderIndex: number = 99
@property({ type: Node }) @property({ type: Node })
private progressNode: Node | null = null private progressNode: Node | null = null
onLoad() {} onLoad() {}
start() {} start() {}
public updateProgress( public updateProgress(completedCount: number, totalCount: number, item: any = null) {
completedCount: number,
totalCount: number,
item: any = null
) {
this.progressNode this.progressNode
.getComponent(Progress) .getComponent(Progress)
.updateProgress( .updateProgress(completedCount, totalCount, '消耗流量,预下载所有"鱼"类中,请耐心等待...')
completedCount,
totalCount,
'消耗流量,预下载所有"鱼"类中,请耐心等待...'
)
} }
public static updateLoading( public static updateLoading(completedCount: number, totalCount: number, item: any = null) {
completedCount: number,
totalCount: number,
item: any = null
) {
if (LoadingScenePrefab.instance) { if (LoadingScenePrefab.instance) {
let nodeTs: LoadingScenePrefab = const nodeTs: LoadingScenePrefab =
LoadingScenePrefab.instance.getComponent(LoadingScenePrefab) LoadingScenePrefab.instance.getComponent(LoadingScenePrefab)
if (nodeTs) { if (nodeTs) nodeTs.updateProgress(completedCount, totalCount, item)
nodeTs.updateProgress(completedCount, totalCount, item)
}
} }
} }
private static createPrefab(parentNode: Node = null) { private static createPrefab(parentNode: Node = null) {
let dialogNode: Node = instantiate(LoadingScenePrefab.prefab) const dialogNode: Node = instantiate(LoadingScenePrefab.prefab)
LoadingScenePrefab.instance = dialogNode LoadingScenePrefab.instance = dialogNode
if (!parentNode) { if (!parentNode) parentNode = DialogBase.GetRootCanvas()
parentNode = DialogBase.GetRootCanvas()
}
parentNode.insertChild(dialogNode, LoadingScenePrefab.LoadingZorderIndex) parentNode.insertChild(dialogNode, LoadingScenePrefab.LoadingZorderIndex)
dialogNode.setPosition(0, 0) dialogNode.setPosition(0, 0)
} }
@@ -58,28 +46,26 @@ export default class LoadingScenePrefab extends Component {
public static preLoad(): Promise<void> { public static preLoad(): Promise<void> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PrefabLoader.loadPrefab( PrefabLoader.loadPrefab(
GameConfig.GameName + '/' + 'share/uicomponent/LoadingScenePrefab', `${GameConfig.GameName}/share/uicomponent/LoadingScenePrefab`,
(loadedResource: Prefab) => { (loadedResource: Prefab) => {
LoadingScenePrefab.prefab = loadedResource LoadingScenePrefab.prefab = loadedResource
resolve() resolve()
} },
) )
}) })
} }
public static close() { public static close() {
if (!LoadingScenePrefab.instance) { if (!LoadingScenePrefab.instance) return
return
}
LoadingScenePrefab.instance.destroy() LoadingScenePrefab.instance.destroy()
LoadingScenePrefab.instance = null LoadingScenePrefab.instance = null
} }
public static async show(parentNode: Node = null) { public static async show(parentNode: Node = null) {
if (LoadingScenePrefab.instance) return if (LoadingScenePrefab.instance) return
if (!LoadingScenePrefab.prefab) { if (!LoadingScenePrefab.prefab) await LoadingScenePrefab.preLoad()
await LoadingScenePrefab.preLoad()
}
this.createPrefab(parentNode) this.createPrefab(parentNode)
} }

View File

@@ -1,9 +1,18 @@
import { _decorator, AssetManager, AudioClip, AudioSource, Component, instantiate, Prefab } from 'cc' import {
AssetManager,
AudioClip,
AudioSource,
Component,
Prefab,
_decorator,
instantiate,
} from 'cc'
import { GameConfig } from '../../game/config/GameConfig'
import MusicConfig from '../config/MusicConfig'
import LocalStorage from '../utils/LocalStorage'
import { Logger } from '../utils/Logger' import { Logger } from '../utils/Logger'
import PrefabLoader from '../utils/PrefabLoader' import PrefabLoader from '../utils/PrefabLoader'
import LocalStorage from '../utils/LocalStorage'
import MusicConfig from '../config/MusicConfig'
import { GameConfig } from '../../game/config/GameConfig'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
@@ -16,26 +25,22 @@ export default class MusicPrefab extends Component {
private static instance: MusicPrefab private static instance: MusicPrefab
private static MUSIC_VOLUMN_KEY: string = 'musicVolumn' private static MUSIC_VOLUMN_KEY: string = 'musicVolumn'
public static musicVolumn: number = 1 public static musicVolumn: number = 1
public static play(key: string) { public static play(key: string) {
let url: string = MusicConfig.musicKey2Path.get(key) const url: string = MusicConfig.musicKey2Path.get(key)
if (url) { if (url) {
AssetManager.instance.resources.load( AssetManager.instance.resources.load(url, AudioClip, (error: Error, clip: AudioClip) => {
url,
AudioClip,
(error: Error, clip: AudioClip) => {
if (error) { if (error) {
Logger.warn(this, 'load music error===', error.message) Logger.warn(this, 'load music error===', error.message)
} else { } else {
if (clip) { if (clip) {
this.instance.node.getComponent(AudioSource).clip = clip this.instance.node.getComponent(AudioSource).clip = clip
this.instance.node.getComponent(AudioSource).volume = this.instance.node.getComponent(AudioSource).volume = this.musicVolumn
this.musicVolumn
this.instance.node.getComponent(AudioSource).play() this.instance.node.getComponent(AudioSource).play()
this.instance.node.getComponent(AudioSource).loop = true this.instance.node.getComponent(AudioSource).loop = true
} }
} }
} })
)
} else { } else {
Logger.warn(this, '播放不存在的music=', key) Logger.warn(this, '播放不存在的music=', key)
} }
@@ -44,31 +49,23 @@ export default class MusicPrefab extends Component {
public static changeVolumn(nowVolumn: number) { public static changeVolumn(nowVolumn: number) {
this.musicVolumn = nowVolumn this.musicVolumn = nowVolumn
this.instance.node.getComponent(AudioSource).volume = nowVolumn this.instance.node.getComponent(AudioSource).volume = nowVolumn
LocalStorage.setItem( LocalStorage.setItem(MusicPrefab.MUSIC_VOLUMN_KEY, this.musicVolumn.toString())
MusicPrefab.MUSIC_VOLUMN_KEY,
this.musicVolumn.toString()
)
} }
private static preInit() { private static preInit() {
this.musicVolumn = parseFloat( this.musicVolumn = Number.parseFloat(LocalStorage.getItem(MusicPrefab.MUSIC_VOLUMN_KEY))
LocalStorage.getItem(MusicPrefab.MUSIC_VOLUMN_KEY) if (Number.isNaN(this.musicVolumn)) this.musicVolumn = 1
)
if (isNaN(this.musicVolumn)) {
this.musicVolumn = 1
}
} }
public static preLoad(): Promise<void> { public static preLoad(): Promise<void> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PrefabLoader.loadPrefab( PrefabLoader.loadPrefab(
GameConfig.GameName + '/' + 'share/uicomponent/MusicPrefab', `${GameConfig.GameName}/share/uicomponent/MusicPrefab`,
(loadedResource: Prefab) => { (loadedResource: Prefab) => {
MusicPrefab.instance = MusicPrefab.instance = instantiate(loadedResource).getComponent(MusicPrefab)
instantiate(loadedResource).getComponent(MusicPrefab)
this.preInit() this.preInit()
resolve() resolve()
} },
) )
}) })
} }

View File

@@ -1,4 +1,4 @@
import { _decorator, Component, Label, ProgressBar } from 'cc' import { Component, Label, ProgressBar, _decorator } from 'cc'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
@@ -21,22 +21,21 @@ export default class Progress extends Component {
// this.percentLable.string = filePercent.toFixed(2); // this.percentLable.string = filePercent.toFixed(2);
} }
updatefileTotal(current, filePercent) { updatefileTotal(current: number, filePercent: number) {
if (!this.bar.node.active) this.bar.node.active = true if (!this.bar.node.active) this.bar.node.active = true
var nowPercent = Math.round((current / filePercent) * 100) let nowPercent = Math.round((current / filePercent) * 100)
var curMB = this.getMB(current) const curMB = this.getMB(current)
var totalMB = this.getMB(filePercent) const totalMB = this.getMB(filePercent)
// this.percentLable.string = "正在更新 " + nowPercent + "%" + " ( " + curMB + " / "+totalMB +" MB)"; // this.percentLable.string = "正在更新 " + nowPercent + "%" + " ( " + curMB + " / "+totalMB +" MB)";
nowPercent = Math.min(nowPercent, 100) nowPercent = Math.min(nowPercent, 100)
this.percentLable.string = '正在更新 ' + nowPercent + '%' this.percentLable.string = `正在更新 ${nowPercent}%`
var percent = current / filePercent this.bar.progress = current / filePercent
this.bar.progress = percent
} }
public updateProgress( public updateProgress(
current, current: number,
total, total: number,
msg: string = '正在加载资源,此过程不消耗流量...' msg: string = '正在加载资源,此过程不消耗流量...',
) { ) {
this.bar.node.active = true this.bar.node.active = true
// this.setMsg(msg+ current + "/" + total); // this.setMsg(msg+ current + "/" + total);
@@ -44,7 +43,7 @@ export default class Progress extends Component {
this.bar.progress = current / total this.bar.progress = current / total
} }
getMB(bytes) { getMB(bytes: number) {
bytes /= 1024 bytes /= 1024
bytes /= 1024 bytes /= 1024
return bytes.toFixed(2) return bytes.toFixed(2)

View File

@@ -1,11 +1,22 @@
import { _decorator, AssetManager, AudioClip, AudioSource, Component, instantiate, Node, NodePool, Prefab } from 'cc' import {
import { Logger } from '../utils/Logger' AssetManager,
import PrefabLoader from '../utils/PrefabLoader' AudioClip,
import LocalStorage from '../utils/LocalStorage' AudioSource,
import EventManager from '../utils/EventManager' Component,
Node,
NodePool,
Prefab,
_decorator,
instantiate,
} from 'cc'
import { GameConfig } from '../../game/config/GameConfig'
import CommonEvent from '../config/CommonEvent' import CommonEvent from '../config/CommonEvent'
import MusicConfig from '../config/MusicConfig' import MusicConfig from '../config/MusicConfig'
import { GameConfig } from '../../game/config/GameConfig' import EventManager from '../utils/EventManager'
import LocalStorage from '../utils/LocalStorage'
import { Logger } from '../utils/Logger'
import PrefabLoader from '../utils/PrefabLoader'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
@@ -24,6 +35,7 @@ export default class SoundPrefab extends Component {
private static nowAudioNodeList: Array<Node> = [] private static nowAudioNodeList: Array<Node> = []
private audioName: string = '' private audioName: string = ''
private audioUrl: string = '' private audioUrl: string = ''
private static getAudioNode() { private static getAudioNode() {
let node: Node = null let node: Node = null
// if (this.pool.size() > 0) { // if (this.pool.size() > 0) {
@@ -36,18 +48,17 @@ export default class SoundPrefab extends Component {
} }
public static play(key: string) { public static play(key: string) {
let url: string = MusicConfig.musicKey2Path.get(key) const url: string = MusicConfig.musicKey2Path.get(key)
if (url) { if (url) {
AssetManager.instance.resources.load(url, AudioClip, (error: Error, clip: AudioClip) => { AssetManager.instance.resources.load(url, AudioClip, (error: Error, clip: AudioClip) => {
if (error) { if (error) {
Logger.warn(this, 'load sound error===', error.message) Logger.warn(this, 'load sound error===', error.message)
} else { } else {
if (clip) { if (clip) {
let audioNode: Node = this.getAudioNode() const audioNode: Node = this.getAudioNode()
if (audioNode) { if (audioNode) {
audioNode.getComponent(AudioSource).clip = clip audioNode.getComponent(AudioSource).clip = clip
audioNode.getComponent(AudioSource).volume = audioNode.getComponent(AudioSource).volume = SoundPrefab.soundVolumn
SoundPrefab.soundVolumn
audioNode.getComponent(AudioSource).loop = false audioNode.getComponent(AudioSource).loop = false
audioNode.getComponent(AudioSource).currentTime = 0 // rewind(); audioNode.getComponent(AudioSource).currentTime = 0 // rewind();
audioNode.getComponent(AudioSource).play() audioNode.getComponent(AudioSource).play()
@@ -66,46 +77,31 @@ export default class SoundPrefab extends Component {
public static changeVolumn(nowVolumn: number) { public static changeVolumn(nowVolumn: number) {
this.soundVolumn = nowVolumn this.soundVolumn = nowVolumn
for (let i = 0; i < this.nowAudioNodeList.length; i++) { for (let i = 0; i < this.nowAudioNodeList.length; i++) {
let audioNode: Node = this.nowAudioNodeList[i] const audioNode: Node = this.nowAudioNodeList[i]
let audioSource: AudioSource = audioNode.getComponent(AudioSource) const audioSource: AudioSource = audioNode.getComponent(AudioSource)
if (audioSource.playing) { if (audioSource.playing) audioSource.volume = nowVolumn
audioSource.volume = nowVolumn
} }
} LocalStorage.setItem(SoundPrefab.SOUND_VOLUMN_KEY, SoundPrefab.soundVolumn.toString())
LocalStorage.setItem(
SoundPrefab.SOUND_VOLUMN_KEY,
SoundPrefab.soundVolumn.toString()
)
} }
private static preInit() { private static preInit() {
EventManager.instance.addListener( EventManager.instance.addListener(CommonEvent.Event_FrameUpdate, this.updateFrame, this)
CommonEvent.Event_FrameUpdate, SoundPrefab.soundVolumn = Number.parseFloat(LocalStorage.getItem(SoundPrefab.SOUND_VOLUMN_KEY))
this.updateFrame, if (Number.isNaN(SoundPrefab.soundVolumn)) SoundPrefab.soundVolumn = 1
this
)
SoundPrefab.soundVolumn = parseFloat(
LocalStorage.getItem(SoundPrefab.SOUND_VOLUMN_KEY)
)
if (isNaN(SoundPrefab.soundVolumn)) {
SoundPrefab.soundVolumn = 1
}
} }
private static updateFrame() { private static updateFrame() {
for (let i = 0; i < this.nowAudioNodeList.length; i++) { for (let i = 0; i < this.nowAudioNodeList.length; i++) {
let audioNode: Node = this.nowAudioNodeList[i] const audioNode: Node = this.nowAudioNodeList[i]
let audioSource: AudioSource = audioNode.getComponent(AudioSource) const audioSource: AudioSource = audioNode.getComponent(AudioSource)
if (!audioSource.playing) { if (!audioSource.playing) SoundPrefab.nowAudioNodeList.splice(i, 1)
SoundPrefab.nowAudioNodeList.splice(i, 1)
}
} }
} }
public static preLoad(): Promise<void> { public static preLoad(): Promise<void> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PrefabLoader.loadPrefab( PrefabLoader.loadPrefab(
GameConfig.GameName + '/' + 'share/uicomponent/SoundPrefab', `${GameConfig.GameName}/share/uicomponent/SoundPrefab`,
(loadedResource: Prefab) => { (loadedResource: Prefab) => {
SoundPrefab.prefab = loadedResource SoundPrefab.prefab = loadedResource
this.preInit() this.preInit()
@@ -114,18 +110,15 @@ export default class SoundPrefab extends Component {
// this.pool.put(tempNode); // this.pool.put(tempNode);
// } // }
resolve() resolve()
} },
) )
}) })
} }
public static destory() { public static destory() {
EventManager.instance.removeListener( EventManager.instance.removeListener(CommonEvent.Event_FrameUpdate, this.updateFrame)
CommonEvent.Event_FrameUpdate,
this.updateFrame
)
for (let i = 0; i < this.nowAudioNodeList.length; i++) { for (let i = 0; i < this.nowAudioNodeList.length; i++) {
let audioNode: Node = this.nowAudioNodeList[i] const audioNode: Node = this.nowAudioNodeList[i]
audioNode.getComponent(AudioSource).stop() audioNode.getComponent(AudioSource).stop()
audioNode.getComponent(AudioSource).destroy() audioNode.getComponent(AudioSource).destroy()
} }

View File

@@ -1,4 +1,4 @@
import { _decorator, Component, SpriteFrame } from 'cc' import { Component, SpriteFrame, _decorator } from 'cc'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
@@ -6,16 +6,20 @@ const { ccclass, property } = _decorator
export default class TextureMgr extends Component { export default class TextureMgr extends Component {
@property({ type: [SpriteFrame] }) @property({ type: [SpriteFrame] })
public Spriteset: SpriteFrame[] = [] public Spriteset: SpriteFrame[] = []
@property({ type: [SpriteFrame] }) @property({ type: [SpriteFrame] })
public Spriteset1: SpriteFrame[] = [] public Spriteset1: SpriteFrame[] = []
@property({ type: [SpriteFrame] }) @property({ type: [SpriteFrame] })
public Spriteset2: SpriteFrame[] = [] public Spriteset2: SpriteFrame[] = []
@property({ type: [SpriteFrame] }) @property({ type: [SpriteFrame] })
public Spriteset3: SpriteFrame[] = [] public Spriteset3: SpriteFrame[] = []
@property({ type: [SpriteFrame] }) @property({ type: [SpriteFrame] })
public Spriteset4: SpriteFrame[] = [] public Spriteset4: SpriteFrame[] = []
onLoad() { onLoad() {
// // init logic // init logic
} }
} }

View File

@@ -10,29 +10,25 @@ export default class AdapterHelper {
public static fixApdater() { public static fixApdater() {
log('v3.6没找到接口修改 fitHeight、fitWidth, 先在项目里写死fitHeight=true') log('v3.6没找到接口修改 fitHeight、fitWidth, 先在项目里写死fitHeight=true')
return // return
let framesize = view.getFrameSize() // const framesize = view.getFrameSize()
if (!this.winSizeWidth) { // if (!this.winSizeWidth) {
this.winSizeWidth = screen.width // this.winSizeWidth = screen.width
this.winSizeHeiht = screen.height // this.winSizeHeiht = screen.height
} // }
let designsize = view.getDesignResolutionSize() // const designsize = view.getDesignResolutionSize()
let canvas: Canvas = DialogBase.GetRootCanvas().getComponent(Canvas) // const canvas: Canvas = DialogBase.GetRootCanvas().getComponent(Canvas)
let ratio: number = framesize.height / framesize.width // const ratio: number = framesize.height / framesize.width
let designRatio: number = designsize.height / designsize.width // const designRatio: number = designsize.height / designsize.width
if (ratio > designRatio) { // if (ratio > designRatio) {
// canvas.fitHeight = false; // canvas.fitHeight = false;
// canvas.fitWidth = true; // canvas.fitWidth = true;
error( // error('v3.6没找到接口修改 fitHeight、fitWidth, 先在项目里写死fitHeight=true')
'v3.6没找到接口修改 fitHeight、fitWidth, 先在项目里写死fitHeight=true' // } else {
) // // canvas.fitHeight = true;
} else { // // canvas.fitWidth = false;
//canvas.fitHeight = true; // error('v3.6没找到接口修改 fitHeight、fitWidth, 先在项目里写死fitHeight=true')
//canvas.fitWidth = false; // }
error(
'v3.6没找到接口修改 fitHeight、fitWidth, 先在项目里写死fitHeight=true'
)
}
} }
} }

View File

@@ -6,43 +6,37 @@ const { ccclass, property } = _decorator
export default class BitUtil { export default class BitUtil {
// index是二进制从右到左 // index是二进制从右到左
public static isBitSet(value: number, index: number): boolean { public static isBitSet(value: number, index: number): boolean {
let str: string = value.toString(2) const str: string = value.toString(2)
return parseInt(str[str.length - 1 - index]) == 1 return Number.parseInt(str[str.length - 1 - index]) === 1
} }
// 从右到左计算 // 从右到左计算
public static setBitValue(value: number, index: number): number { public static setBitValue(value: number, index: number): number {
let newValue: number = value let newValue: number = value
let str: string = value.toString(2) const str: string = value.toString(2)
let newStr: string = '' let newStr: string = ''
let maxIndex = Math.max(str.length - 1, index) const maxIndex = Math.max(str.length - 1, index)
for (let i = 0; i <= maxIndex; i++) { for (let i = 0; i <= maxIndex; i++) {
if (index == i) { if (index === i) {
newStr = '1' + newStr newStr = `1${newStr}`
} else { } else {
if (str[i] == undefined) { if (str[i] === undefined) newStr = `0${newStr}`
newStr = '0' + newStr else newStr = str[i] + newStr
} else {
newStr = str[i] + newStr
} }
} }
} newValue = Number.parseInt(newStr, 2)
newValue = parseInt(newStr, 2)
return newValue return newValue
} }
public static clearBitValue(value: number, index: number) { public static clearBitValue(value: number, index: number) {
let newValue: number = value let newValue: number = value
let str: string = value.toString(2) const str: string = value.toString(2)
let newStr: string = '' let newStr: string = ''
for (let i = str.length - 1; i >= 0; i--) { for (let i = str.length - 1; i >= 0; i--) {
if (index == str.length - 1 - i) { if (index === str.length - 1 - i) newStr = `0${newStr}`
newStr = '0' + newStr else newStr = str[i] + newStr
} else {
newStr = str[i] + newStr
} }
} newValue = Number.parseInt(newStr, 2)
newValue = parseInt(newStr, 2)
return newValue return newValue
} }
} }

View File

@@ -1,11 +1,11 @@
import { _decorator, Color } from 'cc' import { Color, _decorator } from 'cc'
const { ccclass, property } = _decorator const { ccclass, property } = _decorator
@ccclass('ColorHelper') @ccclass('ColorHelper')
export default class ColorHelper { export default class ColorHelper {
public static getColor(hexStr: string): Color { public static getColor(hexStr: string): Color {
let color: Color = Color.BLACK const color: Color = Color.BLACK
return color.fromHEX(hexStr) return color.fromHEX(hexStr)
} }
} }

View File

@@ -1,136 +1,83 @@
export default class DateUtil { export default class DateUtil {
public static formatNumStr(num: number) { public static formatNumStr(num: number) {
let str = '' + num let str = `${num}`
if (num < 10) { if (num < 10) str = `0${num}`
str = '0' + num
}
return str return str
} }
public static formateYearMonthDayStr(timestamp: number) { public static formateYearMonthDayStr(timestamp: number) {
let date: Date = new Date(timestamp) const date: Date = new Date(timestamp)
return ( return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`
date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
)
} }
public static formateMonthDayStr(timestamp: number) { public static formateMonthDayStr(timestamp: number) {
let date: Date = new Date(timestamp) const date: Date = new Date(timestamp)
return date.getMonth() + 1 + '月' + date.getDate() + '日' return `${date.getMonth() + 1}${date.getDate()}`
} }
// timestamp:1453094034000 2018-1-31 19:53:44 // timestamp:1453094034000 2018-1-31 19:53:44
// 根据时间戳返回 2018-1-31 19:53:44 // 根据时间戳返回 2018-1-31 19:53:44
public static formatDateStr(timestamp: number) { public static formatDateStr(timestamp: number) {
let date: Date = new Date(timestamp) const date: Date = new Date(timestamp)
return ( return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${this.formatNumStr(
date.getFullYear() + date.getHours(),
'-' + )}:${this.formatNumStr(date.getMinutes())}:${this.formatNumStr(date.getSeconds())}`
(date.getMonth() + 1) +
'-' +
date.getDate() +
' ' +
this.formatNumStr(date.getHours()) +
':' +
this.formatNumStr(date.getMinutes()) +
':' +
this.formatNumStr(date.getSeconds())
)
} }
// timestamp:1453094034000 2018-1-31-19-53-44 // timestamp:1453094034000 2018-1-31-19-53-44
// 根据时间戳返回 2018-1-31-19-53-44 // 根据时间戳返回 2018-1-31-19-53-44
public static formatDateStr2(timestamp: number) { public static formatDateStr2(timestamp: number) {
let date: Date = new Date(timestamp) const date: Date = new Date(timestamp)
return ( return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}-${this.formatNumStr(date.getHours())}-${this.formatNumStr(date.getMinutes())}-${this.formatNumStr(date.getSeconds())}`
date.getFullYear() +
'-' +
(date.getMonth() + 1) +
'-' +
date.getDate() +
'-' +
this.formatNumStr(date.getHours()) +
'-' +
this.formatNumStr(date.getMinutes()) +
'-' +
this.formatNumStr(date.getSeconds())
)
} }
// timestamp:1453094034000 2018-1-31 // timestamp:1453094034000 2018-1-31
// 根据时间戳返回 2018-1-31 // 根据时间戳返回 2018-1-31
public static formatDateStr3(timestamp: number) { public static formatDateStr3(timestamp: number) {
let date: Date = new Date(timestamp) const date: Date = new Date(timestamp)
return ( return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`
date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
)
} }
// timestamp:1453094034000 // timestamp:1453094034000
// 根据时间戳返回 19:53 // 根据时间戳返回 19:53
public static formatHourMinStr(timestamp: number) { public static formatHourMinStr(timestamp: number) {
let date: Date = new Date(timestamp) const date: Date = new Date(timestamp)
return ( return `${this.formatNumStr(date.getHours())}:${this.formatNumStr(date.getMinutes())}`
this.formatNumStr(date.getHours()) +
':' +
this.formatNumStr(date.getMinutes())
)
} }
// timestamp:1453094034000 // timestamp:1453094034000
// 根据时间戳返回 19:53:11 // 根据时间戳返回 19:53:11
public static formatHourMinSecondStr(timestamp: number) { public static formatHourMinSecondStr(timestamp: number) {
let date: Date = new Date(timestamp) const date: Date = new Date(timestamp)
return ( return `${this.formatNumStr(date.getHours())}:${this.formatNumStr(date.getMinutes())}:${this.formatNumStr(date.getSeconds())}`
this.formatNumStr(date.getHours()) +
':' +
this.formatNumStr(date.getMinutes()) +
':' +
this.formatNumStr(date.getSeconds())
)
} }
public static now(): number { public static now(): number {
let date: Date = new Date() const date: Date = new Date()
return date.getTime() return date.getTime()
} }
public static betweenTime(startTime: number, endTime: number) { public static betweenTime(startTime: number, endTime: number) {
let date: Date = new Date() const date: Date = new Date()
if (date.getTime() >= startTime && date.getTime() <= endTime) { return date.getTime() >= startTime && date.getTime() <= endTime
return true
}
return false
} }
// 根据时间戳返回 1天19:53:11 // 根据时间戳返回 1天19:53:11
public static formatLeftTime(timestamp: number) { public static formatLeftTime(timestamp: number) {
let result: string = '' const day: number = Math.floor(timestamp / (1000 * 60 * 60 * 24))
let day: number = Math.floor(timestamp / (1000 * 60 * 60 * 24)) const hour: number = Math.floor(timestamp / (1000 * 60 * 60)) % 24
let hour: number = Math.floor(timestamp / (1000 * 60 * 60)) % 24 const min: number = Math.floor(timestamp / (1000 * 60)) % 60
let min: number = Math.floor(timestamp / (1000 * 60)) % 60 const second: number = Math.floor(timestamp / 1000) % 60
let second: number = Math.floor(timestamp / 1000) % 60 return `${day}${this.formatNumStr(hour)}:${this.formatNumStr(min)}:${this.formatNumStr(second)}`
result =
day +
'天' +
this.formatNumStr(hour) +
':' +
this.formatNumStr(min) +
':' +
this.formatNumStr(second)
return result
} }
public static isToday(dateTime: number): boolean { public static isToday(dateTime: number): boolean {
let nowDate: Date = new Date() const nowDate: Date = new Date()
let checkDate: Date = new Date(dateTime) const checkDate: Date = new Date(dateTime)
if ( return (
checkDate.getFullYear() == nowDate.getFullYear() && checkDate.getFullYear() === nowDate.getFullYear() &&
checkDate.getMonth() == nowDate.getMonth() && checkDate.getMonth() === nowDate.getMonth() &&
checkDate.getDate() == nowDate.getDate() checkDate.getDate() === nowDate.getDate()
) { )
return true
}
return false
} }
} }

View File

@@ -1,4 +1,5 @@
import { Button, Color, Component, Node, Slider } from 'cc' import { Button, Color, Component, Node, Slider } from 'cc'
import ColorHelper from './ColorHelper' import ColorHelper from './ColorHelper'
export class HaoEvent { export class HaoEvent {
@@ -18,20 +19,17 @@ export default class EventManager {
private callbackList = {} private callbackList = {}
public constructor() { public constructor() {}
}
// 注册事件 // 注册事件
public addListener(eventName: string, callback: Function, caller: any) { public addListener(eventName: string, callback: Function, caller: any) {
if (this.callbackList[eventName]) { if (this.callbackList[eventName]) {
let eventList: Array<HaoEvent> = this.callbackList[eventName] const eventList: Array<HaoEvent> = this.callbackList[eventName]
// 不同元件才放入,相同元件覆蓋 // 不同元件才放入,相同元件覆蓋
let add: boolean = true let add: boolean = true
for (let i = 0; i < eventList.length; i++) { for (let i = 0; i < eventList.length; i++) {
let event: HaoEvent = eventList[i] const event: HaoEvent = eventList[i]
if (caller === event.caller) { if (caller === event.caller) add = false
add = false
}
} }
if (add) { if (add) {
eventList.push(new HaoEvent(callback, caller)) eventList.push(new HaoEvent(callback, caller))
@@ -46,7 +44,7 @@ export default class EventManager {
public removeListener(eventName: string, callback: Function) { public removeListener(eventName: string, callback: Function) {
if (this.callbackList[eventName]) { if (this.callbackList[eventName]) {
for (let i = this.callbackList[eventName].length - 1; i >= 0; i--) { for (let i = this.callbackList[eventName].length - 1; i >= 0; i--) {
let event: HaoEvent = this.callbackList[eventName][i] const event: HaoEvent = this.callbackList[eventName][i]
if (event.callback == callback) { if (event.callback == callback) {
this.callbackList[eventName].splice(i, 1) this.callbackList[eventName].splice(i, 1)
break break
@@ -56,17 +54,15 @@ export default class EventManager {
} }
public dispatchEvent(eventName, parameter?: any, ...restOfName: any[]) { public dispatchEvent(eventName, parameter?: any, ...restOfName: any[]) {
let eventList: Array<HaoEvent> = this.callbackList[eventName] const eventList: Array<HaoEvent> = this.callbackList[eventName]
if (eventList) { if (eventList) {
for (let i = eventList.length - 1; i >= 0; i--) { for (let i = eventList.length - 1; i >= 0; i--) {
let event: HaoEvent = eventList[i] const event: HaoEvent = eventList[i]
event.callback.call(event.caller, event, parameter, ...restOfName) event.callback.call(event.caller, event, parameter, ...restOfName)
if (event.isStop) { if (event.isStop) break
break
}
} }
for (let i = eventList.length - 1; i >= 0; i--) { for (let i = eventList.length - 1; i >= 0; i--) {
let event: HaoEvent = eventList[i] const event: HaoEvent = eventList[i]
event.isStop = false event.isStop = false
} }
} }
@@ -77,10 +73,10 @@ export default class EventManager {
objectNode: Node, objectNode: Node,
scriptName: string, scriptName: string,
eventName: string, eventName: string,
data: any = null data: any = null,
) { ) {
var btn: Button = objectNode.addComponent(Button) const btn: Button = objectNode.addComponent(Button)
var clickEventHandler = new Component.EventHandler() const clickEventHandler = new Component.EventHandler()
clickEventHandler.target = parentNode // 这个 node 节点是你的事件处理代码组件所属的节点 clickEventHandler.target = parentNode // 这个 node 节点是你的事件处理代码组件所属的节点
clickEventHandler.component = scriptName // 这个是代码文件名 clickEventHandler.component = scriptName // 这个是代码文件名
clickEventHandler.handler = eventName clickEventHandler.handler = eventName
@@ -94,12 +90,12 @@ export default class EventManager {
} }
public removeBtnEffect(objectNode: Node) { public removeBtnEffect(objectNode: Node) {
var b = objectNode.getComponent(Button) const b = objectNode.getComponent(Button)
b.transition = Button.Transition.NONE b.transition = Button.Transition.NONE
} }
public addBtnEffect(objectNode: Node, scale: number = 1.1) { public addBtnEffect(objectNode: Node, scale: number = 1.1) {
var b = objectNode.getComponent(Button) const b = objectNode.getComponent(Button)
b.transition = Button.Transition.SCALE b.transition = Button.Transition.SCALE
b.zoomScale = scale b.zoomScale = scale
} }
@@ -107,22 +103,17 @@ export default class EventManager {
public addBtnEffect_color( public addBtnEffect_color(
objectNode: Node, objectNode: Node,
normalC: Color = ColorHelper.getColor('#FFFFFF'), normalC: Color = ColorHelper.getColor('#FFFFFF'),
pressC: Color = ColorHelper.getColor('#C0C0C0') pressC: Color = ColorHelper.getColor('#C0C0C0'),
) { ) {
var b = objectNode.getComponent(Button) const b = objectNode.getComponent(Button)
b.transition = Button.Transition.COLOR b.transition = Button.Transition.COLOR
b.normalColor = normalC b.normalColor = normalC
b.pressedColor = pressC b.pressedColor = pressC
} }
public addSliderEvent( public addSliderEvent(parentNode: Node, objectNode: Node, EventName: string, data: any) {
parentNode: Node, const b = objectNode.getComponent(Slider)
objectNode: Node, const clickEventHandler = new Component.EventHandler()
EventName: string,
data: any
) {
var b = objectNode.getComponent(Slider)
var clickEventHandler = new Component.EventHandler()
clickEventHandler.target = parentNode // 这个 node 节点是你的事件处理代码组件所属的节点 clickEventHandler.target = parentNode // 这个 node 节点是你的事件处理代码组件所属的节点
clickEventHandler.component = parentNode.name // 这个是代码文件名 clickEventHandler.component = parentNode.name // 这个是代码文件名
clickEventHandler.handler = EventName clickEventHandler.handler = EventName

View File

@@ -4,11 +4,9 @@ export default class HaoEncrypt {
for (let i = 0; i < str.length; i++) { for (let i = 0; i < str.length; i++) {
// 遍历字符串 // 遍历字符串
let code: number = str.charCodeAt(i) // //逐个提取每个字符并获取Unicode编码值 let code: number = str.charCodeAt(i) // //逐个提取每个字符并获取Unicode编码值
if (i % 2 == 0) { if (i % 2 === 0) code += 2
code += 2 else code += 1
} else {
code += 1
}
result += String.fromCharCode(code) result += String.fromCharCode(code)
} }
return result return result
@@ -19,11 +17,8 @@ export default class HaoEncrypt {
for (let i = 0; i < str.length; i++) { for (let i = 0; i < str.length; i++) {
// 遍历字符串 // 遍历字符串
let code: number = str.charCodeAt(i) // //逐个提取每个字符并获取Unicode编码值 let code: number = str.charCodeAt(i) // //逐个提取每个字符并获取Unicode编码值
if (i % 2 == 0) { if (i % 2 === 0) code -= 2
code -= 2 else code -= 1
} else {
code -= 1
}
result += String.fromCharCode(code) result += String.fromCharCode(code)
} }
return result return result

View File

@@ -1,18 +1,19 @@
import { native, sys } from 'cc' import { native, sys } from 'cc'
import { Logger } from './Logger'
import EventManager from './EventManager'
import VersionManager from './VersionManager'
import ManifestConfig from '../config/ManifestConfig' import ManifestConfig from '../config/ManifestConfig'
import ResourcePreload from '../../game/utils/ResourcePreload'
import CommonTips from '../uicomponent/CommonTips' import CommonTips from '../uicomponent/CommonTips'
import EventManager from './EventManager'
import { Logger } from './Logger'
import VersionManager from './VersionManager'
export default class HotUpdate { export default class HotUpdate {
public static Event_CheckUpdate: string = 'Event_CheckUpdate' public static Event_CheckUpdate: string = 'Event_CheckUpdate'
public static Event_On_Progress: string = 'HotUpdate_Event_On_Progress' public static Event_On_Progress: string = 'HotUpdate_Event_On_Progress'
public static Event_On_NeedUpdate: string = 'HotUpdate_Event_On_NeedUpdate' public static Event_On_NeedUpdate: string = 'HotUpdate_Event_On_NeedUpdate'
public static Event_Finish_Update: string = 'HotUpdate_Event_Finish' public static Event_Finish_Update: string = 'HotUpdate_Event_Finish'
public static Event_On_ALREADY_UP_TO_DATE: string = public static Event_On_ALREADY_UP_TO_DATE: string = 'HotUpdate_Event_On_ALREADY_UP_TO_DATE'
'HotUpdate_Event_On_ALREADY_UP_TO_DATE'
public static Event_On_Fail_Update: string = 'HotUpdate_Event_On_Fail_Update' public static Event_On_Fail_Update: string = 'HotUpdate_Event_On_Fail_Update'
private _am: any private _am: any
private _checkListener: null private _checkListener: null
@@ -27,21 +28,16 @@ export default class HotUpdate {
private key: string private key: string
private hotupdateIndex: number private hotupdateIndex: number
constructor() { constructor() {}
}
public init( public init(index: number, key: string = 'Code-remote-asset', manifestUrl: string) {
index: number,
key: string = 'Code-remote-asset',
manifestUrl: string
) {
if (sys.isNative) { if (sys.isNative) {
this.hotupdateIndex = index this.hotupdateIndex = index
this.key = key this.key = key
this.manifestUrl = manifestUrl this.manifestUrl = manifestUrl
this.storagePath = '获取this.storagePath报错了' this.storagePath = '获取this.storagePath报错了'
Logger.log(this, 'init removeDirectory=', this.storagePath + '_temp') Logger.log(this, 'init removeDirectory=', `${this.storagePath}_temp`)
} }
this.needUpdate = false this.needUpdate = false
this.isUpdating = false this.isUpdating = false
@@ -52,22 +48,11 @@ export default class HotUpdate {
private jumpToPack() { private jumpToPack() {
let url: string let url: string
if (sys.isNative) { if (sys.isNative) {
if (sys.os == sys.OS.ANDROID) { if (sys.os === sys.OS.ANDROID) url = VersionManager.instance.apkStoreUrl
url = VersionManager.instance.apkStoreUrl else if (sys.os === sys.OS.IOS) url = VersionManager.instance.iosStoreUrl
} else if (sys.os == sys.OS.IOS) {
url = VersionManager.instance.iosStoreUrl
} }
} Logger.info(this, 'jumpToPack==androidurl===', VersionManager.instance.apkStoreUrl)
Logger.info( Logger.info(this, 'jumpToPack==iosStoreUrl===', VersionManager.instance.iosStoreUrl)
this,
'jumpToPack==androidurl===',
VersionManager.instance.apkStoreUrl
)
Logger.info(
this,
'jumpToPack==iosStoreUrl===',
VersionManager.instance.iosStoreUrl
)
Logger.info(this, 'jumpToPack=====', url) Logger.info(this, 'jumpToPack=====', url)
sys.openURL(url) sys.openURL(url)
// cc.game.end(); // cc.game.end();
@@ -75,15 +60,13 @@ export default class HotUpdate {
// 显示强制更新,即更细包面板 // 显示强制更新,即更细包面板
private showPackUpdateDialog() { private showPackUpdateDialog() {
CommonTips.showMsg( CommonTips.showMsg('有新的版本需要更新,下载后请先卸载,以前的版本,再安装!')
'有新的版本需要更新,下载后请先卸载,以前的版本,再安装!'
)
this.jumpToPack() this.jumpToPack()
this.showPackUpdateDialog() this.showPackUpdateDialog()
} }
private checkCb(event: any) { private checkCb(event: any) {
Logger.log(this, 'checkCb Code: =================' + event.getEventCode()) Logger.log(this, `checkCb Code: =================${event.getEventCode()}`)
switch (event.getEventCode()) { switch (event.getEventCode()) {
case native.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST: case native.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
Logger.info(this, 'No local manifest file found, hot update skipped.') Logger.info(this, 'No local manifest file found, hot update skipped.')
@@ -103,10 +86,10 @@ export default class HotUpdate {
this, this,
'new version found, please try to update.', 'new version found, please try to update.',
this.localBigVersion, this.localBigVersion,
this.remoteBigVersion this.remoteBigVersion,
) )
if ( if (
this.key == VersionManager.Config_Key[0] && this.key === VersionManager.Config_Key[0] &&
this.localBigVersion < this.remoteBigVersion this.localBigVersion < this.remoteBigVersion
) { ) {
// 更新大版本 // 更新大版本
@@ -114,7 +97,7 @@ export default class HotUpdate {
this, this,
'new version found, please try to update======packupdate=', 'new version found, please try to update======packupdate=',
this.localBigVersion, this.localBigVersion,
this.remoteBigVersion this.remoteBigVersion,
) )
this.showPackUpdateDialog() this.showPackUpdateDialog()
} else { } else {
@@ -122,14 +105,11 @@ export default class HotUpdate {
this, this,
'new version found, please try to update======hotupdate=', 'new version found, please try to update======hotupdate=',
this.localBigVersion, this.localBigVersion,
this.remoteBigVersion this.remoteBigVersion,
) )
// this._am.update(); // this._am.update();
this.needUpdate = true this.needUpdate = true
EventManager.instance.dispatchEvent( EventManager.instance.dispatchEvent(HotUpdate.Event_On_NeedUpdate, this.key)
HotUpdate.Event_On_NeedUpdate,
this.key
)
} }
break break
case native.EventAssetsManager.UPDATE_PROGRESSION: case native.EventAssetsManager.UPDATE_PROGRESSION:
@@ -142,14 +122,14 @@ export default class HotUpdate {
'UPDATE_PROGRESSION2222==========', 'UPDATE_PROGRESSION2222==========',
this.key, this.key,
event.getDownloadedBytes(), event.getDownloadedBytes(),
event.getTotalBytes() event.getTotalBytes(),
) )
if (event.getTotalBytes() > 0) { if (event.getTotalBytes() > 0) {
EventManager.instance.dispatchEvent( EventManager.instance.dispatchEvent(
HotUpdate.Event_On_Progress, HotUpdate.Event_On_Progress,
event.getDownloadedBytes(), event.getDownloadedBytes(),
event.getTotalBytes(), event.getTotalBytes(),
this.key this.key,
) )
} }
break break
@@ -162,23 +142,16 @@ export default class HotUpdate {
this.failUpdate() this.failUpdate()
break break
case native.EventAssetsManager.ERROR_UPDATING: case native.EventAssetsManager.ERROR_UPDATING:
let fullFilePath: string = this.storagePath + '/' + event.getAssetId() const fullFilePath: string = `${this.storagePath}/${event.getAssetId()}`
let tempFilePath: string = const tempFilePath: string = `${this.storagePath}_temp/${event.getAssetId()}`
this.storagePath + '_temp/' + event.getAssetId()
Logger.warn(this, 'fullFilePath====', fullFilePath) Logger.warn(this, 'fullFilePath====', fullFilePath)
Logger.warn(this, 'tempFilePath====', tempFilePath) Logger.warn(this, 'tempFilePath====', tempFilePath)
// jsb.fileUtils.removeFile(tempFilePath); // jsb.fileUtils.removeFile(tempFilePath);
Logger.warn( Logger.warn(this, 'ERROR_UPDATING=============', event.getAssetId(), event.getMessage())
this,
'ERROR_UPDATING=============',
event.getAssetId(),
event.getMessage()
)
this.failUpdate() this.failUpdate()
break break
default: default:
// this.failUpdate(); // this.failUpdate();
return
} }
} }
@@ -187,21 +160,20 @@ export default class HotUpdate {
Logger.log(this, 'Checking or updating ...') Logger.log(this, 'Checking or updating ...')
return return
} }
let hotupdateUrlKey: string = const hotupdateUrlKey: string = VersionManager.Config_Url_Key[this.hotupdateIndex]
VersionManager.Config_Url_Key[this.hotupdateIndex]
Logger.log(this, 'checkoutUpdate=====', this.manifestUrl, hotupdateUrlKey) Logger.log(this, 'checkoutUpdate=====', this.manifestUrl, hotupdateUrlKey)
if (!this._am) { if (!this._am) {
this._am = new native.AssetsManager( this._am = new native.AssetsManager(
'', '',
this.storagePath, this.storagePath,
this.versionCompareHandle.bind(this) this.versionCompareHandle.bind(this),
) )
} }
// this._am.setMaxConcurrentTask(1); // this._am.setMaxConcurrentTask(1);
let manifestStr: string = ManifestConfig.getManifestStr(hotupdateUrlKey) const manifestStr: string = ManifestConfig.getManifestStr(hotupdateUrlKey)
Logger.log(this, 'checkUpdate=======manifestStr=======', manifestStr) Logger.log(this, 'checkUpdate=======manifestStr=======', manifestStr)
let manifest = new native.Manifest(manifestStr, this.storagePath) const manifest = new native.Manifest(manifestStr, this.storagePath)
this._am.setVerifyCallback(function(filePath, asset) { this._am.setVerifyCallback((filePath, asset) => {
return true return true
// var md5 = calculateMD5(filePath); // var md5 = calculateMD5(filePath);
// if (md5 === asset.md5) // if (md5 === asset.md5)
@@ -223,46 +195,33 @@ export default class HotUpdate {
private versionCompareHandle(versionA: string, versionB: string) { private versionCompareHandle(versionA: string, versionB: string) {
const vA = versionA.split('.') const vA = versionA.split('.')
const vB = versionB.split('.') const vB = versionB.split('.')
Logger.log( Logger.log(this, 'versionCompareHandle======', this.key, VersionManager.Config_Key[0])
this, if (this.key === VersionManager.Config_Key[0]) {
'versionCompareHandle======',
this.key,
VersionManager.Config_Key[0]
)
if (this.key == VersionManager.Config_Key[0]) {
Logger.log(this, 'versionCompareHandle22===', versionA, versionB) Logger.log(this, 'versionCompareHandle22===', versionA, versionB)
VersionManager.instance.nowVersion = versionA VersionManager.instance.nowVersion = versionA
VersionManager.instance.targetVersion = versionB VersionManager.instance.targetVersion = versionB
} }
this.localBigVersion = parseInt(vA[0]) this.localBigVersion = Number.parseInt(vA[0])
this.remoteBigVersion = parseInt(vB[0]) this.remoteBigVersion = Number.parseInt(vB[0])
for (let i = 0; i < vA.length; ++i) { for (let i = 0; i < vA.length; ++i) {
const a = parseInt(vA[i]) const a = Number.parseInt(vA[i])
const b = parseInt(vB[i] || '0') const b = Number.parseInt(vB[i] || '0')
if (a !== b) return a - b if (a !== b) return a - b
} }
if (vB.length > vA.length) { if (vB.length > vA.length) return -1
return -1 else return 0
} else {
return 0
}
} }
public startUpdate() { public startUpdate() {
if (this.isUpdating) return if (this.isUpdating) return
let localManifest = this._am.getLocalManifest() const localManifest = this._am.getLocalManifest()
let remoteManifest = this._am.getRemoteManifest() const remoteManifest = this._am.getRemoteManifest()
Logger.log(this, 'startUpdate111===', localManifest.getVersionFileUrl()) Logger.log(this, 'startUpdate111===', localManifest.getVersionFileUrl())
Logger.log(this, 'startUpdate2222===', localManifest.getManifestFileUrl()) Logger.log(this, 'startUpdate2222===', localManifest.getManifestFileUrl())
Logger.log(this, 'startUpdate3333===', remoteManifest.getVersionFileUrl()) Logger.log(this, 'startUpdate3333===', remoteManifest.getVersionFileUrl())
Logger.log(this, 'startUpdate4444===', remoteManifest.getManifestFileUrl()) Logger.log(this, 'startUpdate4444===', remoteManifest.getManifestFileUrl())
this.isUpdating = true this.isUpdating = true
EventManager.instance.dispatchEvent( EventManager.instance.dispatchEvent(HotUpdate.Event_On_Progress, 0, 100, this.key)
HotUpdate.Event_On_Progress,
0,
100,
this.key
)
this._am.update() this._am.update()
} }
@@ -280,42 +239,19 @@ export default class HotUpdate {
private failUpdate() { private failUpdate() {
this.disposeUpdate() this.disposeUpdate()
this.isCheck = false this.isCheck = false
EventManager.instance.dispatchEvent( EventManager.instance.dispatchEvent(HotUpdate.Event_On_Fail_Update, this.key)
HotUpdate.Event_On_Fail_Update,
this.key
)
} }
private alreadyUpToDate() { private alreadyUpToDate() {
this.disposeUpdate() this.disposeUpdate()
this.isFinishUpdate = true this.isFinishUpdate = true
EventManager.instance.dispatchEvent( EventManager.instance.dispatchEvent(HotUpdate.Event_On_ALREADY_UP_TO_DATE, this.key)
HotUpdate.Event_On_ALREADY_UP_TO_DATE,
this.key
)
} }
private finishUpdate(needRestart: boolean) { private finishUpdate(needRestart: boolean) {
Logger.info(this, '更新完成=====', needRestart) Logger.info(this, '更新完成=====', needRestart)
this.disposeUpdate() this.disposeUpdate()
this.isFinishUpdate = true this.isFinishUpdate = true
EventManager.instance.dispatchEvent( EventManager.instance.dispatchEvent(HotUpdate.Event_Finish_Update, this.key, needRestart)
HotUpdate.Event_Finish_Update,
this.key,
needRestart
)
if (false && needRestart) {
//暂时不想修 fileUtils 这个报错
var searchPaths = '' //jsb.fileUtils.getSearchPaths();暂时注释
Logger.info(this, '更新完成====searchPaths======', searchPaths)
sys.localStorage.setItem(
'HotUpdateSearchPaths',
JSON.stringify(searchPaths)
)
//jsb.fileUtils.setSearchPaths(searchPaths);暂时注释
if (this.key == VersionManager.Config_Key[0]) {
ResourcePreload.instance.restartGame()
}
}
} }
} }

View File

@@ -1,4 +1,5 @@
import { _decorator } from 'cc' import { _decorator } from 'cc'
import { Logger } from './Logger' import { Logger } from './Logger'
const { ccclass } = _decorator const { ccclass } = _decorator
@@ -27,12 +28,10 @@ export default class HttpClient {
let resParams = '' let resParams = ''
let nowIndex = 1 let nowIndex = 1
for (const key in paramsObj) { for (const key in paramsObj) {
if (paramsObj.hasOwnProperty(key)) { if (Object.prototype.hasOwnProperty.call(paramsObj, key)) {
if (nowIndex == 1) { if (nowIndex === 1) resParams += `${key}=${paramsObj[key]}`
resParams += key + '=' + paramsObj[key] else resParams += `&${key}=${paramsObj[key]}`
} else {
resParams += '&' + key + '=' + paramsObj[key]
}
nowIndex += 1 nowIndex += 1
} }
} }
@@ -44,41 +43,29 @@ export default class HttpClient {
this.responseType = responseType this.responseType = responseType
} }
public setContentType() { public setContentType() {}
}
public request( public request(url: string, callback: Function, params: any = null, timeOut: number = 5 * 1000) {
url: string, if (params && this.methodType === 'GET') {
callback: Function,
params: any = null,
timeOut: number = 5 * 1000
) {
if (params && this.methodType == 'GET') {
let getParams: string = this.setParams(params) let getParams: string = this.setParams(params)
// getParams = StringUtil:encodeURI(params) // getParams = StringUtil:encodeURI(params)
getParams = encodeURI(getParams) getParams = encodeURI(getParams)
url += '?' + getParams url += `?${getParams}`
} }
this.xhr = new XMLHttpRequest() // http请求 fget this.xhr = new XMLHttpRequest() // http请求 fget
// this.xhr = cc.loader.getXMLHttpRequest(); // this.xhr = cc.loader.getXMLHttpRequest();
let xhr: XMLHttpRequest = this.xhr const xhr: XMLHttpRequest = this.xhr
xhr.responseType = this.responseType xhr.responseType = this.responseType
xhr.timeout = timeOut xhr.timeout = timeOut
// xhr.setRequestHeader("Content-Type", "text/plain"); // xhr.setRequestHeader("Content-Type", "text/plain");
xhr.onreadystatechange = () => { xhr.onreadystatechange = () => {
Logger.log( Logger.log(this, 'status======', xhr.status, xhr.readyState, xhr.statusText)
this,
'status======',
xhr.status,
xhr.readyState,
xhr.statusText
)
// if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) { // if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) {
if (xhr.readyState == 4 && xhr.status == 200) { if (xhr.readyState === 4 && xhr.status === 200) {
let response = xhr.response const response = xhr.response
Logger.log(this, 'http response1============', xhr) Logger.log(this, 'http response1============', xhr)
try { try {
let testJson = JSON.stringify(response) const testJson = JSON.stringify(response)
Logger.log(this, 'http response json============', testJson) Logger.log(this, 'http response json============', testJson)
if (callback) { if (callback) {
callback(true, response) callback(true, response)
@@ -91,31 +78,21 @@ export default class HttpClient {
callback = null callback = null
} }
} }
} else if (xhr.readyState == 4 && xhr.status == 301) { } else if (xhr.readyState === 4 && xhr.status === 301) {
// 域名转移 // 域名转移
Logger.log( Logger.log(this, 'http response222============', xhr.getResponseHeader('Location'))
this,
'http response222============',
xhr.getResponseHeader('Location')
)
// console.log("http response333============", xhr.getAllResponseHeaders()); // console.log("http response333============", xhr.getAllResponseHeaders());
if (HttpClient.instance == null) HttpClient.instance = new HttpClient() if (HttpClient.instance == null) HttpClient.instance = new HttpClient()
HttpClient.instance.request(xhr.getResponseHeader('Location'), callback) HttpClient.instance.request(xhr.getResponseHeader('Location'), callback)
} else if (xhr.readyState == 4 && xhr.status == 404) { } else if (xhr.readyState === 4 && xhr.status === 404) {
Logger.log(this, 'http onError============') Logger.log(this, 'http onError============')
if (callback) { if (callback) {
callback(false) callback(false)
callback = null callback = null
} }
} else { } else {
Logger.log( Logger.log(this, 'onreadystatechange else====', xhr.status, xhr.readyState, xhr.response)
this, if (xhr.readyState === 4) {
'onreadystatechange else====',
xhr.status,
xhr.readyState,
xhr.response
)
if (xhr.readyState == 4) {
Logger.log(this, 'http onError else============') Logger.log(this, 'http onError else============')
if (callback) { if (callback) {
callback(false) callback(false)
@@ -125,13 +102,7 @@ export default class HttpClient {
} }
} }
xhr.onprogress = () => { xhr.onprogress = () => {
Logger.log( Logger.log(this, 'http onprogress===', xhr.status, xhr.readyState, xhr.response)
this,
'http onprogress===',
xhr.status,
xhr.readyState,
xhr.response
)
} }
xhr.onerror = () => { xhr.onerror = () => {
Logger.log(this, 'http onError============') Logger.log(this, 'http onError============')
@@ -155,6 +126,5 @@ export default class HttpClient {
xhr.send(params) xhr.send(params)
} }
public getInfo(callback: Function = null) { public getInfo(callback: Function = null) {}
}
} }

View File

@@ -16,11 +16,10 @@ export default class LocalStorage {
} }
public static getInt(key: string): number { public static getInt(key: string): number {
let tempValue: string = LocalStorage.getItem(key) const tempValue: string = LocalStorage.getItem(key)
let result: number = 0 let result: number = 0
if (tempValue) { if (tempValue) result = Number.parseInt(tempValue)
result = parseInt(tempValue)
}
return result return result
} }
@@ -29,11 +28,10 @@ export default class LocalStorage {
} }
public static getFloat(key: string): number { public static getFloat(key: string): number {
let tempValue: string = LocalStorage.getItem(key) const tempValue: string = LocalStorage.getItem(key)
let result: number = 0 let result: number = 0
if (tempValue) { if (tempValue) result = Number.parseFloat(tempValue)
result = parseFloat(tempValue)
}
return result return result
} }
@@ -42,19 +40,13 @@ export default class LocalStorage {
} }
public static getBoolean(key: string): boolean { public static getBoolean(key: string): boolean {
let temp: number = LocalStorage.getInt(key) const temp: number = LocalStorage.getInt(key)
if (temp == 1) { return temp === 1
return true
}
return false
} }
public static setBoolean(key: string, value: boolean) { public static setBoolean(key: string, value: boolean) {
if (value) { if (value) LocalStorage.setInt(key, 1)
LocalStorage.setInt(key, 1) else LocalStorage.setInt(key, 0)
} else {
LocalStorage.setInt(key, 0)
}
} }
public static clear() { public static clear() {

View File

@@ -16,123 +16,71 @@ export class Logger {
'color:#000;font-size:11px;', 'color:#000;font-size:11px;',
'color:#09f;font-size:12px;', 'color:#09f;font-size:12px;',
'color:#f90;font-size:13px;', 'color:#f90;font-size:13px;',
'color:#f00;font-size:15px;' 'color:#f00;font-size:15px;',
] ]
private static Terminal_Log: boolean = false private static Terminal_Log: boolean = false
public static formatNow() { public static formatNow() {
let date: Date = new Date() //后端返回的时间戳是秒 const date: Date = new Date() // 后端返回的时间戳是秒
return ( return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}:${date.getMilliseconds()}`
date.getFullYear() +
'-' +
(date.getMonth() + 1) +
'-' +
date.getDate() +
' ' +
date.getHours() +
':' +
date.getMinutes() +
':' +
date.getSeconds() +
':' +
date.getMilliseconds()
)
} }
private static getLogPreKey(nowLevel: number): string { private static getLogPreKey(nowLevel: number): string {
return '[' + return `[${Logger.formatNow()}] ${Logger.tag} [${Log_Level_Names[nowLevel]}] `
Logger.formatNow() +
'] ' +
Logger.tag +
' [' +
Log_Level_Names[nowLevel] +
'] '
} }
public static debug(...params: any) { public static debug(...params: any) {
if (Logger.LEVEL > LOG_LEVEL_TYPES.DEBUG) { if (Logger.LEVEL > LOG_LEVEL_TYPES.DEBUG)
return return
}
let str: string = this.getLogPreKey(LOG_LEVEL_TYPES.DEBUG) const str: string = this.getLogPreKey(LOG_LEVEL_TYPES.DEBUG)
let fileStr: string = str + params.join(' ') const fileStr: string = str + params.join(' ')
// LogErrorFileUtil.debug(fileStr); // LogErrorFileUtil.debug(fileStr);
if (this.Terminal_Log) { if (this.Terminal_Log)
console.log( console.log(`%c${str}`, this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG], ...params)
'%c' + str, else console.info(fileStr)
this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG],
...params
)
} else {
console.info(fileStr)
}
} }
public static log(...params: any) { public static log(...params: any) {
if (Logger.LEVEL > LOG_LEVEL_TYPES.LOG) { if (Logger.LEVEL > LOG_LEVEL_TYPES.LOG)
return return
}
let str: string = this.getLogPreKey(LOG_LEVEL_TYPES.LOG) const str: string = this.getLogPreKey(LOG_LEVEL_TYPES.LOG)
let fileStr: string = str + params.join(' ') const fileStr: string = str + params.join(' ')
// LogErrorFileUtil.log(fileStr); // LogErrorFileUtil.log(fileStr);
if (this.Terminal_Log) { if (this.Terminal_Log)
console.log( console.log(`%c${str}`, this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG], ...params)
'%c' + str, else console.info(fileStr) // console.log(str, ...params)
this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG],
...params
)
} else {
console.info(fileStr) //console.log(str, ...params)
}
} }
public static info(...params: any) { public static info(...params: any) {
if (Logger.LEVEL > LOG_LEVEL_TYPES.INFO) { if (Logger.LEVEL > LOG_LEVEL_TYPES.INFO) return
return const str: string = this.getLogPreKey(LOG_LEVEL_TYPES.INFO)
} const fileStr: string = str + params.join(' ')
let str: string = this.getLogPreKey(LOG_LEVEL_TYPES.INFO) if (this.Terminal_Log)
let fileStr: string = str + params.join(' ') console.info(`%c${str}`, this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG], ...params)
if (this.Terminal_Log) { else console.info(fileStr)
console.info(
'%c' + str,
this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG],
...params
)
} else {
console.info(fileStr)
}
} }
public static warn(...params: any) { public static warn(...params: any) {
if (Logger.LEVEL > LOG_LEVEL_TYPES.WARN) { if (Logger.LEVEL > LOG_LEVEL_TYPES.WARN)
return return
}
let str: string = this.getLogPreKey(LOG_LEVEL_TYPES.WARN) const str: string = this.getLogPreKey(LOG_LEVEL_TYPES.WARN)
let fileStr: string = str + params.join(' ') const fileStr: string = str + params.join(' ')
if (this.Terminal_Log) { if (this.Terminal_Log)
console.warn( console.warn(`%c${str}`, this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG], ...params)
'%c' + str, else console.warn(fileStr)
this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG],
...params
)
} else {
console.warn(fileStr)
}
} }
public static error(...params: any) { public static error(...params: any) {
if (Logger.LEVEL > LOG_LEVEL_TYPES.ERROR) { if (Logger.LEVEL > LOG_LEVEL_TYPES.ERROR) return
return
} const str: string = this.getLogPreKey(LOG_LEVEL_TYPES.ERROR)
let str: string = this.getLogPreKey(LOG_LEVEL_TYPES.ERROR) const fileStr: string = str + params.join(' ')
let fileStr: string = str + params.join(' ') if (this.Terminal_Log)
if (this.Terminal_Log) { console.error(`%c${str}`, this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG], ...params)
console.error( else console.error(fileStr)
'%c' + str,
this.Log_Color_Config[LOG_LEVEL_TYPES.DEBUG],
...params
)
} else {
console.error(fileStr)
}
} }
} }

View File

@@ -11,7 +11,7 @@ export default class MathUtils {
public static distance(x1: number, y1: number, x2: number, y2: number) { public static distance(x1: number, y1: number, x2: number, y2: number) {
// 设两点AX1,Y1,BX2,Y2 // 设两点AX1,Y1,BX2,Y2
// 距离D=X2-X1的平方+Y2-Y1平方的和开平方 // 距离D=X2-X1的平方+Y2-Y1平方的和开平方
return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)) return Math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)
} }
/** /**
@@ -45,7 +45,7 @@ export default class MathUtils {
* @param endP * @param endP
*/ */
public static p2pRad(startP: Vec2, endP: Vec2) { public static p2pRad(startP: Vec2, endP: Vec2) {
let rad: number = Math.atan2(endP.y - startP.y, endP.x - startP.x) const rad: number = Math.atan2(endP.y - startP.y, endP.x - startP.x)
return rad return rad
} }
@@ -54,11 +54,8 @@ export default class MathUtils {
* @param rot * @param rot
*/ */
public static rotation2Fish(rot: number) { public static rotation2Fish(rot: number) {
if (rot >= 0 && rot <= 180) { if (rot >= 0 && rot <= 180) rot = 180 - rot
rot = 180 - rot else rot = -180 - rot
} else {
rot = -180 - rot
}
return rot return rot
} }
} }

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