ddd
This commit is contained in:
9
assets/resources/game/heros/hero.meta
Normal file
9
assets/resources/game/heros/hero.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.0",
|
||||||
|
"importer": "directory",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "9977e498-4276-46a2-af0d-e3d8473aca8b",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
BIN
assets/resources/game/heros/hero/bf.png
Normal file
BIN
assets/resources/game/heros/hero/bf.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
134
assets/resources/game/heros/hero/bf.png.meta
Normal file
134
assets/resources/game/heros/hero/bf.png.meta
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.26",
|
||||||
|
"importer": "image",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "f7dbac7e-73ec-4c47-8bfa-e037b69faad9",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".png"
|
||||||
|
],
|
||||||
|
"subMetas": {
|
||||||
|
"6c48a": {
|
||||||
|
"importer": "texture",
|
||||||
|
"uuid": "f7dbac7e-73ec-4c47-8bfa-e037b69faad9@6c48a",
|
||||||
|
"displayName": "bf",
|
||||||
|
"id": "6c48a",
|
||||||
|
"name": "texture",
|
||||||
|
"userData": {
|
||||||
|
"wrapModeS": "clamp-to-edge",
|
||||||
|
"wrapModeT": "clamp-to-edge",
|
||||||
|
"minfilter": "linear",
|
||||||
|
"magfilter": "linear",
|
||||||
|
"mipfilter": "none",
|
||||||
|
"anisotropy": 0,
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "f7dbac7e-73ec-4c47-8bfa-e037b69faad9",
|
||||||
|
"visible": false
|
||||||
|
},
|
||||||
|
"ver": "1.0.22",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"f9941": {
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"uuid": "f7dbac7e-73ec-4c47-8bfa-e037b69faad9@f9941",
|
||||||
|
"displayName": "bf",
|
||||||
|
"id": "f9941",
|
||||||
|
"name": "spriteFrame",
|
||||||
|
"userData": {
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 3,
|
||||||
|
"trimY": 3,
|
||||||
|
"width": 90,
|
||||||
|
"height": 102,
|
||||||
|
"rawWidth": 96,
|
||||||
|
"rawHeight": 108,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"packable": true,
|
||||||
|
"pixelsToUnit": 100,
|
||||||
|
"pivotX": 0.5,
|
||||||
|
"pivotY": 0.5,
|
||||||
|
"meshType": 0,
|
||||||
|
"vertices": {
|
||||||
|
"rawPosition": [
|
||||||
|
-45,
|
||||||
|
-51,
|
||||||
|
0,
|
||||||
|
45,
|
||||||
|
-51,
|
||||||
|
0,
|
||||||
|
-45,
|
||||||
|
51,
|
||||||
|
0,
|
||||||
|
45,
|
||||||
|
51,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"indexes": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
3,
|
||||||
|
105,
|
||||||
|
93,
|
||||||
|
105,
|
||||||
|
3,
|
||||||
|
3,
|
||||||
|
93,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"nuv": [
|
||||||
|
0.03125,
|
||||||
|
0.027777777777777776,
|
||||||
|
0.96875,
|
||||||
|
0.027777777777777776,
|
||||||
|
0.03125,
|
||||||
|
0.9722222222222222,
|
||||||
|
0.96875,
|
||||||
|
0.9722222222222222
|
||||||
|
],
|
||||||
|
"minPos": [
|
||||||
|
-45,
|
||||||
|
-51,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"maxPos": [
|
||||||
|
45,
|
||||||
|
51,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "f7dbac7e-73ec-4c47-8bfa-e037b69faad9@6c48a",
|
||||||
|
"atlasUuid": ""
|
||||||
|
},
|
||||||
|
"ver": "1.0.12",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"userData": {
|
||||||
|
"hasAlpha": true,
|
||||||
|
"type": "sprite-frame",
|
||||||
|
"fixAlphaTransparencyArtifacts": false,
|
||||||
|
"redirect": "f7dbac7e-73ec-4c47-8bfa-e037b69faad9@f9941"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/resources/game/heros/hero/hero.png
Normal file
BIN
assets/resources/game/heros/hero/hero.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
134
assets/resources/game/heros/hero/hero.png.meta
Normal file
134
assets/resources/game/heros/hero/hero.png.meta
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.26",
|
||||||
|
"importer": "image",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "c05c3659-4264-42fb-87e8-f43e6422dd43",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".png"
|
||||||
|
],
|
||||||
|
"subMetas": {
|
||||||
|
"6c48a": {
|
||||||
|
"importer": "texture",
|
||||||
|
"uuid": "c05c3659-4264-42fb-87e8-f43e6422dd43@6c48a",
|
||||||
|
"displayName": "hero",
|
||||||
|
"id": "6c48a",
|
||||||
|
"name": "texture",
|
||||||
|
"userData": {
|
||||||
|
"wrapModeS": "clamp-to-edge",
|
||||||
|
"wrapModeT": "clamp-to-edge",
|
||||||
|
"minfilter": "linear",
|
||||||
|
"magfilter": "linear",
|
||||||
|
"mipfilter": "none",
|
||||||
|
"anisotropy": 0,
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "c05c3659-4264-42fb-87e8-f43e6422dd43",
|
||||||
|
"visible": false
|
||||||
|
},
|
||||||
|
"ver": "1.0.22",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"f9941": {
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"uuid": "c05c3659-4264-42fb-87e8-f43e6422dd43@f9941",
|
||||||
|
"displayName": "hero",
|
||||||
|
"id": "f9941",
|
||||||
|
"name": "spriteFrame",
|
||||||
|
"userData": {
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 96,
|
||||||
|
"height": 108,
|
||||||
|
"rawWidth": 96,
|
||||||
|
"rawHeight": 108,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"packable": true,
|
||||||
|
"pixelsToUnit": 100,
|
||||||
|
"pivotX": 0.5,
|
||||||
|
"pivotY": 0.5,
|
||||||
|
"meshType": 0,
|
||||||
|
"vertices": {
|
||||||
|
"rawPosition": [
|
||||||
|
-48,
|
||||||
|
-54,
|
||||||
|
0,
|
||||||
|
48,
|
||||||
|
-54,
|
||||||
|
0,
|
||||||
|
-48,
|
||||||
|
54,
|
||||||
|
0,
|
||||||
|
48,
|
||||||
|
54,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"indexes": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
108,
|
||||||
|
96,
|
||||||
|
108,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
96,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"nuv": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"minPos": [
|
||||||
|
-48,
|
||||||
|
-54,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"maxPos": [
|
||||||
|
48,
|
||||||
|
54,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "c05c3659-4264-42fb-87e8-f43e6422dd43@6c48a",
|
||||||
|
"atlasUuid": ""
|
||||||
|
},
|
||||||
|
"ver": "1.0.12",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"userData": {
|
||||||
|
"hasAlpha": true,
|
||||||
|
"type": "sprite-frame",
|
||||||
|
"fixAlphaTransparencyArtifacts": false,
|
||||||
|
"redirect": "c05c3659-4264-42fb-87e8-f43e6422dd43@f9941"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/resources/game/heros/hero/lang.png
Normal file
BIN
assets/resources/game/heros/hero/lang.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
134
assets/resources/game/heros/hero/lang.png.meta
Normal file
134
assets/resources/game/heros/hero/lang.png.meta
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.26",
|
||||||
|
"importer": "image",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "94c32520-2d16-4a94-ab6b-94794e10711a",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".png"
|
||||||
|
],
|
||||||
|
"subMetas": {
|
||||||
|
"6c48a": {
|
||||||
|
"importer": "texture",
|
||||||
|
"uuid": "94c32520-2d16-4a94-ab6b-94794e10711a@6c48a",
|
||||||
|
"displayName": "lang",
|
||||||
|
"id": "6c48a",
|
||||||
|
"name": "texture",
|
||||||
|
"userData": {
|
||||||
|
"wrapModeS": "clamp-to-edge",
|
||||||
|
"wrapModeT": "clamp-to-edge",
|
||||||
|
"minfilter": "linear",
|
||||||
|
"magfilter": "linear",
|
||||||
|
"mipfilter": "none",
|
||||||
|
"anisotropy": 0,
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "94c32520-2d16-4a94-ab6b-94794e10711a",
|
||||||
|
"visible": false
|
||||||
|
},
|
||||||
|
"ver": "1.0.22",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"f9941": {
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"uuid": "94c32520-2d16-4a94-ab6b-94794e10711a@f9941",
|
||||||
|
"displayName": "lang",
|
||||||
|
"id": "f9941",
|
||||||
|
"name": "spriteFrame",
|
||||||
|
"userData": {
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 96,
|
||||||
|
"height": 108,
|
||||||
|
"rawWidth": 96,
|
||||||
|
"rawHeight": 108,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"packable": true,
|
||||||
|
"pixelsToUnit": 100,
|
||||||
|
"pivotX": 0.5,
|
||||||
|
"pivotY": 0.5,
|
||||||
|
"meshType": 0,
|
||||||
|
"vertices": {
|
||||||
|
"rawPosition": [
|
||||||
|
-48,
|
||||||
|
-54,
|
||||||
|
0,
|
||||||
|
48,
|
||||||
|
-54,
|
||||||
|
0,
|
||||||
|
-48,
|
||||||
|
54,
|
||||||
|
0,
|
||||||
|
48,
|
||||||
|
54,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"indexes": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
108,
|
||||||
|
96,
|
||||||
|
108,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
96,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"nuv": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"minPos": [
|
||||||
|
-48,
|
||||||
|
-54,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"maxPos": [
|
||||||
|
48,
|
||||||
|
54,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "94c32520-2d16-4a94-ab6b-94794e10711a@6c48a",
|
||||||
|
"atlasUuid": ""
|
||||||
|
},
|
||||||
|
"ver": "1.0.12",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"userData": {
|
||||||
|
"hasAlpha": true,
|
||||||
|
"type": "sprite-frame",
|
||||||
|
"fixAlphaTransparencyArtifacts": false,
|
||||||
|
"redirect": "94c32520-2d16-4a94-ab6b-94794e10711a@f9941"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/resources/game/heros/hero/level.png
Normal file
BIN
assets/resources/game/heros/hero/level.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
134
assets/resources/game/heros/hero/level.png.meta
Normal file
134
assets/resources/game/heros/hero/level.png.meta
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.26",
|
||||||
|
"importer": "image",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "689c4ea2-894d-42c8-a3c3-7c91d17a8197",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".png"
|
||||||
|
],
|
||||||
|
"subMetas": {
|
||||||
|
"6c48a": {
|
||||||
|
"importer": "texture",
|
||||||
|
"uuid": "689c4ea2-894d-42c8-a3c3-7c91d17a8197@6c48a",
|
||||||
|
"displayName": "level",
|
||||||
|
"id": "6c48a",
|
||||||
|
"name": "texture",
|
||||||
|
"userData": {
|
||||||
|
"wrapModeS": "clamp-to-edge",
|
||||||
|
"wrapModeT": "clamp-to-edge",
|
||||||
|
"minfilter": "linear",
|
||||||
|
"magfilter": "linear",
|
||||||
|
"mipfilter": "none",
|
||||||
|
"anisotropy": 0,
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "689c4ea2-894d-42c8-a3c3-7c91d17a8197",
|
||||||
|
"visible": false
|
||||||
|
},
|
||||||
|
"ver": "1.0.22",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"f9941": {
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"uuid": "689c4ea2-894d-42c8-a3c3-7c91d17a8197@f9941",
|
||||||
|
"displayName": "level",
|
||||||
|
"id": "f9941",
|
||||||
|
"name": "spriteFrame",
|
||||||
|
"userData": {
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 26,
|
||||||
|
"height": 26,
|
||||||
|
"rawWidth": 26,
|
||||||
|
"rawHeight": 26,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"packable": true,
|
||||||
|
"pixelsToUnit": 100,
|
||||||
|
"pivotX": 0.5,
|
||||||
|
"pivotY": 0.5,
|
||||||
|
"meshType": 0,
|
||||||
|
"vertices": {
|
||||||
|
"rawPosition": [
|
||||||
|
-13,
|
||||||
|
-13,
|
||||||
|
0,
|
||||||
|
13,
|
||||||
|
-13,
|
||||||
|
0,
|
||||||
|
-13,
|
||||||
|
13,
|
||||||
|
0,
|
||||||
|
13,
|
||||||
|
13,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"indexes": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
26,
|
||||||
|
26,
|
||||||
|
26,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
26,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"nuv": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"minPos": [
|
||||||
|
-13,
|
||||||
|
-13,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"maxPos": [
|
||||||
|
13,
|
||||||
|
13,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "689c4ea2-894d-42c8-a3c3-7c91d17a8197@6c48a",
|
||||||
|
"atlasUuid": ""
|
||||||
|
},
|
||||||
|
"ver": "1.0.12",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"userData": {
|
||||||
|
"hasAlpha": true,
|
||||||
|
"type": "sprite-frame",
|
||||||
|
"fixAlphaTransparencyArtifacts": false,
|
||||||
|
"redirect": "689c4ea2-894d-42c8-a3c3-7c91d17a8197@f9941"
|
||||||
|
}
|
||||||
|
}
|
||||||
20
assets/resources/game/heros/hero/skeleton.atlas
Normal file
20
assets/resources/game/heros/hero/skeleton.atlas
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
skeleton.png
|
||||||
|
size: 126,100
|
||||||
|
format: RGBA8888
|
||||||
|
filter: Linear,Linear
|
||||||
|
repeat: none
|
||||||
|
bb
|
||||||
|
rotate: true
|
||||||
|
xy: 2, 2
|
||||||
|
size: 96, 108
|
||||||
|
orig: 96, 108
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
shadow
|
||||||
|
rotate: true
|
||||||
|
xy: 112, 66
|
||||||
|
size: 32, 12
|
||||||
|
orig: 32, 12
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
12
assets/resources/game/heros/hero/skeleton.atlas.meta
Normal file
12
assets/resources/game/heros/hero/skeleton.atlas.meta
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.1",
|
||||||
|
"importer": "*",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "c25902d8-36df-48f2-af71-6be1827463a0",
|
||||||
|
"files": [
|
||||||
|
".atlas",
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
72
assets/resources/game/heros/hero/skeleton.json
Normal file
72
assets/resources/game/heros/hero/skeleton.json
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"skeleton": {
|
||||||
|
"hash": "cNWCYqlhU+8lj44AhM2ebNGlYGc",
|
||||||
|
"spine": "3.8.99",
|
||||||
|
"x": -46.85,
|
||||||
|
"y": -6,
|
||||||
|
"width": 96,
|
||||||
|
"height": 117.8,
|
||||||
|
"images": "",
|
||||||
|
"audio": ""
|
||||||
|
},
|
||||||
|
"bones": [
|
||||||
|
{ "name": "root" },
|
||||||
|
{ "name": "bone", "parent": "root" },
|
||||||
|
{ "name": "shandow", "parent": "root", "y": 2.91 }
|
||||||
|
],
|
||||||
|
"slots": [
|
||||||
|
{ "name": "shadow", "bone": "shandow", "attachment": "shadow" },
|
||||||
|
{ "name": "bb", "bone": "bone", "attachment": "bb" }
|
||||||
|
],
|
||||||
|
"skins": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"attachments": {
|
||||||
|
"bb": {
|
||||||
|
"bb": { "x": 1.15, "y": 57.8, "width": 96, "height": 108 }
|
||||||
|
},
|
||||||
|
"shadow": {
|
||||||
|
"shadow": { "scaleX": 2.3856, "width": 32, "height": 12 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"animations": {
|
||||||
|
"atk": {
|
||||||
|
"bones": {
|
||||||
|
"root": {
|
||||||
|
"rotate": [
|
||||||
|
{},
|
||||||
|
{ "time": 0.1333, "angle": -5.68 },
|
||||||
|
{ "time": 0.3333, "angle": -30.2 },
|
||||||
|
{ "time": 0.5 }
|
||||||
|
],
|
||||||
|
"translate": [
|
||||||
|
{},
|
||||||
|
{ "time": 0.1333, "x": 6 },
|
||||||
|
{ "time": 0.3333, "x": 21 },
|
||||||
|
{ "time": 0.5 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"move": {
|
||||||
|
"bones": {
|
||||||
|
"shandow": {
|
||||||
|
"scale": [
|
||||||
|
{},
|
||||||
|
{ "time": 0.5, "x": 1.099 },
|
||||||
|
{ "time": 1 }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bone": {
|
||||||
|
"scale": [
|
||||||
|
{},
|
||||||
|
{ "time": 0.5, "y": 0.96 },
|
||||||
|
{ "time": 1 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
assets/resources/game/heros/hero/skeleton.json.meta
Normal file
11
assets/resources/game/heros/hero/skeleton.json.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.6",
|
||||||
|
"importer": "spine-data",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "4ba2de71-96df-42bd-b2df-7b67756e16e3",
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
BIN
assets/resources/game/heros/hero/skeleton.png
Normal file
BIN
assets/resources/game/heros/hero/skeleton.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
134
assets/resources/game/heros/hero/skeleton.png.meta
Normal file
134
assets/resources/game/heros/hero/skeleton.png.meta
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.26",
|
||||||
|
"importer": "image",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "7b9c6074-ab9e-4a86-9612-befdd799ae80",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".png"
|
||||||
|
],
|
||||||
|
"subMetas": {
|
||||||
|
"6c48a": {
|
||||||
|
"importer": "texture",
|
||||||
|
"uuid": "7b9c6074-ab9e-4a86-9612-befdd799ae80@6c48a",
|
||||||
|
"displayName": "skeleton",
|
||||||
|
"id": "6c48a",
|
||||||
|
"name": "texture",
|
||||||
|
"userData": {
|
||||||
|
"wrapModeS": "clamp-to-edge",
|
||||||
|
"wrapModeT": "clamp-to-edge",
|
||||||
|
"minfilter": "linear",
|
||||||
|
"magfilter": "linear",
|
||||||
|
"mipfilter": "none",
|
||||||
|
"anisotropy": 0,
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "7b9c6074-ab9e-4a86-9612-befdd799ae80",
|
||||||
|
"visible": false
|
||||||
|
},
|
||||||
|
"ver": "1.0.22",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"f9941": {
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"uuid": "7b9c6074-ab9e-4a86-9612-befdd799ae80@f9941",
|
||||||
|
"displayName": "skeleton",
|
||||||
|
"id": "f9941",
|
||||||
|
"name": "spriteFrame",
|
||||||
|
"userData": {
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 2,
|
||||||
|
"trimY": 2,
|
||||||
|
"width": 122,
|
||||||
|
"height": 96,
|
||||||
|
"rawWidth": 126,
|
||||||
|
"rawHeight": 100,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"packable": true,
|
||||||
|
"pixelsToUnit": 100,
|
||||||
|
"pivotX": 0.5,
|
||||||
|
"pivotY": 0.5,
|
||||||
|
"meshType": 0,
|
||||||
|
"vertices": {
|
||||||
|
"rawPosition": [
|
||||||
|
-61,
|
||||||
|
-48,
|
||||||
|
0,
|
||||||
|
61,
|
||||||
|
-48,
|
||||||
|
0,
|
||||||
|
-61,
|
||||||
|
48,
|
||||||
|
0,
|
||||||
|
61,
|
||||||
|
48,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"indexes": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
2,
|
||||||
|
98,
|
||||||
|
124,
|
||||||
|
98,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
124,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"nuv": [
|
||||||
|
0.015873015873015872,
|
||||||
|
0.02,
|
||||||
|
0.9841269841269841,
|
||||||
|
0.02,
|
||||||
|
0.015873015873015872,
|
||||||
|
0.98,
|
||||||
|
0.9841269841269841,
|
||||||
|
0.98
|
||||||
|
],
|
||||||
|
"minPos": [
|
||||||
|
-61,
|
||||||
|
-48,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"maxPos": [
|
||||||
|
61,
|
||||||
|
48,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "7b9c6074-ab9e-4a86-9612-befdd799ae80@6c48a",
|
||||||
|
"atlasUuid": ""
|
||||||
|
},
|
||||||
|
"ver": "1.0.12",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"userData": {
|
||||||
|
"hasAlpha": true,
|
||||||
|
"type": "sprite-frame",
|
||||||
|
"fixAlphaTransparencyArtifacts": false,
|
||||||
|
"redirect": "7b9c6074-ab9e-4a86-9612-befdd799ae80@f9941"
|
||||||
|
}
|
||||||
|
}
|
||||||
1261
assets/resources/game/monster/hero.prefab
Normal file
1261
assets/resources/game/monster/hero.prefab
Normal file
File diff suppressed because it is too large
Load Diff
13
assets/resources/game/monster/hero.prefab.meta
Normal file
13
assets/resources/game/monster/hero.prefab.meta
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.1.50",
|
||||||
|
"importer": "prefab",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "42a5e9a1-8664-4eee-ab17-56cb55b545b2",
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {
|
||||||
|
"syncNodeName": "hero"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -24,14 +24,14 @@ export class Main extends Root {
|
|||||||
protected async run() {
|
protected async run() {
|
||||||
smc.initialize = ecs.getEntity<Initialize>(Initialize);
|
smc.initialize = ecs.getEntity<Initialize>(Initialize);
|
||||||
smc.monsters = [
|
smc.monsters = [
|
||||||
{prefab_path:'niu',name:'m1',speed:110},
|
{prefab_path:'hero',name:'lang',speed:110},
|
||||||
// {prefab_path:'niu',name:'m2',speed:80},
|
// {prefab_path:'niu',name:'m2',speed:80},
|
||||||
// {prefab_path:'niu',name:'m3',speed:40},
|
// {prefab_path:'niu',name:'m3',speed:40},
|
||||||
// {prefab_path:'niu',name:'m4',speed:80},
|
// {prefab_path:'niu',name:'m4',speed:80},
|
||||||
]
|
]
|
||||||
smc.heros = [
|
smc.heros = [
|
||||||
{prefab_path:'niu',name:'war',speed:110},
|
// {prefab_path:'niu',name:'war',speed:110},
|
||||||
// {prefab_path:'niu',name:'magic',speed:60},
|
{prefab_path:'hero',name:'hero',speed:60},
|
||||||
// {prefab_path:'niu',name:'heath',speed:60},
|
// {prefab_path:'niu',name:'heath',speed:60},
|
||||||
// {prefab_path:'niu',name:'war',speed:60},
|
// {prefab_path:'niu',name:'war',speed:60},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* @LastEditors: dgflash
|
* @LastEditors: dgflash
|
||||||
* @LastEditTime: 2022-08-04 15:43:04
|
* @LastEditTime: 2022-08-04 15:43:04
|
||||||
*/
|
*/
|
||||||
import { instantiate, Node, Prefab, Vec3 ,tween, v3,Collider2D,Contact2DType,PhysicsSystem2D,IPhysics2DContact, animation,Label} from "cc";
|
import { instantiate, Node, Prefab, Vec3 ,tween, v3,Collider2D,Contact2DType,PhysicsSystem2D,IPhysics2DContact, animation,Label,resources,SpriteFrame,Sprite} from "cc";
|
||||||
import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines";
|
import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines";
|
||||||
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||||
@@ -46,6 +46,15 @@ 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.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*camp, node.getChildByName("avatar").scale.y, node.getChildByName("avatar").scale.z);
|
||||||
node.setPosition(pos)
|
node.setPosition(pos)
|
||||||
|
console.log(node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite))
|
||||||
|
const url = 'game/heros/hero/'+name+'/spriteFrame';
|
||||||
|
resources.load(url, SpriteFrame, (err: any, spriteFrame) => {
|
||||||
|
const sprite = node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite);
|
||||||
|
|
||||||
|
sprite.spriteFrame = spriteFrame;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
var mv = node.getComponent(MonsterViewComp)!;
|
var mv = node.getComponent(MonsterViewComp)!;
|
||||||
mv.speed =mv.ospeed = speed;
|
mv.speed =mv.ospeed = speed;
|
||||||
mv.hero_name= name;
|
mv.hero_name= name;
|
||||||
|
|||||||
@@ -97,11 +97,11 @@ export class MonsterViewComp extends CCComp {
|
|||||||
this.as = this.getComponent(MonsterSpine);
|
this.as = this.getComponent(MonsterSpine);
|
||||||
|
|
||||||
// console.log('hero load ent:',this);
|
// console.log('hero load ent:',this);
|
||||||
PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb |
|
// PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb |
|
||||||
EPhysics2DDrawFlags.Pair |
|
// EPhysics2DDrawFlags.Pair |
|
||||||
EPhysics2DDrawFlags.CenterOfMass |
|
// EPhysics2DDrawFlags.CenterOfMass |
|
||||||
EPhysics2DDrawFlags.Joint |
|
// EPhysics2DDrawFlags.Joint |
|
||||||
EPhysics2DDrawFlags.Shape;
|
// EPhysics2DDrawFlags.Shape;
|
||||||
}
|
}
|
||||||
change_name(hero_name:string='hero',camp:number=1){
|
change_name(hero_name:string='hero',camp:number=1){
|
||||||
this.name=hero_name;
|
this.name=hero_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user