Commit ecd65728 authored by 范雪寒's avatar 范雪寒

feat:

parent 0073dffd
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b", "uuid": "7dd331c0-bfda-43a7-8e24-7166504efc99",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.130612, "duration": 0.873878,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "f6c4b544-baa4-490f-b440-f9d553c9cdfe",
"downloadMode": 0,
"duration": 0.45102,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "b28063de-0f80-4f41-a084-40929c129b4f",
"downloadMode": 0,
"duration": 1.808583,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "5a3c1f94-ee24-4cdc-91ba-eaa7efe3070e",
"downloadMode": 0,
"duration": 0.372875,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "ca971933-de5e-40f2-a18f-43b4e7e733de",
"downloadMode": 0,
"duration": 3.448163,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "e896297a-99eb-4c87-9978-0c018c604443",
"downloadMode": 0,
"duration": 0.6818,
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"grow","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-12.03,"y":87.9,"width":114,"height":114},"bone":[{"name":"root","transform":{"skX":0.8267,"skY":0.8267}},{"name":"bone","parent":"root","transform":{"x":1040.062,"y":-391.2294}},{"name":"point10","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point9","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point8","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point7","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point6","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point1","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point2","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point4","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point5","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point3","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}},{"name":"point","parent":"bone","transform":{"skX":-2.9955,"skY":-2.9955}}],"slot":[{"name":"生长光点","parent":"point","color":{"aM":0}},{"name":"生长光点1","parent":"point1","color":{"aM":0}},{"name":"生长光点2","parent":"point2","color":{"aM":0}},{"name":"生长光点3","parent":"point3","color":{"aM":0}},{"name":"生长光点4","parent":"point4","color":{"aM":0}},{"name":"生长光点5","parent":"point5","color":{"aM":0}},{"name":"生长光点6","parent":"point6","color":{"aM":0}},{"name":"生长光点7","parent":"point7","color":{"aM":0}},{"name":"生长光点8","parent":"point8","color":{"aM":0}},{"name":"生长光点9","parent":"point9","color":{"aM":0}},{"name":"生长光点10","parent":"point10","color":{"aM":0}}],"skin":[{"slot":[{"name":"生长光点6","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点7","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点9","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点3","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点2","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点5","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点8","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点4","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点1","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]},{"name":"生长光点10","display":[{"name":"生长光点","transform":{"x":-1019.63,"y":482.84}}]}]}],"animation":[{"duration":30,"playTimes":0,"name":"normal","bone":[{"name":"point","translateFrame":[{"duration":17,"tweenEasing":0,"x":-92,"y":175},{"duration":13,"x":-92,"y":-213}]},{"name":"point1","translateFrame":[{"duration":24,"tweenEasing":0,"x":0.5,"y":192.5},{"duration":6,"x":0.5,"y":-376.5}]},{"name":"point2","translateFrame":[{"duration":16,"tweenEasing":0,"x":-46.5,"y":165.5},{"duration":14,"x":-46.5,"y":-339.5}]},{"name":"point3","translateFrame":[{"duration":20,"tweenEasing":0,"x":-132.5,"y":193},{"duration":10,"x":-132.5,"y":-293}]},{"name":"point4","translateFrame":[{"duration":18,"tweenEasing":0,"x":56,"y":200.5},{"duration":12,"x":7.5,"y":-130}]},{"name":"point5","translateFrame":[{"duration":30,"tweenEasing":0,"x":-51,"y":153.5},{"duration":0,"x":-51,"y":-154}]},{"name":"point6","translateFrame":[{"duration":20,"tweenEasing":0,"x":-76,"y":188.5},{"duration":10,"x":-71.5,"y":-407}]},{"name":"point7","translateFrame":[{"duration":22,"tweenEasing":0,"x":27.5,"y":206},{"duration":8,"x":27.5,"y":-242.5}]},{"name":"point8","translateFrame":[{"duration":15,"tweenEasing":0,"x":-105,"y":164},{"duration":15,"x":-105,"y":-112}]},{"name":"point9","translateFrame":[{"duration":26,"tweenEasing":0,"x":-16,"y":180},{"duration":4,"x":-16,"y":-211.5}]},{"name":"point10","translateFrame":[{"duration":28,"tweenEasing":0,"x":-80.5,"y":149.5},{"duration":2,"x":-48,"y":-276.5}]}],"slot":[{"name":"生长光点","colorFrame":[{"duration":3,"tweenEasing":0,"value":{"aM":0}},{"duration":12,"tweenEasing":0},{"duration":2,"tweenEasing":0},{"duration":13,"value":{"aM":0}}]},{"name":"生长光点1","colorFrame":[{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":18,"tweenEasing":0},{"duration":2,"tweenEasing":0},{"duration":6,"value":{"aM":0}}]},{"name":"生长光点2","colorFrame":[{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":8,"tweenEasing":0},{"duration":3,"tweenEasing":0},{"duration":14,"value":{"aM":0}}]},{"name":"生长光点3","colorFrame":[{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":13,"tweenEasing":0},{"duration":3,"tweenEasing":0},{"duration":10,"value":{"aM":0}}]},{"name":"生长光点4","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":10,"tweenEasing":0},{"duration":2,"tweenEasing":0},{"duration":12,"value":{"aM":0}}]},{"name":"生长光点5","colorFrame":[{"duration":7,"tweenEasing":0,"value":{"aM":0}},{"duration":19,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"生长光点6","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":11,"tweenEasing":0},{"duration":3,"tweenEasing":0},{"duration":10,"value":{"aM":0}}]},{"name":"生长光点7","colorFrame":[{"duration":3,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":3,"tweenEasing":0},{"duration":8,"value":{"aM":0}}]},{"name":"生长光点8","colorFrame":[{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":10,"tweenEasing":0},{"duration":3,"tweenEasing":0},{"duration":15,"value":{"aM":0}}]},{"name":"生长光点9","colorFrame":[{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":19,"tweenEasing":0},{"duration":3,"tweenEasing":0},{"duration":4,"value":{"aM":0}}]},{"name":"生长光点10","colorFrame":[{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":20,"tweenEasing":0},{"duration":3,"tweenEasing":0},{"duration":2,"value":{"aM":0}}]}]}],"defaultActions":[{"gotoAndPlay":"normal"}],"canvas":{"width":382,"height":756}},{"type":"MovieClip","frameRate":24,"name":"MovieClip","bone":[{"name":"root"}],"defaultActions":[{}]}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "3177927b-5490-4a40-a071-16a9804339fd",
"subMetas": {}
}
\ No newline at end of file
{"name":"grow","SubTexture":[{"name":"生长光点","x":1,"height":114,"y":1,"width":114}],"height":128,"imagePath":"grow_tex.png","width":128}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f50cbb84-d7d6-4bfb-b5d6-750a3a720723",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5955660c-9bed-40d2-96ab-d57b69abba9c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 128,
"height": 128,
"platformSettings": {},
"subMetas": {
"grow_tex": {
"ver": "1.0.4",
"uuid": "0d0d518b-03a4-41e5-8924-40e499179326",
"rawTextureUuid": "5955660c-9bed-40d2-96ab-d57b69abba9c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -6,
"offsetY": 6,
"trimX": 1,
"trimY": 1,
"width": 114,
"height": 114,
"rawWidth": 128,
"rawHeight": 128,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"frameRate":24,"name":"vs","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-296.5,"y":-297,"width":593,"height":594},"bone":[{"name":"root"},{"name":"star","parent":"root"},{"name":"vs","parent":"root"},{"name":"star1","parent":"root"},{"name":"star11","parent":"root"},{"name":"star12","parent":"root"},{"name":"star13","parent":"root"},{"name":"star14","parent":"root"},{"name":"star15","parent":"root"},{"name":"star16","parent":"root"},{"name":"star17","parent":"root"},{"name":"star18","parent":"root"},{"name":"star19","parent":"root"},{"name":"star110","parent":"root"}],"slot":[{"name":"star_01","parent":"star","color":{"aM":0}},{"name":"star_011","parent":"star1","color":{"aM":0}},{"name":"star_0111","parent":"star11","color":{"aM":0}},{"name":"star_0112","parent":"star12","color":{"aM":0}},{"name":"star_0113","parent":"star13","color":{"aM":0}},{"name":"star_0114","parent":"star14","color":{"aM":0}},{"name":"star_0115","parent":"star15","color":{"aM":0}},{"name":"star_0116","parent":"star16","color":{"aM":0}},{"name":"star_0117","parent":"star17","color":{"aM":0}},{"name":"star_0118","parent":"star18","color":{"aM":0}},{"name":"star_0119","parent":"star19","color":{"aM":0}},{"name":"star_01110","parent":"star110","color":{"aM":0}},{"name":"img_vs","parent":"vs"}],"skin":[{"slot":[{"name":"star_0115","display":[{"name":"star_01"}]},{"name":"star_0111","display":[{"name":"star_01"}]},{"name":"star_0118","display":[{"name":"star_01"}]},{"name":"star_01","display":[{"name":"star_01"}]},{"name":"star_011","display":[{"name":"star_01"}]},{"name":"img_vs","display":[{"name":"img_vs"}]},{"name":"star_0113","display":[{"name":"star_01"}]},{"name":"star_0117","display":[{"name":"star_01"}]},{"name":"star_0119","display":[{"name":"star_01"}]},{"name":"star_0116","display":[{"name":"star_01"}]},{"name":"star_01110","display":[{"name":"star_01"}]},{"name":"star_0112","display":[{"name":"star_01"}]},{"name":"star_0114","display":[{"name":"star_01"}]}]}],"animation":[{"duration":35,"playTimes":0,"name":"normal","bone":[{"name":"star","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":-293.5}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"vs","scaleFrame":[{"duration":6,"tweenEasing":0},{"duration":8,"tweenEasing":0,"x":1.47,"y":1.47},{"duration":11,"tweenEasing":0,"x":1.47,"y":1.47},{"duration":10}]},{"name":"star1","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":388.5}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"star11","translateFrame":[{"duration":20},{"duration":11,"tweenEasing":0},{"duration":4,"x":-315,"y":-153.5}],"scaleFrame":[{"duration":20},{"duration":11,"tweenEasing":0},{"duration":4,"x":-0.36,"y":-0.36}]},{"name":"star12","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":-189,"y":277}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"star13","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":-165,"y":-345.5}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"star14","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":125,"y":297}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"star15","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":129.5,"y":-340}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"star16","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":199.5,"y":247.5}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"star17","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"y":-389}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"star18","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":-32.5,"y":370.5}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"star19","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":-311.5,"y":181.5}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]},{"name":"star110","translateFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":321,"y":-202}],"scaleFrame":[{"duration":20},{"duration":15,"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]}],"slot":[{"name":"star_01","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":10}]},{"name":"star_011","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star_0111","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star_0112","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star_0113","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star_0114","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":10}]},{"name":"star_0115","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0,"value":{"aM":0}},{"duration":10}]},{"name":"star_0116","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":9}]},{"name":"star_0117","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":9}]},{"name":"star_0118","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":9}]},{"name":"star_0119","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"star_01110","colorFrame":[{"duration":20,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":5,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]}],"zOrder":{"frame":[{"duration":35}]}}],"defaultActions":[{"gotoAndPlay":"normal"}],"canvas":{"width":1024,"height":1024}},{"type":"MovieClip","frameRate":24,"name":"MovieClip","bone":[{"name":"root"}],"defaultActions":[{}]}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "cd47b9bc-3df9-4102-8708-9981e0cbf221",
"subMetas": {}
}
\ No newline at end of file
{"name":"vs","SubTexture":[{"name":"star_01","x":1,"height":169,"y":597,"width":174},{"name":"img_vs","x":1,"height":594,"y":1,"width":593}],"height":1024,"imagePath":"vs_tex.png","width":1024}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "4d383739-c916-4c07-8eb0-933686886df6",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f3f3e66a-ef67-423c-8ddc-ab5c5397bb66",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 1024,
"platformSettings": {},
"subMetas": {
"vs_tex": {
"ver": "1.0.4",
"uuid": "c76707fb-0d0f-4310-aae9-c8011dccbe85",
"rawTextureUuid": "f3f3e66a-ef67-423c-8ddc-ab5c5397bb66",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -214.5,
"offsetY": 128.5,
"trimX": 1,
"trimY": 1,
"width": 593,
"height": 765,
"rawWidth": 1024,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e8c8033c-0218-413a-85c2-d3f3f694ea72",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "16a2c4e8-61fc-46f2-b6ac-55e744630ede",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.2.9",
"uuid": "4839576b-7c74-49ab-aa3e-8eeec631d7c0",
"optimizationPolicy": "SINGLE_INSTANCE",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e2900f5f-b4c4-4e75-af9c-44394cc4773c",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "b2c8b99b-9591-4c2d-8fe0-34536a5d109d",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "47ac2804-dd13-4e67-a551-f2af947a17a4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2176,
"height": 1600,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "2163211c-9302-4166-893a-be24e4eda962",
"rawTextureUuid": "47ac2804-dd13-4e67-a551-f2af947a17a4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2176,
"height": 1600,
"rawWidth": 2176,
"rawHeight": 1600,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "bdac295a-5671-4f2e-a096-d1f0cbe4355b",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "30eca875-dbb3-4505-b41f-3f502fa4f3e7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "point",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1568,
"height": 32,
"platformSettings": {},
"subMetas": {
"progress_bar": {
"ver": "1.0.4",
"uuid": "6359268b-7d99-407e-a7e4-2d29eaf0bc67",
"rawTextureUuid": "30eca875-dbb3-4505-b41f-3f502fa4f3e7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1568,
"height": 32,
"rawWidth": 1568,
"rawHeight": 32,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2614ae74-82b8-4165-b007-67734e1fab8e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "point",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1578,
"height": 42,
"platformSettings": {},
"subMetas": {
"progress_bg": {
"ver": "1.0.4",
"uuid": "18994b29-1d03-4165-a3ec-a470e996e99a",
"rawTextureUuid": "2614ae74-82b8-4165-b007-67734e1fab8e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1578,
"height": 42,
"rawWidth": 1578,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3377045c-74ca-4627-8df4-0c602930a041",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 280,
"height": 280,
"platformSettings": {},
"subMetas": {
"tx_01": {
"ver": "1.0.4",
"uuid": "d1e76bbe-19cd-4b0f-b1e4-1dab0f15db1b",
"rawTextureUuid": "3377045c-74ca-4627-8df4-0c602930a041",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 280,
"height": 280,
"rawWidth": 280,
"rawHeight": 280,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "407949db-a810-44d7-ada9-9956e0feb5dd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 258,
"height": 258,
"platformSettings": {},
"subMetas": {
"tx_01zw": {
"ver": "1.0.4",
"uuid": "89d07b3a-2999-49eb-9a7f-31addfa26717",
"rawTextureUuid": "407949db-a810-44d7-ada9-9956e0feb5dd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 258,
"height": 258,
"rawWidth": 258,
"rawHeight": 258,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c66a5e80-6f62-4db4-8b0e-dd54c24577da",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 388,
"height": 388,
"platformSettings": {},
"subMetas": {
"tx_xuanzhong": {
"ver": "1.0.4",
"uuid": "18e7b494-5f08-424a-bcc9-7c802668be83",
"rawTextureUuid": "c66a5e80-6f62-4db4-8b0e-dd54c24577da",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 388,
"height": 388,
"rawWidth": 388,
"rawHeight": 388,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends cc.Component {
ctor() {
}
// 生命周期 onLoad
onLoad() {
this.initSize();
}
_designSize; // 设计分辨率
_frameSize; // 屏幕分辨率
_mapScaleMin; // 场景中常用缩放(取大值)
_mapScaleMax; // 场景中常用缩放(取小值)
_cocosScale; // cocos 自缩放 (较少用到)
initSize() {
// 注意cc.winSize只有在适配后(修改fitHeight/fitWidth后)才能获取到正确的值,因此使用cc.getFrameSize()来获取初始的屏幕大小
let screen_size = cc.view.getFrameSize().width / cc.view.getFrameSize().height
let design_size = cc.Canvas.instance.designResolution.width / cc.Canvas.instance.designResolution.height
let f = screen_size >= design_size
cc.Canvas.instance.fitHeight = f
cc.Canvas.instance.fitWidth = !f
const frameSize = cc.view.getFrameSize();
this._frameSize = frameSize;
this._designSize = cc.view.getDesignResolutionSize();
let sx = cc.winSize.width / frameSize.width;
let sy = cc.winSize.height / frameSize.height;
this._cocosScale = Math.min(sx, sy);
sx = frameSize.width / this._designSize.width;
sy = frameSize.height / this._designSize.height;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
}
// 生命周期 start
async start() {
this.updateLabel('创建房间中');
this.progressTo(0.1, 1);
await this.asyncDelay(1);
this.updateLabel('匹配小伙伴中');
}
async initView() {
this.setMaxPlayerNumber(5);
}
_maxPlayerNum;
setMaxPlayerNumber(number) {
this._maxPlayerNum = number;
}
_playerList;
addPlayer(name, isSelf, headUrl, uuid) {
if (!this._playerList) {
this._playerList = [];
}
if (this._playerList.find(player => player.uuid == uuid)) {
return;
}
this._playerList.push({ name, isSelf, headUrl, uuid });
console.log('name = ' + name);
const layout = cc.find('layout', this.node);
const headNode = cc.instantiate(cc.find('head', this.node));
headNode.x = 0;
headNode.y = 0;
headNode.active = true;
const frameSelf = cc.find('frame_self', headNode);
if (!isSelf) {
frameSelf.opacity = 0;
}
const nameLabel = cc.find('name', headNode);
nameLabel.getComponent(cc.Label).string = name;
const headImg = cc.find('mask/headImg', headNode);
this.loadSpriteByUrl(headImg, headUrl, () => {
const scale = Math.max(
headImg.parent.width / headImg.width,
headImg.parent.height / headImg.height
);
headImg.scale = scale;
});
if (this._playerList.length == 1) {
cc.find('left', this.node).addChild(headNode);
} else {
cc.find('right', this.node).addChild(headNode);
}
const rate = Math.min(1, this._playerList.length / this._maxPlayerNum);
if (rate == 1) {
this.updateLabel('同步中');
}
this.progressTo(rate, 3);
}
_onLoadFinishFunc;
onLoadFinished(func) {
this._onLoadFinishFunc = func;
}
async asyncDelay(time) {
return new Promise((resolve, reject) => {
try {
this._timeoutIds.push(setTimeout(() => {
resolve(null);
}, time * 1000));
} catch (e) {
reject(e);
}
});
}
updateLabel(str) {
const label = cc.find('label', this.node).getComponent(cc.Label);
if (label['tweenAction']) {
label['tweenAction'].stop();
}
label['tweenAction'] = cc.tween(label)
.set({ string: `${str}` })
.delay(0.4)
.set({ string: `${str}.` })
.delay(0.4)
.set({ string: `${str}..` })
.delay(0.4)
.set({ string: `${str}...` })
.delay(0.4)
.union()
.repeatForever()
.start();
}
_maxRate = 0;
progressTo(rate, time) {
this._maxRate = Math.max(this._maxRate, rate);
const duration = Math.max(time + this.RandomInt(-1, 1), 1);
const progress = cc.find('progressBar', this.node).getComponent(cc.ProgressBar);
if (progress['tweenAction']) {
progress['tweenAction'].stop();
}
const easingList = [
'linear',
'quadInOut',
'cubicInOut',
];
progress['tweenAction'] = cc.tween(progress)
.to(duration, { progress: this._maxRate }, { easing: easingList[this.RandomInt(easingList.length)] })
.call(() => {
if (rate == 1) {
if (this._onLoadFinishFunc) {
this._onLoadFinishFunc();
}
this.node.active = false;
}
})
.start();
}
RandomInt(a, b = 0) {
let max = Math.max(a, b);
let min = Math.min(a, b);
return Math.floor(Math.random() * (max - min) + min);
}
// ------------------------------------------------
loadSpriteByUrl(node, url, cb) {
cc.loader.load({ url }, (err, img) => {
if (!node) {
cb && cb();
}
const spriteFrame = new cc.SpriteFrame(img)
const spr = node.getComponent(cc.Sprite);
spr.spriteFrame = spriteFrame;
cb && cb();
});
}
currentPlayedAudioId;
stopCurrentPlayedAudio() {
if (this.currentPlayedAudioId !== null) {
cc.audioEngine.stop(this.currentPlayedAudioId);
this.currentPlayedAudioId = null;
}
}
playEffect(name, cb) {
this.stopCurrentPlayedAudio();
const audioNode = cc.find(`audios/${name}`);
const audioClip = audioNode.getComponent(cc.AudioSource).clip;
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
this.currentPlayedAudioId = audioId;
if (cb) {
cc.audioEngine.setFinishCallback(audioId, cb);
}
}
playAudioByUrl(audio_url, cb = null) {
if (!audio_url) {
if (cb) {
cb();
}
return;
}
this.stopCurrentPlayedAudio();
cc.assetManager.loadRemote(audio_url.toLowerCase(), (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
this.currentPlayedAudioId = audioId;
if (cb) {
cc.audioEngine.setFinishCallback(audioId, cb);
}
});
}
_timeoutIds = [];
_intervalIds = [];
// 生命周期
onDestroy() {
this._timeoutIds.forEach(id => {
clearTimeout(id);
});
this._intervalIds.forEach(id => {
clearInterval(id);
});
}
}
{
"ver": "1.0.8",
"uuid": "3fc7e391-1210-4183-ae23-e840fee8c55e",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -74,7 +74,7 @@ export class NetworkHelper { ...@@ -74,7 +74,7 @@ export class NetworkHelper {
} }
if (!cacertFile) { if (!cacertFile) {
this.log('没有cacertFile!!!'); console.log('没有cacertFile!!!');
} }
config.cacertNativeUrl = cc.loader.md5Pipe && cc.ENGINE_VERSION < "2.4.0" ? config.cacertNativeUrl = cc.loader.md5Pipe && cc.ENGINE_VERSION < "2.4.0" ?
cc.loader.md5Pipe.transformURL(cacertFile.nativeUrl) : cc.loader.md5Pipe.transformURL(cacertFile.nativeUrl) :
...@@ -82,13 +82,13 @@ export class NetworkHelper { ...@@ -82,13 +82,13 @@ export class NetworkHelper {
} }
MGOBE.Listener.init(gameInfo, config, event => { MGOBE.Listener.init(gameInfo, config, event => {
this.log(JSON.stringify(event)); console.log(JSON.stringify(event));
if (event.code !== 0) { if (event.code !== 0) {
this.log("初始化失败: " + event.code); console.log("初始化失败: " + event.code);
reject(); reject();
return; return;
} }
this.log("初始化成功"); console.log("初始化成功");
resolve(null); resolve(null);
}); });
}); });
...@@ -105,7 +105,7 @@ export class NetworkHelper { ...@@ -105,7 +105,7 @@ export class NetworkHelper {
this.room.onStartFrameSync = this.onStartFrameSync.bind(this); this.room.onStartFrameSync = this.onStartFrameSync.bind(this);
this.room.onStopFrameSync = this.onStopFrameSync.bind(this); this.room.onStopFrameSync = this.onStopFrameSync.bind(this);
this.room.onRecvFromGameSvr = this.onRecvFromGameSvr.bind(this); this.room.onRecvFromGameSvr = this.onRecvFromGameSvr.bind(this);
this.log('this.room = ' + JSON.stringify(this.room.roomInfo)); console.log('this.room = ' + JSON.stringify(this.room.roomInfo));
} }
joinRoom(roomType: string, maxPlayers: number, customData: string = '') { joinRoom(roomType: string, maxPlayers: number, customData: string = '') {
...@@ -124,7 +124,7 @@ export class NetworkHelper { ...@@ -124,7 +124,7 @@ export class NetworkHelper {
}; };
this.room.matchRoom(matchRoomPara, event => { this.room.matchRoom(matchRoomPara, event => {
this.log(JSON.stringify(event)) console.log(JSON.stringify(event))
if (event.code === 0) { if (event.code === 0) {
cc.log("匹配成功: " + event.data.roomInfo.id); cc.log("匹配成功: " + event.data.roomInfo.id);
const player = event.data.roomInfo.playerList.find(player => player.name == playerName); const player = event.data.roomInfo.playerList.find(player => player.name == playerName);
...@@ -140,13 +140,13 @@ export class NetworkHelper { ...@@ -140,13 +140,13 @@ export class NetworkHelper {
leaveRoom() { leaveRoom() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.room.leaveRoom({}, event => { this.room.leaveRoom({}, event => {
this.log(JSON.stringify(event)) console.log(JSON.stringify(event))
if (event.code === 0) { if (event.code === 0) {
this.log("退房成功" + this.room.roomInfo.id); console.log("退房成功" + this.room.roomInfo.id);
// this.room.initRoom(); // this.room.initRoom();
resolve(null); resolve(null);
} else { } else {
this.log("退房失败"); console.log("退房失败");
} }
}); });
}); });
...@@ -156,7 +156,7 @@ export class NetworkHelper { ...@@ -156,7 +156,7 @@ export class NetworkHelper {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.room.changeRoom({ isForbidJoin: true }, (event) => { this.room.changeRoom({ isForbidJoin: true }, (event) => {
console.log('关门') console.log('关门')
this.log(JSON.stringify(event)) // console.log(JSON.stringify(event))
resolve(null); resolve(null);
}); });
}); });
...@@ -174,7 +174,7 @@ export class NetworkHelper { ...@@ -174,7 +174,7 @@ export class NetworkHelper {
startFrameSync() { startFrameSync() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.room.startFrameSync({}, event => { this.room.startFrameSync({}, event => {
this.log(JSON.stringify(event)) console.log(JSON.stringify(event))
if (event.code === 0) { if (event.code === 0) {
cc.log("开始帧同步成功,请到控制台查看具体帧同步信息"); cc.log("开始帧同步成功,请到控制台查看具体帧同步信息");
resolve(null); resolve(null);
...@@ -192,12 +192,12 @@ export class NetworkHelper { ...@@ -192,12 +192,12 @@ export class NetworkHelper {
return; return;
} }
this.room.stopFrameSync({}, event => { this.room.stopFrameSync({}, event => {
this.log(JSON.stringify(event)) console.log(JSON.stringify(event))
if (event.code === 0) { if (event.code === 0) {
this.log("停止帧同步成功"); console.log("停止帧同步成功");
resolve(null); resolve(null);
} else { } else {
this.log("停止帧同步失败"); console.log("停止帧同步失败");
reject(event.code); reject(event.code);
} }
}); });
...@@ -250,12 +250,12 @@ export class NetworkHelper { ...@@ -250,12 +250,12 @@ export class NetworkHelper {
async onDestroy() { async onDestroy() {
try { try {
this.log('onDestroy1') console.log('onDestroy1')
MGOBE.Listener.clear(); MGOBE.Listener.clear();
await this.stopGame(); await this.stopGame();
this.log('onDestroy2') console.log('onDestroy2')
} catch (e) { } catch (e) {
this.log(JSON.stringify(e)); console.log(JSON.stringify(e));
} }
} }
......
import { RandomInt } from "../script/util";
import { NetworkHelper } from "./NetworkHelper";
export class GameServer {
playerList = [];
playerMaxNumber = 0;
networkHelper: NetworkHelper = null;
nameList = [
'Chris', 'Benny', 'Leslie', 'Devin', 'Sam',
'Kerry', 'Joey', 'Hailey', 'Fred', 'Arrow',
'Tony', 'Michael',
];
headUrls = [
'http://staging-teach.cdn.ireadabc.com/0751c28419a0e8ffb1f0e84435b081ce.png',
'http://staging-teach.cdn.ireadabc.com/f596e586a31ac2813b1702557941c022.png',
'http://staging-teach.cdn.ireadabc.com/f0f396c52c42239913fd94523db979fa.png',
'http://staging-teach.cdn.ireadabc.com/9f2d2ef622fa33d4e2abcbdc4b40ab6a.png',
'http://staging-teach.cdn.ireadabc.com/f40ce4a8630039c4cf48a63fc1399c52.png'
];
constructor(playerMaxNumber, networkHelper) {
this.playerMaxNumber = playerMaxNumber;
this.networkHelper = networkHelper;
this._timeoutIds = [];
this._intervalIds = [];
this.headUrls = this.headUrls.sort((a, b) => RandomInt(2) - 1);
this.nameList = this.nameList.sort((a, b) => RandomInt(2) - 1);
this.networkHelper.startFrameSync();
}
addPlayer(player) {
console.log('addPlayer');
this.playerList.push({
name: this.nameList.splice(0, 1)[0],
uuid: player.uuid,
color: player.uuid == this.networkHelper.room.roomInfo.owner ? 'Blue' : 'Red',
isAI: player.isAI,
headUrl: this.headUrls.splice(0, 1)[0],
complete: false,
duration: null
});
if (this.playerList.length == this.playerMaxNumber) {
this.networkHelper.closeRoom();
this.startGame();
this.startAI();
}
this.networkHelper.sendFrame({
type: 'SERVER_allPlayerInfo',
playerData: this.playerList
});
}
gameStatus = {
Red: 0,
Blue: 0,
letter: '',
current: 'Blue'
};
startGame() {
this.networkHelper.sendFrame({
type: 'SERVER_updateStatus',
status: this.gameStatus
});
}
onPlayerJoin(event) {
this.addPlayer({
uuid: event.data.joinPlayerId,
isAI: false
});
}
startMatch() {
for (let i = 0; i < this.playerMaxNumber; i++) {
this._timeoutIds.push(setTimeout(() => {
const count = this.playerMaxNumber - this.playerList.length;
if (count > 0) {
this.addPlayer({
uuid: 'ai_' + i,
isAI: true
});
}
}, RandomInt(10000, 15000)));
}
}
onFrameEvent(data) {
if (data.type == 'roll') {
const player = this.playerList.find(player => player.uuid == data.uuid);
const letter = ['A', 'B', 'C', 'D', 'E', 'F'][RandomInt(6)];
this.gameStatus.letter = letter;
this.networkHelper.sendFrame({
type: 'SERVER_playerRoll',
letter: letter
});
}
}
startAI() {
this.playerList
.filter(player => player.isAI == true)
.forEach(player => {
});
}
_timeoutIds = null;
_intervalIds = null;
// 生命周期
onDestroy() {
this._timeoutIds.forEach(id => {
clearTimeout(id);
});
this._intervalIds.forEach(id => {
clearInterval(id);
});
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "c9a02bcc-9ce4-4bc3-a4af-f8538554250e",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "033e4121-604e-4025-a564-ae4f6f9ad174",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment