This commit is contained in:
2024-08-12 17:16:39 +08:00
parent dedc020bbd
commit 825457fd0e
28 changed files with 766 additions and 383 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -1,42 +0,0 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "4b3c006d-45c8-414e-a0c7-65b024f623c8",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "4b3c006d-45c8-414e-a0c7-65b024f623c8@6c48a",
"displayName": "1002",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "4b3c006d-45c8-414e-a0c7-65b024f623c8",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "texture",
"fixAlphaTransparencyArtifacts": false,
"redirect": "4b3c006d-45c8-414e-a0c7-65b024f623c8@6c48a"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,42 +0,0 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "437161f5-6e85-460a-ac1e-40c006f36a7c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "437161f5-6e85-460a-ac1e-40c006f36a7c@6c48a",
"displayName": "1003",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "437161f5-6e85-460a-ac1e-40c006f36a7c",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "texture",
"fixAlphaTransparencyArtifacts": false,
"redirect": "437161f5-6e85-460a-ac1e-40c006f36a7c@6c48a"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -1,42 +0,0 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "484cb07a-e92e-4ed3-a82c-48a8da5635e9",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "484cb07a-e92e-4ed3-a82c-48a8da5635e9@6c48a",
"displayName": "1004",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "484cb07a-e92e-4ed3-a82c-48a8da5635e9",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "texture",
"fixAlphaTransparencyArtifacts": false,
"redirect": "484cb07a-e92e-4ed3-a82c-48a8da5635e9@6c48a"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -1,42 +0,0 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "a2757e6d-39dd-45b3-9b54-9750a81bcbad",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a2757e6d-39dd-45b3-9b54-9750a81bcbad@6c48a",
"displayName": "1011",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "a2757e6d-39dd-45b3-9b54-9750a81bcbad",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "texture",
"fixAlphaTransparencyArtifacts": false,
"redirect": "a2757e6d-39dd-45b3-9b54-9750a81bcbad@6c48a"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -1,42 +0,0 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "ea20b981-20e0-4620-b007-5100919e2198",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ea20b981-20e0-4620-b007-5100919e2198@6c48a",
"displayName": "1012",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "ea20b981-20e0-4620-b007-5100919e2198",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "texture",
"fixAlphaTransparencyArtifacts": false,
"redirect": "ea20b981-20e0-4620-b007-5100919e2198@6c48a"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -1,42 +0,0 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "c5dce644-69ff-49bd-bec0-0d1efe95d2fe",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c5dce644-69ff-49bd-bec0-0d1efe95d2fe@6c48a",
"displayName": "1101",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "c5dce644-69ff-49bd-bec0-0d1efe95d2fe",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "texture",
"fixAlphaTransparencyArtifacts": false,
"redirect": "c5dce644-69ff-49bd-bec0-0d1efe95d2fe@6c48a"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -1,42 +0,0 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "7481f209-9fba-42c6-9598-28dd2a12b615",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "7481f209-9fba-42c6-9598-28dd2a12b615@6c48a",
"displayName": "1102",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "7481f209-9fba-42c6-9598-28dd2a12b615",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "texture",
"fixAlphaTransparencyArtifacts": false,
"redirect": "7481f209-9fba-42c6-9598-28dd2a12b615@6c48a"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,42 +0,0 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "1cf77461-bf11-4314-897d-75e0401ad8f8",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "1cf77461-bf11-4314-897d-75e0401ad8f8@6c48a",
"displayName": "1201",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "1cf77461-bf11-4314-897d-75e0401ad8f8",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "texture",
"fixAlphaTransparencyArtifacts": false,
"redirect": "1cf77461-bf11-4314-897d-75e0401ad8f8@6c48a"
}
}

View File

@@ -0,0 +1,146 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>1001.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,-8}</string>
<key>spriteSize</key>
<string>{88,89}</string>
<key>spriteSourceSize</key>
<string>{100,105}</string>
<key>textureRect</key>
<string>{{106,1},{88,89}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>1002.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-2,-1}</string>
<key>spriteSize</key>
<string>{84,103}</string>
<key>spriteSourceSize</key>
<string>{100,105}</string>
<key>textureRect</key>
<string>{{1,1},{84,103}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>1003.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,-1}</string>
<key>spriteSize</key>
<string>{80,103}</string>
<key>spriteSourceSize</key>
<string>{100,105}</string>
<key>textureRect</key>
<string>{{1,87},{80,103}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>1004.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-2,-6}</string>
<key>spriteSize</key>
<string>{80,93}</string>
<key>spriteSourceSize</key>
<string>{100,105}</string>
<key>textureRect</key>
<string>{{100,173},{80,93}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>1012.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,-8}</string>
<key>spriteSize</key>
<string>{80,89}</string>
<key>spriteSourceSize</key>
<string>{80,105}</string>
<key>textureRect</key>
<string>{{106,91},{80,89}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>1101.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-8}</string>
<key>spriteSize</key>
<string>{76,89}</string>
<key>spriteSourceSize</key>
<string>{80,105}</string>
<key>textureRect</key>
<string>{{1,263},{76,89}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>1102.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-8}</string>
<key>spriteSize</key>
<string>{76,89}</string>
<key>spriteSourceSize</key>
<string>{100,105}</string>
<key>textureRect</key>
<string>{{92,263},{76,89}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>1201.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,-4}</string>
<key>spriteSize</key>
<string>{92,97}</string>
<key>spriteSourceSize</key>
<string>{100,105}</string>
<key>textureRect</key>
<string>{{1,169},{92,97}}</string>
<key>textureRotated</key>
<true/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>format</key>
<integer>3</integer>
<key>pixelFormat</key>
<string>RGBA8888</string>
<key>premultiplyAlpha</key>
<false/>
<key>realTextureFileName</key>
<string>heros.png</string>
<key>size</key>
<string>{196,340}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:ba9f8fd13a3d9a9d58ae0ea08aed506d:6db790d4ed1dcd0f40cb034a6b5f2ff7:757b9ddd41d3352a4ebb204a2b6924d3$</string>
<key>textureFileName</key>
<string>heros.png</string>
</dict>
</dict>
</plist>

View File

@@ -0,0 +1,385 @@
{
"ver": "1.0.8",
"importer": "sprite-atlas",
"imported": true,
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598",
"files": [
".json"
],
"subMetas": {
"b3f5a": {
"importer": "sprite-frame",
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@b3f5a",
"displayName": "",
"id": "b3f5a",
"name": "1001",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": -8,
"trimX": 106,
"trimY": 1,
"width": 88,
"height": 89,
"rawWidth": 100,
"rawHeight": 105,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f8120": {
"importer": "sprite-frame",
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@f8120",
"displayName": "",
"id": "f8120",
"name": "1002",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": -2,
"offsetY": -1,
"trimX": 1,
"trimY": 1,
"width": 84,
"height": 103,
"rawWidth": 100,
"rawHeight": 105,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"a59f6": {
"importer": "sprite-frame",
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@a59f6",
"displayName": "",
"id": "a59f6",
"name": "1003",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": -1,
"trimX": 1,
"trimY": 87,
"width": 80,
"height": 103,
"rawWidth": 100,
"rawHeight": 105,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f948a": {
"importer": "sprite-frame",
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@f948a",
"displayName": "",
"id": "f948a",
"name": "1004",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": -2,
"offsetY": -6,
"trimX": 100,
"trimY": 173,
"width": 80,
"height": 93,
"rawWidth": 100,
"rawHeight": 105,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f58a6": {
"importer": "sprite-frame",
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@f58a6",
"displayName": "",
"id": "f58a6",
"name": "1012",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": -8,
"trimX": 106,
"trimY": 91,
"width": 80,
"height": 89,
"rawWidth": 80,
"rawHeight": 105,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"c29c5": {
"importer": "sprite-frame",
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@c29c5",
"displayName": "",
"id": "c29c5",
"name": "1101",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": -1,
"offsetY": -8,
"trimX": 1,
"trimY": 263,
"width": 76,
"height": 89,
"rawWidth": 80,
"rawHeight": 105,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"c3a1e": {
"importer": "sprite-frame",
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@c3a1e",
"displayName": "",
"id": "c3a1e",
"name": "1102",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": -1,
"offsetY": -8,
"trimX": 92,
"trimY": 263,
"width": 76,
"height": 89,
"rawWidth": 100,
"rawHeight": 105,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"7dd7d": {
"importer": "sprite-frame",
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@7dd7d",
"displayName": "",
"id": "7dd7d",
"name": "1201",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": -4,
"trimX": 1,
"trimY": 169,
"width": 92,
"height": 97,
"rawWidth": 100,
"rawHeight": 105,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"atlasTextureName": "heros.png",
"format": 3,
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598",
"textureUuid": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "55b3f5b8-c97f-45fe-8971-b253ee5f4add",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"displayName": "heros",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@f9941",
"displayName": "heros",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 0,
"trimX": 0,
"trimY": 2,
"width": 194,
"height": 336,
"rawWidth": 196,
"rawHeight": 340,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-97,
-168,
0,
97,
-168,
0,
-97,
168,
0,
97,
168,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
338,
194,
338,
0,
2,
194,
2
],
"nuv": [
0,
0.0058823529411764705,
0.9897959183673469,
0.0058823529411764705,
0,
0.9941176470588236,
0.9897959183673469,
0.9941176470588236
],
"minPos": [
-97,
-168,
0
],
"maxPos": [
97,
168,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": false,
"redirect": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@f9941"
}
}

View File

@@ -25,18 +25,14 @@ export class Main extends Root {
protected async run() {
smc.initialize = ecs.getEntity<Initialize>(Initialize);
smc.monsters = [
{prefab_path:'lang',name:'迅狼',speed:100},
{prefab_path:'hero',name:'火猴',speed:45},
{prefab_path:'lang',name:'m3',speed:40},
{prefab_path:'lang',name:'m4',speed:40},
{prefab_path:'lang',name:'m3',speed:40},
{prefab_path:'lang',name:'m4',speed:40},
]
smc.heros = [
{prefab_path:'lang',name:'迅狼',speed:110},
{prefab_path:'liubang',name:'刘邦',speed:110},
{prefab_path:'yinzheng',name:'嬴政',speed:110},
{uuid:1102},
{uuid:1102},
{uuid:1102},
{uuid:1201},
{uuid:1201},
{uuid:1201},
]
console.log("Game start");
smc.vmAdd()
}

View File

@@ -4,18 +4,45 @@
* @LastEditors: dgflash
* @LastEditTime: 2022-01-26 16:42:00
*/
export const CardType = {
1: "前排",
2: "后排",
}
export const CardList={
1:[1001,1002,1003,1102],
2:[1001,1002,1003,1004,1102,1201],
3:[1001,1002,1003,1004,1102,1201],
4:[1001,1002,1003,1004,1102,1201],
5:[1001,1002,1003,1004,1102,1201],
6:[1001,1002,1003,1004,1102,1201],
}
export const CardSet = {
1001:{
uuid:1001,
name:'护盾战士',
level:1,
prefab_path:'yinzheng',
atk:2,
hp:10,
power:50, //每0.1秒增加1能量
speed:50,
uuid:1001, name:'护盾战士', type:1, level:1,prefab_path:1001,atk:1,atk_cd:1.5, hp:20, power:50, speed:50,
skill:{ }
},
1002:{
uuid:1002, name:'无名法师', type:2, level:1,prefab_path:1002,atk:3,atk_cd:1.5, hp:10, power:50, speed:50,
skill:{ }
},
1003:{
uuid:1003, name:'无名战士', type:1, level:1,prefab_path:1003,atk:2, atk_cd:1.5, hp:15, power:50, speed:50,
skill:{ }
},
1102:{
uuid:1102, name:'骷髅士兵', type:1, level:1,prefab_path:1102,atk:2,atk_cd:1.5, hp:10, power:50, speed:50,
skill:{ }
},
1004:{
uuid:1004, name:'火焰法师', type:2, level:2,prefab_path:1004,atk:4,atk_cd:1.5, hp:15, power:50, speed:50,
skill:{ }
},
1201:{
uuid:1201, name:'猎寻狼', type:1, level:2,prefab_path:1201,atk:5,atk_cd:1.5, hp:20, power:100, speed:100,
skill:{ }
},
}

View File

@@ -5,13 +5,15 @@ import { smc } from "../common/SingletonModuleComp";
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
import { HeroCard } from "../monster/HeroCard";
import { HeroCardViewComp } from "../monster/HeroCardViewComp";
import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager";
import { CardList } from "../common/config/CardSet";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@ccclass('ControllerComp')
@ecs.register('Controller', false)
export class ControllerComp extends CCComp {
/** 视图层逻辑代码分离演示 */
card_level = 1;
start() {
this.load_cards()
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
@@ -29,7 +31,6 @@ export class ControllerComp extends CCComp {
smc.vm_data.shuaxin.min += smc.vm_data.shuaxin.speed*dt;
if (smc.vm_data.shuaxin.min >= smc.vm_data.shuaxin.max) {
smc.vm_data.shuaxin.min = 0;
// oops.message.dispatchEvent("do_add_hero",this)
this.load_cards()
}
}
@@ -44,12 +45,13 @@ export class ControllerComp extends CCComp {
let cards_node= this.node.getChildByName("cards")
let x=0
let y=0
for (let i = 0; i < 5; i++) {
let lists = this.get_card_list()
lists.forEach(element => {
let card = ecs.getEntity<HeroCard>(HeroCard);
let pos = v3(x,y)
card.load(pos,1001,cards_node);
card.load(pos,element[0],cards_node);
x=x+120
}
});
this.node.getChildByName("cards").getChildByName("active").active = false
}
/** 转场 */
@@ -57,6 +59,14 @@ export class ControllerComp extends CCComp {
this.shuaxin(dt)
}
get_card_list(){
let lists:any = []
for (let index = 0; index < 5; index++) {
let list = RandomManager.instance.getRandomByObjectList(CardList[this.card_level], 1);
lists.push(list)
}
return lists
}
/** 视图对象通过 ecs.Entity.remove(ControllerComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {
this.node.destroy();

View File

@@ -60,7 +60,10 @@ export class MapViewComp extends CCComp {
this.gold_add(dt)
}
monster_refresh(){
this.addMonster(1001)
if(smc.monsters.length > 0 ){
this.addMonster(smc.monsters[0].uuid)
}
}
gold_add(dt: number) {
smc.vm_data.gold.time += dt;
@@ -92,6 +95,7 @@ export class MapViewComp extends CCComp {
let pos:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE)
let camp = -1
monster.load(pos,camp,uuid);
smc.monsters.splice(0,1)
}

View File

@@ -5,7 +5,7 @@
* @LastEditors: dgflash
* @LastEditTime: 2022-08-04 15:43:04
*/
import { instantiate, Node, Prefab, Vec3,v3,resources,SpriteFrame,Sprite} from "cc";
import { instantiate, Node, Prefab, Vec3,v3,resources,SpriteFrame,Sprite,SpriteAtlas} from "cc";
import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines";
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
@@ -48,11 +48,11 @@ export class Hero extends ecs.Entity {
node.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*camp, node.getChildByName("avatar").scale.y, node.getChildByName("avatar").scale.z);
node.setPosition(pos)
// console.log(node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite))
const url = 'game/heros/hero/'+CardSet[uuid].prefab_path+'/spriteFrame';
resources.load(url, SpriteFrame, (err: any, spriteFrame) => {
const url = 'game/heros/hero/heros';
resources.load(url, SpriteAtlas, (err: any, atlas) => {
const sprite = node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite);
sprite.spriteFrame = spriteFrame;
sprite.spriteFrame = atlas.getSpriteFrame(CardSet[uuid].prefab_path);
});
this.hero_init(uuid,node)
oops.message.dispatchEvent("hero_load",this)
@@ -62,6 +62,12 @@ export class Hero extends ecs.Entity {
var mv = node.getComponent(MonsterViewComp)!;
mv.speed =mv.ospeed = CardSet[uuid].speed;
mv.hero_name= CardSet[uuid].name;
mv.hp= mv.hp_max = CardSet[uuid].hp;
mv.level = CardSet[uuid].level;
mv.atk = CardSet[uuid].atk;
mv.atk_cd = CardSet[uuid].atk_cd;
mv.power = CardSet[uuid].power;
mv.type = CardSet[uuid].type;
mv.Tpos = v3(0,0,0);
mv.camp = 1;
mv.change_name(CardSet[uuid].name,1)

View File

@@ -5,7 +5,7 @@
* @LastEditors: dgflash
* @LastEditTime: 2022-08-04 15:43:04
*/
import { instantiate, Node, Prefab, Vec3 ,tween, v3,Collider2D,Contact2DType,PhysicsSystem2D,IPhysics2DContact, animation,Label,resources,SpriteFrame,Sprite} from "cc";
import { instantiate, Node, Prefab, Vec3 ,tween, v3,SpriteAtlas,Label,resources,SpriteFrame,Sprite} from "cc";
import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines";
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
@@ -34,6 +34,7 @@ export class HeroCard extends ecs.Entity {
/** 加载角色 */
load(pos: Vec3 = Vec3.ZERO,uuid:number=1001,parent:Node) {
console.log("load hero",uuid);
// var path = "game/monster/"+prefab_path;
var path = "game/heros/cards/hero_card";
var prefab: Prefab = oops.res.get(path, Prefab)!;
@@ -42,17 +43,17 @@ export class HeroCard extends ecs.Entity {
// node.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*camp, node.getChildByName("avatar").scale.y, node.getChildByName("avatar").scale.z);
node.setPosition(pos)
const url = 'game/heros/hero/heros';
resources.load(url, SpriteAtlas, (err: any, atlas) => {
const sprite = node.getChildByName("hero").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(CardSet[uuid].prefab_path);
});
var hcv = node.getComponent(HeroCardViewComp)!;
hcv.card_name=CardSet[uuid].name
hcv.card_uid=uuid
this.add(hcv);
// // console.log(node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite))
// const url = 'game/heros/hero/'+prefab_path+'/spriteFrame';
// resources.load(url, SpriteFrame, (err: any, spriteFrame) => {
// const sprite = node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite);
// sprite.spriteFrame = spriteFrame;
// });
}

View File

@@ -5,7 +5,7 @@
* @LastEditors: dgflash
* @LastEditTime: 2022-08-04 15:43:04
*/
import { instantiate, Node, Prefab, Vec3 ,v3,resources,SpriteFrame,Sprite,} from "cc";
import { instantiate, Node, Prefab, Vec3 ,v3,resources,SpriteFrame,Sprite,SpriteAtlas} from "cc";
import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines";
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
@@ -48,11 +48,11 @@ export class Monster extends ecs.Entity {
node.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*camp, node.getChildByName("avatar").scale.y, node.getChildByName("avatar").scale.z);
node.setPosition(pos)
// console.log(node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite))
const url = 'game/heros/hero/'+CardSet[uuid].prefab_path+'/spriteFrame';
resources.load(url, SpriteFrame, (err: any, spriteFrame) => {
const url = 'game/heros/hero/heros';
resources.load(url, SpriteAtlas, (err: any, atlas) => {
const sprite = node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite);
sprite.spriteFrame = spriteFrame;
sprite.spriteFrame = atlas.getSpriteFrame(CardSet[uuid].prefab_path);
});
this.hero_init(uuid,node)
oops.message.dispatchEvent("monster_load",this)
@@ -61,6 +61,12 @@ export class Monster extends ecs.Entity {
var mv = node.getComponent(MonsterViewComp)!;
mv.speed =mv.ospeed = CardSet[uuid].speed;
mv.hero_name= CardSet[uuid].name;
mv.hp= mv.hp_max = CardSet[uuid].hp;
mv.level = CardSet[uuid].level;
mv.atk = CardSet[uuid].atk;
mv.atk_cd = CardSet[uuid].atk_cd;
mv.power = CardSet[uuid].power;
mv.type = CardSet[uuid].type;
mv.camp = -1;
mv.Tpos = v3(0,0,0);
mv.change_name(CardSet[uuid].name,-1)

View File

@@ -18,6 +18,7 @@ import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/O
import { baseCom } from "../skills/baseCom";
import { Skill } from "../skills/Skill";
import { Timer } from "../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer";
import { SkillCom } from "../skills/SkillCom";
const { ccclass, property } = _decorator;
/** 角色显示组件 */
@@ -27,6 +28,7 @@ export class MonsterViewComp extends CCComp {
/** 角色动画 */
as: MonsterSpine = null!;
hero_name : string = "hero";
level:number =1;
camp: number = 1; /** 角色阵营 1hero -1 :monster */
type: number = 1; /**角色类型 1前排 2 后排 */
state: number = 1; /** 状态 1move ,2: act 3: stop */
@@ -90,8 +92,10 @@ export class MonsterViewComp extends CCComp {
// }
onPostSolve (selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) {
if(otherCollider.group== BoxSet.HERO_SKILL || otherCollider.group== BoxSet.MONSTER_SKILL){
let skill = otherCollider.node.getComponent(SkillCom)!;
// console.log('onPostSolve',skill);
this.in_atked();
this.hp_change(10);
this.hp_change(skill.atk);
}
// switch (selfCollider.group) {
// case BoxSet.HERO: