eraser 5 rokov pred
commit
e4dbf33221
100 zmenil súbory, kde vykonal 6803 pridanie a 0 odobranie
  1. 36 0
      README.en.md
  2. 39 0
      README.md
  3. 7 0
      assets/an.meta
  4. 105 0
      assets/an/playeran_left.anim
  5. 5 0
      assets/an/playeran_left.anim.meta
  6. 49 0
      assets/an/playeran_left_bad.anim
  7. 5 0
      assets/an/playeran_left_bad.anim.meta
  8. 85 0
      assets/an/playeran_mid.anim
  9. 5 0
      assets/an/playeran_mid.anim.meta
  10. 151 0
      assets/an/playeran_normal.anim
  11. 5 0
      assets/an/playeran_normal.anim.meta
  12. 123 0
      assets/an/playeran_right.anim
  13. 5 0
      assets/an/playeran_right.anim.meta
  14. 55 0
      assets/an/playeran_right_bad.anim
  15. 5 0
      assets/an/playeran_right_bad.anim.meta
  16. 103 0
      assets/an/rival1_left.anim
  17. 5 0
      assets/an/rival1_left.anim.meta
  18. 37 0
      assets/an/rival1_left_bad.anim
  19. 5 0
      assets/an/rival1_left_bad.anim.meta
  20. 145 0
      assets/an/rival1_normal.anim
  21. 5 0
      assets/an/rival1_normal.anim.meta
  22. 49 0
      assets/an/rival1_right_bad.anim
  23. 5 0
      assets/an/rival1_right_bad.anim.meta
  24. 111 0
      assets/an/take.anim
  25. 5 0
      assets/an/take.anim.meta
  26. 7 0
      assets/js.meta
  27. 41 0
      assets/js/NewScript.js
  28. 9 0
      assets/js/NewScript.js.meta
  29. 170 0
      assets/js/SVBetter.js
  30. 9 0
      assets/js/SVBetter.js.meta
  31. 74 0
      assets/js/SVItem.js
  32. 9 0
      assets/js/SVItem.js.meta
  33. 110 0
      assets/js/Scene.js
  34. 9 0
      assets/js/Scene.js.meta
  35. 111 0
      assets/js/click.js
  36. 9 0
      assets/js/click.js.meta
  37. 84 0
      assets/js/dragonBonesManager.js
  38. 9 0
      assets/js/dragonBonesManager.js.meta
  39. 44 0
      assets/js/game.js
  40. 9 0
      assets/js/game.js.meta
  41. 51 0
      assets/js/gameover.js
  42. 9 0
      assets/js/gameover.js.meta
  43. 116 0
      assets/js/lifeManager.js
  44. 9 0
      assets/js/lifeManager.js.meta
  45. 98 0
      assets/js/loadingmanager.js
  46. 9 0
      assets/js/loadingmanager.js.meta
  47. 51 0
      assets/js/long.js
  48. 9 0
      assets/js/long.js.meta
  49. 140 0
      assets/js/loopTime.js
  50. 9 0
      assets/js/loopTime.js.meta
  51. 41 0
      assets/js/mainconfig.js
  52. 9 0
      assets/js/mainconfig.js.meta
  53. 41 0
      assets/js/maingame.js
  54. 9 0
      assets/js/maingame.js.meta
  55. 46 0
      assets/js/mainlogin.js
  56. 9 0
      assets/js/mainlogin.js.meta
  57. 231 0
      assets/js/player.js
  58. 9 0
      assets/js/player.js.meta
  59. 142 0
      assets/js/playercontrols.js
  60. 9 0
      assets/js/playercontrols.js.meta
  61. 431 0
      assets/js/rival.js
  62. 9 0
      assets/js/rival.js.meta
  63. 179 0
      assets/js/rivalcontrols.js
  64. 9 0
      assets/js/rivalcontrols.js.meta
  65. 49 0
      assets/js/selectLyout.js
  66. 9 0
      assets/js/selectLyout.js.meta
  67. 18 0
      assets/js/test.js
  68. 9 0
      assets/js/test.js.meta
  69. 7 0
      assets/res.meta
  70. BIN
      assets/res/HelloWorld.png
  71. 32 0
      assets/res/HelloWorld.png.meta
  72. 1727 0
      assets/res/SVBetter.prefab
  73. 8 0
      assets/res/SVBetter.prefab.meta
  74. 1069 0
      assets/res/SVItem.prefab
  75. 8 0
      assets/res/SVItem.prefab.meta
  76. BIN
      assets/res/_501390633.jpg
  77. 32 0
      assets/res/_501390633.jpg.meta
  78. BIN
      assets/res/bg.png
  79. 32 0
      assets/res/bg.png.meta
  80. BIN
      assets/res/cs_boxing1p3.png
  81. 32 0
      assets/res/cs_boxing1p3.png.meta
  82. BIN
      assets/res/cs_boxing_e1.png
  83. 32 0
      assets/res/cs_boxing_e1.png.meta
  84. BIN
      assets/res/cs_boxing_e2.png
  85. 32 0
      assets/res/cs_boxing_e2.png.meta
  86. BIN
      assets/res/cs_boxing_e3.png
  87. 32 0
      assets/res/cs_boxing_e3.png.meta
  88. BIN
      assets/res/cs_boxing_e4.png
  89. 32 0
      assets/res/cs_boxing_e4.png.meta
  90. BIN
      assets/res/cs_boxing_parts.png
  91. 32 0
      assets/res/cs_boxing_parts.png.meta
  92. BIN
      assets/res/ending.jpg
  93. 32 0
      assets/res/ending.jpg.meta
  94. 7 0
      assets/res/long.meta
  95. 0 0
      assets/res/long/Dragon_2_ske.json
  96. 3 0
      assets/res/long/Dragon_2_ske.json.meta
  97. 1 0
      assets/res/long/Dragon_2_tex.json
  98. 7 0
      assets/res/long/Dragon_2_tex.json.meta
  99. BIN
      assets/res/long/Dragon_2_tex.png
  100. 32 0
      assets/res/long/Dragon_2_tex.png.meta

+ 36 - 0
README.en.md

@@ -0,0 +1,36 @@
+# 拳击
+
+#### Description
+{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
+
+#### Software Architecture
+Software architecture description
+
+#### Installation
+
+1. xxxx
+2. xxxx
+3. xxxx
+
+#### Instructions
+
+1. xxxx
+2. xxxx
+3. xxxx
+
+#### Contribution
+
+1. Fork the repository
+2. Create Feat_xxx branch
+3. Commit your code
+4. Create Pull Request
+
+
+#### Gitee Feature
+
+1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
+2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
+3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
+4. The most valuable open source project [GVP](https://gitee.com/gvp)
+5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
+6. The most popular members  [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 39 - 0
README.md

@@ -0,0 +1,39 @@
+# 拳击
+
+#### 介绍
+{**以下是码云平台说明,您可以替换此简介**
+码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
+无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
+
+#### 软件架构
+软件架构说明
+
+
+#### 安装教程
+
+1. xxxx
+2. xxxx
+3. xxxx
+
+#### 使用说明
+
+1. xxxx
+2. xxxx
+3. xxxx
+
+#### 参与贡献
+
+1. Fork 本仓库
+2. 新建 Feat_xxx 分支
+3. 提交代码
+4. 新建 Pull Request
+
+
+#### 码云特技
+
+1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
+2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
+3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
+4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
+5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
+6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 7 - 0
assets/an.meta

@@ -0,0 +1,7 @@
+{
+  "ver": "1.0.1",
+  "uuid": "e4e560d2-87fd-4b7a-8e60-07384fc6de6c",
+  "isSubpackage": false,
+  "subpackageName": "",
+  "subMetas": {}
+}

+ 105 - 0
assets/an/playeran_left.anim

@@ -0,0 +1,105 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "playeran_left",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 1.0166666666666666,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "758d17fa-4060-46b2-b47d-8573de103055"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "35330c1a-5d47-4aae-99f6-59464ab4f2a7"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "72b5ba8f-9fae-49f0-99d7-f290c4a0331f"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "4b409eff-32cb-41e5-bec4-71ca7b00fb6b"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "7bf1ab68-caa6-4d52-b087-a5e7fdfb1bc2"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "4a883fda-b15d-4778-9852-9912b86d30d2"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "358bbe1f-307f-4193-bf3e-d95a7426ee45"
+            }
+          },
+          {
+            "frame": 0.5833333333333334,
+            "value": {
+              "__uuid__": "01b8faf2-5801-4a21-9036-f430a4643c1d"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "df5fdf0b-2c34-456f-b09b-6c4e45108efd"
+            }
+          },
+          {
+            "frame": 0.75,
+            "value": {
+              "__uuid__": "eee57bb8-7a9e-46c4-bfca-7810d219c078"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "a724f27a-bf68-41d8-b3bc-e70cf2b76983"
+            }
+          },
+          {
+            "frame": 0.9166666666666666,
+            "value": {
+              "__uuid__": "2baf5bed-9ca0-47e3-82ad-3a8219b47074"
+            }
+          },
+          {
+            "frame": 1,
+            "value": {
+              "__uuid__": "aa7e9339-7da6-49d9-ada3-9142332fb210"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": [
+    {
+      "frame": 0.5333333333333333,
+      "func": "leftok",
+      "params": [
+        true
+      ]
+    }
+  ]
+}

+ 5 - 0
assets/an/playeran_left.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "1bcd6024-6399-4040-a6c3-ebedd5d7b11e",
+  "subMetas": {}
+}

+ 49 - 0
assets/an/playeran_left_bad.anim

@@ -0,0 +1,49 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "playeran_left_bad",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.6833333333333333,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "141c68ff-0cfc-42fd-82f1-76397990504e"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "4ed865ce-177d-48d2-b663-4730a4dbfc02"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "87a4eb02-8f91-429a-9d48-cf2feb2ca11f"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "ec9fffc9-b1f5-4c3b-a2fa-c521547f88e8"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "1d78c498-df8f-412f-9f95-e8214d4f53b0"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/playeran_left_bad.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "afcec68e-9957-434b-b828-974d2dd22d8d",
+  "subMetas": {}
+}

+ 85 - 0
assets/an/playeran_mid.anim

@@ -0,0 +1,85 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "playeran_mid",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.85,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "93259813-7892-4323-a62e-603d15f9adfc"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "643b0ab4-c665-4b35-b821-5992b556d7f2"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "1b6f406e-94c8-436d-b4b2-2b73b60c9a2c"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "53cf1719-45fe-40dc-b7de-95357af0ff8b"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "caa474c4-44b3-4b65-9f5d-8e400551026c"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "9a0e5329-2a9c-42b1-8a47-1fc2a0632f74"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "2d8dc56a-0a55-4cd3-bf43-d12eb5e06207"
+            }
+          },
+          {
+            "frame": 0.5833333333333334,
+            "value": {
+              "__uuid__": "e47dcc2f-f518-424e-a210-8c2db3257056"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "39e9a6e4-6294-4620-bfcd-ef89c3568497"
+            }
+          },
+          {
+            "frame": 0.75,
+            "value": {
+              "__uuid__": "ab54e421-aef3-43a9-805f-5972a0824b16"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "0bc29eef-2536-4ae1-afd5-034df234c896"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/playeran_mid.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "b955d46a-7d77-4ef4-b4ae-c67f34ccc16a",
+  "subMetas": {}
+}

+ 151 - 0
assets/an/playeran_normal.anim

@@ -0,0 +1,151 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "playeran_normal",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 1.7333333333333334,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "15c12197-1de6-4de1-b144-04b7a4189757"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "b3ee2504-3bb1-41f3-b1d0-b726703ca3d7"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "37c01718-bb49-44ce-ae22-e93e0b6dbacb"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "09194b52-d15f-4ab8-9188-f754c6cee0cc"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "f6f37b0f-4a67-4eaa-a16f-b36d49559371"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "0cb922ef-a85d-4a29-a9af-9f352f9d9a59"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "67488bc1-f81f-4d52-a4ee-55c25edac0af"
+            }
+          },
+          {
+            "frame": 0.5833333333333334,
+            "value": {
+              "__uuid__": "ef95be53-510e-475d-9d1c-9d97aa082fe4"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "08ba45cc-9edf-4ea3-aa3c-1e50bdb21ed3"
+            }
+          },
+          {
+            "frame": 0.75,
+            "value": {
+              "__uuid__": "08ba45cc-9edf-4ea3-aa3c-1e50bdb21ed3"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "75888106-2f56-441a-b52b-93fda81d0c79"
+            }
+          },
+          {
+            "frame": 0.9166666666666666,
+            "value": {
+              "__uuid__": "cf58d414-e8f4-4cc8-9478-f20408d4f5a9"
+            }
+          },
+          {
+            "frame": 1,
+            "value": {
+              "__uuid__": "debf2910-f6a8-4026-9b20-867177cfc59d"
+            }
+          },
+          {
+            "frame": 1.0833333333333333,
+            "value": {
+              "__uuid__": "0b339dbc-af03-465d-b405-b04cf790bddc"
+            }
+          },
+          {
+            "frame": 1.1666666666666667,
+            "value": {
+              "__uuid__": "161847f6-b3a0-4738-b92c-1bd63053eb7c"
+            }
+          },
+          {
+            "frame": 1.25,
+            "value": {
+              "__uuid__": "ffcdc199-edd1-489a-8d56-85c6cd1f1565"
+            }
+          },
+          {
+            "frame": 1.3333333333333333,
+            "value": {
+              "__uuid__": "7c6b6f2b-88e1-4e65-8536-378d9566425e"
+            }
+          },
+          {
+            "frame": 1.4166666666666667,
+            "value": {
+              "__uuid__": "68474389-83ec-446b-a6df-8f1137ab9ebe"
+            }
+          },
+          {
+            "frame": 1.5,
+            "value": {
+              "__uuid__": "75f8bd08-ecb5-442b-b917-6f9177be3452"
+            }
+          },
+          {
+            "frame": 1.5833333333333333,
+            "value": {
+              "__uuid__": "758d17fa-4060-46b2-b47d-8573de103055"
+            }
+          },
+          {
+            "frame": 1.6666666666666667,
+            "value": {
+              "__uuid__": "758d17fa-4060-46b2-b47d-8573de103055"
+            }
+          },
+          {
+            "frame": 1.7166666666666666,
+            "value": {
+              "__uuid__": "758d17fa-4060-46b2-b47d-8573de103055"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/playeran_normal.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "539b2e23-8f86-4d54-a548-3666a37247e3",
+  "subMetas": {}
+}

+ 123 - 0
assets/an/playeran_right.anim

@@ -0,0 +1,123 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "playeran_right",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 1.2666666666666666,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "aa7e9339-7da6-49d9-ada3-9142332fb210"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "f5625d1d-5e81-4766-90f1-08ac35d5b525"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "7ba36fda-8c9d-42c0-8f01-d05cb417df9c"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "83e8a11c-0e14-45d8-8334-dfa07bb93fda"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "c5eeea91-ddfb-4ccd-b8dc-4e955ce01eb5"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "4ec52b80-8273-46d4-8082-8373c0636900"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "5a4595dc-6c00-4446-8928-b65eed6e744e"
+            }
+          },
+          {
+            "frame": 0.5833333333333334,
+            "value": {
+              "__uuid__": "e855fe7f-24a2-4195-94c8-f50f4dce45bd"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "05bfb813-ea56-455d-81c9-ae49f6f406d8"
+            }
+          },
+          {
+            "frame": 0.75,
+            "value": {
+              "__uuid__": "25da27c3-5488-4e6f-b82d-6d7fb95cef6c"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "2a487b6d-8e3f-4766-aed5-aab1e89b5cd2"
+            }
+          },
+          {
+            "frame": 0.9166666666666666,
+            "value": {
+              "__uuid__": "ff282016-4214-4039-ac4f-247dba4c3c74"
+            }
+          },
+          {
+            "frame": 1,
+            "value": {
+              "__uuid__": "f9185045-ee90-4b0d-9ec8-df515506b245"
+            }
+          },
+          {
+            "frame": 1.0833333333333333,
+            "value": {
+              "__uuid__": "097d0265-fcb2-4f86-975f-5482ef7ad8ec"
+            }
+          },
+          {
+            "frame": 1.1666666666666667,
+            "value": {
+              "__uuid__": "93259813-7892-4323-a62e-603d15f9adfc"
+            }
+          },
+          {
+            "frame": 1.25,
+            "value": {
+              "__uuid__": "643b0ab4-c665-4b35-b821-5992b556d7f2"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": [
+    {
+      "frame": 0.7,
+      "func": "rightok",
+      "params": [
+        true
+      ]
+    }
+  ]
+}

+ 5 - 0
assets/an/playeran_right.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "f1fb84da-0b13-40eb-9138-f1db06695552",
+  "subMetas": {}
+}

+ 55 - 0
assets/an/playeran_right_bad.anim

@@ -0,0 +1,55 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "playeran_right_bad",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.85,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "1d78c498-df8f-412f-9f95-e8214d4f53b0"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "cda0ac38-e9ae-45e9-a6b6-9fdfe32bd36b"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "c96838f7-9f5f-42bf-bedf-dd68a953a8cd"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "816762c2-8b47-444e-b39e-ed74781c7f65"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "7c4d3588-066b-4d12-afd8-24ceb48dbccc"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "9feb51c7-e4c4-47ee-bced-5eedc7c2ffc9"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/playeran_right_bad.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "2adbc033-cd04-4148-80a9-9dfc22b9ef58",
+  "subMetas": {}
+}

+ 103 - 0
assets/an/rival1_left.anim

@@ -0,0 +1,103 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "rival1_left",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 1.1,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": "0",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "69301622-201f-4ac1-9f18-bf864c5b1ddf"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "54b4bdb4-d268-4e1d-a0b8-d6a7859cef5e"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "10fe9920-c06b-4d84-a613-39887f5ab963"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "20500ab6-973c-49df-8762-4b5b12bda619"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "f856b76b-4997-4623-915d-e60c14826b2d"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "2db2b726-99eb-4560-8b38-524d02ad65e4"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "8716f5f8-a6e5-49ca-ad86-b6a0d60039f7"
+            }
+          },
+          {
+            "frame": 0.5833333333333334,
+            "value": {
+              "__uuid__": "3f38ba58-936a-4ed6-bc36-c8502d898d6d"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "eee417db-0ce3-4f89-ba46-4d2f1ba95863"
+            }
+          },
+          {
+            "frame": 0.75,
+            "value": {
+              "__uuid__": "f49911c5-23e8-4ea7-b09d-6f9ae12970e2"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "e5a42be8-2051-4464-851d-84fabbac1870"
+            }
+          },
+          {
+            "frame": 0.9166666666666666,
+            "value": {
+              "__uuid__": "33c29a12-2431-4cf9-86cd-a02872d1a2f8"
+            }
+          },
+          {
+            "frame": 1,
+            "value": {
+              "__uuid__": "f8e5cd60-5b49-4252-9312-891a1623f25e"
+            }
+          },
+          {
+            "frame": 1.0833333333333333,
+            "value": {
+              "__uuid__": "c8092c76-622d-47ef-b0e4-705b0c532ffa"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/rival1_left.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "b3790ad1-7f7a-4093-8900-64da5253becb",
+  "subMetas": {}
+}

+ 37 - 0
assets/an/rival1_left_bad.anim

@@ -0,0 +1,37 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "rival1_left_bad",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.35,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": "0",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "a3568ca3-0264-4ed5-abd6-ccb4772322ee"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "80cca282-6fbb-4b7c-8d60-fec7ac5c928f"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "771ab182-3f11-454e-aae0-292a92f27111"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/rival1_left_bad.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "142c2d92-2856-4640-8336-a6a073d4b078",
+  "subMetas": {}
+}

+ 145 - 0
assets/an/rival1_normal.anim

@@ -0,0 +1,145 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "rival1_normal",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 1.6833333333333333,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "04d97be8-86cc-42d7-97a9-3158f6dff5b2"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "75383073-52f6-434b-a4ac-91e33f12e33f"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "52a0a151-c95e-410f-85ca-a89d3ad2d636"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "6faf0167-9555-4734-851d-d71c58c1cad4"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "01ec2bfb-f516-4024-9af4-9bc950367c33"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "5fa3fbb8-cf57-40bf-8f78-48c5583c4486"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "f0866596-48dd-440c-af5e-74cab2d952ec"
+            }
+          },
+          {
+            "frame": 0.5833333333333334,
+            "value": {
+              "__uuid__": "0aac0727-0878-4a95-9a4a-e9b4b09009d1"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "a8a32192-9ea6-4a38-9e30-69c8fcdf5cb7"
+            }
+          },
+          {
+            "frame": 0.75,
+            "value": {
+              "__uuid__": "7eb121a1-084b-4a29-aae4-71d9571844ed"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "26c7183c-3c7e-4da1-918e-ef6ad12752fe"
+            }
+          },
+          {
+            "frame": 0.9166666666666666,
+            "value": {
+              "__uuid__": "badefa5e-60e7-43df-a915-a79a051770b5"
+            }
+          },
+          {
+            "frame": 1,
+            "value": {
+              "__uuid__": "7eb121a1-084b-4a29-aae4-71d9571844ed"
+            }
+          },
+          {
+            "frame": 1.0833333333333333,
+            "value": {
+              "__uuid__": "26c7183c-3c7e-4da1-918e-ef6ad12752fe"
+            }
+          },
+          {
+            "frame": 1.1666666666666667,
+            "value": {
+              "__uuid__": "badefa5e-60e7-43df-a915-a79a051770b5"
+            }
+          },
+          {
+            "frame": 1.25,
+            "value": {
+              "__uuid__": "4d3594ce-2157-484c-9750-dc201092a8fe"
+            }
+          },
+          {
+            "frame": 1.3333333333333333,
+            "value": {
+              "__uuid__": "3555466c-ef9f-417d-9068-488249ce36e6"
+            }
+          },
+          {
+            "frame": 1.4166666666666667,
+            "value": {
+              "__uuid__": "8eb8609d-de0c-41fa-96c1-9a3b013165de"
+            }
+          },
+          {
+            "frame": 1.5,
+            "value": {
+              "__uuid__": "89cf0f6a-9301-437a-a065-422f6d16df9b"
+            }
+          },
+          {
+            "frame": 1.5833333333333333,
+            "value": {
+              "__uuid__": "94523f84-d71f-40dd-89a8-5d82b45483aa"
+            }
+          },
+          {
+            "frame": 1.6666666666666667,
+            "value": {
+              "__uuid__": "23c2cc9f-6183-4401-a495-4838947bf3bf"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/rival1_normal.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "3077ed5b-8b0a-494b-8327-378acd3d8741",
+  "subMetas": {}
+}

+ 49 - 0
assets/an/rival1_right_bad.anim

@@ -0,0 +1,49 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "rival1_right_bad",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.6833333333333333,
+  "sample": 60,
+  "speed": 1.5,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "3b379108-3445-4722-ae1b-0687ed1ffcc4"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "66491aa3-6bdf-4a09-94e8-561e15aa243a"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "599b2a6a-dfe8-4fa6-a5f7-d9499813c17b"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "7251614f-d68c-4fe3-9104-80de7df06363"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "9f93ab07-1efc-4448-8798-377418d264db"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/rival1_right_bad.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "78af3f8a-c5f0-49fe-a8cc-a59eecd77bae",
+  "subMetas": {}
+}

+ 111 - 0
assets/an/take.anim

@@ -0,0 +1,111 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "take",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.6666666666666666,
+  "sample": 60,
+  "speed": 2,
+  "wrapMode": "0",
+  "curveData": {
+    "props": {
+      "scale": [
+        {
+          "frame": 0,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        },
+        {
+          "frame": 0.16666666666666666,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.1,
+            "y": 1.1
+          }
+        },
+        {
+          "frame": 0.3333333333333333,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        },
+        {
+          "frame": 0.5,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.1,
+            "y": 1.1
+          }
+        },
+        {
+          "frame": 0.6666666666666666,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        }
+      ],
+      "angle": [
+        {
+          "frame": 0,
+          "value": 0
+        },
+        {
+          "frame": 0.16666666666666666,
+          "value": 3
+        },
+        {
+          "frame": 0.3333333333333333,
+          "value": 0
+        },
+        {
+          "frame": 0.5,
+          "value": -5
+        },
+        {
+          "frame": 0.6666666666666666,
+          "value": 0
+        }
+      ],
+      "x": [
+        {
+          "frame": 0,
+          "value": 0
+        },
+        {
+          "frame": 0.16666666666666666,
+          "value": -50
+        },
+        {
+          "frame": 0.3333333333333333,
+          "value": 0
+        },
+        {
+          "frame": 0.5,
+          "value": 50
+        },
+        {
+          "frame": 0.6666666666666666,
+          "value": 0
+        }
+      ],
+      "y": [
+        {
+          "frame": 0,
+          "value": 0
+        },
+        {
+          "frame": 0.16666666666666666,
+          "value": 0
+        }
+      ]
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/take.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "7859db4c-a3fb-4817-9cfd-07b0fd0fb705",
+  "subMetas": {}
+}

+ 7 - 0
assets/js.meta

@@ -0,0 +1,7 @@
+{
+  "ver": "1.0.1",
+  "uuid": "06f8b468-0978-4322-9985-0cd95890afd8",
+  "isSubpackage": false,
+  "subpackageName": "",
+  "subMetas": {}
+}

+ 41 - 0
assets/js/NewScript.js

@@ -0,0 +1,41 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        Log.info("现在看的是",this)
+    },
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/NewScript.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "5e11b9d5-d321-4e56-bc93-7da1249108e6",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 170 - 0
assets/js/SVBetter.js

@@ -0,0 +1,170 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+        item: cc.Prefab,
+        content: cc.Node,
+        scrollView: cc.Node,
+        maskNode: cc.Node
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start() {
+
+        this.scrollview = this.node.getChildByName("scrollview")
+        this.view = this.scrollview.getChildByName("view")
+        this.more = this.view.getChildByName("more")
+        this.morett = this.more.getComponent(cc.Label)
+
+        this.scrollView.on('scroll-to-bottom', function () {
+            cc.log('滚动到列表底部了');
+            // this.morett.string = "松手加载更多"
+            if (this.onMoreListener) {
+                this.onMoreListener()
+            }
+        }.bind(this));
+        this.scrollView.on('scrolling', function (event) {
+            cc.log('正在滚动',this.content.y,"高",this.content.height,"原本的高度",
+                this.oldY,"计算的高度",this.content.y+this.oldY);
+            if ( this.content.y+this.oldY >= this.content.height*0.98) {
+                cc.log('现在要显示哦');
+                if (this.more.active == false) {
+                    this.more.active = true
+                    // this.morett.string = "上拉加载更多"
+                }
+            }else{
+                this.more.active = false
+            }
+        }.bind(this));
+    },
+
+    onMoreListener(){
+
+    },
+    setMoreListener(onMoreListener){
+        this.onMoreListener = onMoreListener
+    },
+
+    createList(data) {
+        this.data = data;
+
+        this.itemHeight = 110;//设置每个item的高
+        this.topIndex = 0;//最上面的item索引id
+        this.bottomIndex = 9;//最下面的item索引id
+        this.offsetY = 200;//上下临界坐标补充,点击查看原理,值太小会出现item在边界闪动的情况,因为item可能此时在上下两边时均符合移动的情况,所以就会无限循环移动,此值建议自行调整
+
+        //如果觉得这种获取临界坐标的方式比较麻烦,可以多创建几个item,指定屏幕的上下边为边界
+        let scrollViewPos = this.scrollView.position;//scrollView以屏幕中心为原点的坐标,请自行计算出来
+        this.topExtremeDistance = scrollViewPos.y + this.scrollView.height / 2 + this.offsetY;//获取item能到达的屏幕上边界y坐标
+        this.bottomExtremeDistance = scrollViewPos.y - this.scrollView.height / 2 - this.offsetY;//获取item能到达的屏幕下边界y坐标
+
+        this.itemsArr = [];//item存储arr
+
+        for (let i = 0; i < this.data.length; i++) {
+            let listItem = cc.instantiate(this.item);
+            listItem.parent = this.content;
+            this.updateItem(listItem, this.data[i], i);
+        }
+
+        this.oldY = this.content.y
+
+        this.content.height = (data.length ) * this.itemHeight + 50;
+
+
+
+    },
+
+    moreItem(data){
+       var oldindex =  this.data.length
+        this.data = this.data.concat(data);
+        cc.log('加载更多 data i',this.data);
+        // cc.log('加载更多 data',this.data);
+        // for (let i = oldindex; i < this.data.length; i++) {
+        //     let listItem = cc.instantiate(this.item);
+        //     listItem.parent = this.content;
+        //     this.updateItem(listItem, this.data[i], i);
+        // }
+        //
+        this.oldY = this.content.y
+
+        this.content.height = (oldindex ) * this.itemHeight + 50;
+    },
+
+    updateItem(listItem, data, i) {
+        listItem.y = -i * this.itemHeight - this.itemHeight / 2;
+        listItem.getComponent('SVItem').updateUI(data);
+        this.itemsArr[i] = listItem;
+    },
+
+    updateItemsPos(dt) {
+        if (!!this.itemsArr && !!this.itemsArr[this.bottomIndex]) {
+            //获取上下item当前的坐标
+            // let topPos = cc.pSub(this.itemsArr[this.topIndex].convertToWorldSpaceAR(cc.v2(0, 0)), cc.v2(cc.winSize.width / 2, cc.winSize.height / 2));
+            // let bottomPos = cc.pSub(this.itemsArr[this.bottomIndex].convertToWorldSpaceAR(cc.v2(0, 0)), cc.v2(cc.winSize.width / 2, cc.winSize.height / 2));
+
+            let topPos = this.itemsArr[this.topIndex].convertToWorldSpaceAR(cc.v2(0, 0)).sub(cc.v2(cc.winSize.width / 2, cc.winSize.height / 2))
+            let bottomPos = this.itemsArr[this.bottomIndex].convertToWorldSpaceAR(cc.v2(0, 0)).sub(cc.v2(cc.winSize.width / 2, cc.winSize.height / 2))
+
+            //检测上item是否超过边界
+            if (topPos.y > this.topExtremeDistance) {
+                if (this.bottomIndex >= this.data.length - 1) {
+                    return;
+                }
+                this.updateItem(this.itemsArr[this.topIndex], this.data[this.bottomIndex + 1], this.bottomIndex + 1);
+                this.topIndex++;
+                this.bottomIndex++;
+                //检测下item是否超过边界
+            } else if (bottomPos.y < this.bottomExtremeDistance) {
+                if (this.topIndex < 1) {
+                    return;
+                }
+                this.updateItem(this.itemsArr[this.bottomIndex], this.data[this.topIndex - 1], this.topIndex - 1);
+                this.topIndex--;
+                this.bottomIndex--;
+            }
+        }
+    },
+
+    onBtnClk: function (event, param) {
+        switch (param) {
+            case 'back':
+                this.node.destroy();
+                break;
+            case 'mask':
+                this.maskNode.getComponent(cc.Mask).enabled = !this.maskNode.getComponent(cc.Mask).enabled;
+                break;
+        }
+    },
+
+    update(dt) {
+        this.updateItemsPos(dt);
+    },
+});

+ 9 - 0
assets/js/SVBetter.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "e931e001-d5ea-474e-8664-f98a4b0c1160",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 74 - 0
assets/js/SVItem.js

@@ -0,0 +1,74 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+        num: cc.Label,
+        des: cc.Label,
+        group: cc.Node,
+        icon: cc.Node,
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start() {
+
+    },
+
+    updateUI(data) {
+        this.num.string = data.id;
+        this.des.string = data.des;
+        this.checks(data.id)
+        utils.loadHttpSpriteFrame(data.img, this.icon.getComponent(cc.Sprite));
+    },
+    checks(id) {
+        switch (id) {
+            case 1:
+            case 2:
+            case 3:
+                this.setAll(this.group,id-1,true)
+                break;
+            default:
+                this.setAll(this.group,0,false)
+                break;
+        }
+    },
+    setAll(parent,index,b){
+        if (parent.active == b) {
+            return
+        }
+        parent.active = b
+        for (var i = 0; i <parent.children.length ; i++) {
+            parent.children[i].active = false
+        }
+        parent.children[index].active = b
+    }
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/SVItem.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "710333c9-f51c-4d5e-a0e6-5e84b611ced9",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 110 - 0
assets/js/Scene.js

@@ -0,0 +1,110 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+        // scrollView: cc.Prefab,
+        scrollViewBetter: cc.Prefab
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        this.data = [];
+        this.imgs = [
+            "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1820523987,3798556096&fm=26&gp=0.jpg",
+            "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=320178652,790985626&fm=26&gp=0.jpg",
+            "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1012507464,1777027127&fm=26&gp=0.jpg",
+            "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=324013775,2946570240&fm=26&gp=0.jpg",
+            "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2887116093,4058881618&fm=26&gp=0.jpg",
+            "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2188301108,2208747323&fm=26&gp=0.jpg",
+            "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=4176040192,3002869256&fm=26&gp=0.jpg",
+            "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1321463267,128419202&fm=26&gp=0.jpg",
+            "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2677432097,397548121&fm=26&gp=0.jpg",
+            "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2188118499,572678618&fm=26&gp=0.jpg",
+            "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3865525855,2169088944&fm=26&gp=0.jpg",
+        ];
+        for (let i = 0; i < 10; i ++) {
+            this.data[i] = {des: 'test' + i, id: i, img: this.imgs[i]};
+        }
+
+
+        let dialog2 = cc.instantiate(this.scrollViewBetter);
+        dialog2.parent = this.node;
+        dialog2.getComponent('SVBetter').createList(this.data);
+
+        this.dialog2 = dialog2;
+
+        this.dialog2.getComponent('SVBetter').setMoreListener(function () {
+            let l = this.data.length
+           var data = [];
+            var ii = 0
+            for (let i = l; i < l+10; i ++) {
+                data.push( {des: 'test' + i, id: i, img: this.imgs[ii]});
+                ii++
+                        }
+            console.log("给的什么",data);
+            this.dialog2.getComponent('SVBetter').moreItem(data);
+            this.data = this.data.concat(data)
+        }.bind(this))
+    },
+
+    onBtnClk: function (event, param) {
+        switch (param) {
+            case 'normal':
+                if (!!this.dialog1 && this.dialog1.isValid) {
+                    return;
+                }
+
+                let dialog1 = cc.instantiate(this.scrollView);
+                dialog1.parent = this.node;
+                dialog1.getComponent('SV').createList(this.data);
+
+                this.dialog1 = dialog1;
+                break;
+            case 'better':
+                if (!!this.dialog2 && this.dialog2.isValid) {
+                    return;
+                }
+
+                let dialog2 = cc.instantiate(this.scrollViewBetter);
+                dialog2.parent = this.node;
+                dialog2.getComponent('SVBetter').createList(this.data);
+
+                this.dialog2 = dialog2;
+
+                this.dialog2.getComponent('SVBetter').setMoreListener(function () {
+                    this.dialog2.getComponent('SVBetter').moreItem(this.data);
+                }.bind(this))
+                break;
+        }
+    }
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/Scene.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "056d8aa6-0c62-43e3-bb4f-2ae2499cc08d",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 111 - 0
assets/js/click.js

@@ -0,0 +1,111 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+           this.left =  UtilsNode.getNode("left",this.node)
+           this.mid =  UtilsNode.getNode("mid",this.node)
+           this.right =  UtilsNode.getNode("right",this.node)
+
+           this.left_miss =  UtilsNode.getNode("left_miss",this.node)
+           this.right_miss =  UtilsNode.getNode("right_miss",this.node)
+
+        UtilsNode.setOn(this.left,function () {
+            let data = {
+                der: 1,
+                pianyi: 50,
+                power:  UtilsNode.getRandom(2,20,30),
+                ballSpeed: 20,
+                kitTime: 20,
+                ATime: 20
+            }
+            strike.addStrikeAll(data)
+
+            player.playLeft(data)
+
+        }.bind(this))
+        UtilsNode.setOn(this.mid,function () {
+            let data = {
+                der: 2,
+                pianyi: 50,
+                power: UtilsNode.getRandom(2,70,100),
+                ballSpeed: 20,
+                kitTime: 20,
+                ATime: 20
+            }
+            strike.addStrikeAll(data)
+            player.playMid(data)
+        }.bind(this))
+        UtilsNode.setOn(this.right,function () {
+            let data = {
+                der: 3,
+                pianyi: 50,
+                power: UtilsNode.getRandom(2,20,30),
+                ballSpeed: 20,
+                kitTime: 20,
+                ATime: 20
+            }
+            strike.addStrikeAll(data)
+            player.playRight(data)
+        }.bind(this))
+
+        UtilsNode.setOn(this.left_miss,function () {
+            let data = {
+                der: 3,
+                pianyi: 50,
+                power: UtilsNode.getRandom(2,31,50),
+                ballSpeed: 20,
+                kitTime: 20,
+                ATime: 20
+            }
+            strike.addStrikeAll(data)
+            player.playLeft(data)
+            // player.strike_leftMiss(data)
+        }.bind(this))
+        UtilsNode.setOn(this.right_miss,function () {
+            let data = {
+                der: 3,
+                pianyi: 50,
+                power: UtilsNode.getRandom(2,31,50),
+                ballSpeed: 20,
+                kitTime: 20,
+                ATime: 20
+            }
+            strike.addStrikeAll(data)
+            player.playRight(data)
+        }.bind(this))
+    },
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/click.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "f0ef498d-dd18-4717-bf87-aaf86d4de455",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 84 - 0
assets/js/dragonBonesManager.js

@@ -0,0 +1,84 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        this.animationDisplay = this.getComponent(dragonBones.ArmatureDisplay);
+
+        // this.animationDisplay.getAnimationNames()
+        // var ArmatureName = this.animationDisplay.getArmatureNames()
+
+        // Log.info("所有动画1",this.getArmatureNames(this.animationDisplay))
+       //
+       // var AnimationNames = this.getAnimationNames(this.animationDisplay,this.getArmatureNames(this.animationDisplay))
+       //
+       //  Log.info("所有动画2",AnimationNames)
+       //  this.Play(this.animationDisplay,AnimationNames[0],function (type, listener, target) {
+       //      Log.info("播放完毕 type",type)
+       //      // Log.info("播放完毕 listener",listener)
+       //      // Log.info("播放完毕 target",target)
+       //  }.bind(this),1)
+    },
+    _init(){
+        return this.getAnimationNames(this.animationDisplay,this.getArmatureNames(this.animationDisplay))
+    },
+
+    getAnimationNames(animationDisplay,name){
+        return animationDisplay.getAnimationNames(name)
+    },
+    getArmatureNames(animationDisplay){
+       return animationDisplay.getArmatureNames()
+    },
+
+    play( newAnimation, completeCallback, playTimes) {  //动态加载龙骨
+        this.animationDisplay.playAnimation(newAnimation, playTimes);
+        // this.node.scale = new cc.Vec2(scaleX, 1);
+        this.animationDisplay.addEventListener(dragonBones.EventObject.COMPLETE, completeCallback, this.animationDisplay);//.apply(this));
+    },
+    timeScale( timeScale) {  //动态加载龙骨
+        this.animationDisplay.timeScale = timeScale;
+    },
+    playNotEvent( newAnimation, completeCallback, playTimes) {  //动态加载龙骨
+        this.animationDisplay.playAnimation(newAnimation, playTimes);
+    },
+    removeEvent(completeCallback) {  //动态加载龙骨
+        this.animationDisplay.removeEventListener(dragonBones.EventObject.COMPLETE, completeCallback, this.animationDisplay);//.apply(this));
+    },
+    //帧回调
+    frame(completeCallback) {  //动态加载龙骨
+        this.animationDisplay.addEventListener(dragonBones.EventObject.FRAME_EVENT, completeCallback, this.animationDisplay);//.apply(this));
+    },
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/dragonBonesManager.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "fd264612-a227-4c9e-9390-d0b0688220fa",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 44 - 0
assets/js/game.js

@@ -0,0 +1,44 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        game = this
+       this.an =  this.getComponent(cc.Animation);
+    },
+    startAn (){
+        this.an.play()
+    }
+    // update (dt) {},
+});

+ 9 - 0
assets/js/game.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "2e21b84d-04b4-47b0-9927-8eeff1a56ea0",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 51 - 0
assets/js/gameover.js

@@ -0,0 +1,51 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        gameManager.gameover = this
+       this.manager =  UtilsNode.getNode("manager",this.node)
+       this.Button =  UtilsNode.getNode("Button",this.manager)
+
+
+
+        UtilsNode.setOn(this.Button,function () {
+            gameManager.restart()
+        }.bind(this))
+    },
+    setAct(type){
+        this.manager.active = type
+    }
+    // update (dt) {},
+});

+ 9 - 0
assets/js/gameover.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "064e0f44-294c-4002-9839-c060db0f2df7",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 116 - 0
assets/js/lifeManager.js

@@ -0,0 +1,116 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+
+
+        index: {
+            default: 0,
+            type:cc.Integer,
+        }
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    onLoad () {
+
+        this._init()
+    },
+
+    start () {
+
+    },
+    _init(){
+        lifes[this.index] = this
+        this.life = this.getComponent(cc.ProgressBar);
+        this.Defend = UtilsNode.getNode("Defend",this.node)
+        //防御值
+        this.Defendlife = this.Defend.getComponent(cc.ProgressBar);
+
+        this.initLife()
+    },
+    //初始化 血量 和防御值
+    initLife(){
+        this.life.progress = 1
+        this.Defendlife.progress = 1
+    },
+
+    getLife(){
+
+        // Log.info("现在得到的是",this.life.totalLength);
+        // Log.info("现在得到的是",this.life.progress);
+        return this.life.progress*100
+    },
+    //
+    addLife(num,callback){
+
+        // Log.info("现在得到的是",this.life.totalLength);
+        // Log.info("现在得到的是",this.life.progress);
+        var temp = this.life.progress*100+num
+        this.life.progress= (this.life.progress*100+num)/100
+        if (temp <= 0) {
+            if (callback) {
+                callback(this.index);
+                return
+            }
+        }else{
+
+        }
+    },
+    addDefendLife(num,callback){
+
+        // Log.info("现在得到的是",this.life.totalLength);
+        // Log.info("现在得到的是",this.life.progress);
+        var temp = this.Defendlife.progress*100+num
+        this.Defendlife.progress= (this.Defendlife.progress*100+num)/100
+        if (temp <= 0) {
+            if (callback) {
+                callback(this.index);
+                this.Defendlife.progress = 1
+                return
+            }
+        }else{
+
+        }
+    },
+
+    update (dt) {
+        if (!gameManager.getGameType()) {
+            if (this.Defendlife) {
+                if (this.Defendlife.progress*100<100) {
+                    this.Defendlife.progress+=0.0005
+                }else{
+                    this.Defendlife.progress = 1
+                }
+            }
+        }else{
+        }
+
+
+    },
+});

+ 9 - 0
assets/js/lifeManager.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "547b04a4-1800-4faf-9742-90ef9e6c80f6",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 98 - 0
assets/js/loadingmanager.js

@@ -0,0 +1,98 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+window.loadmanager = {}
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start() {
+
+        loadmanager = this
+        //常驻节点
+        cc.game.addPersistRootNode(this.node);
+        this.initScene()
+        //初始化加载进度监听
+        this.initLoadListener()
+
+        this.loading = UtilsNode.getNode("loading",this.node)
+        this.bg = UtilsNode.getNode("bg",this.node)
+
+
+    },
+
+    initLoadListener() {
+        // this.progressTag = false;
+        // cc.loader.onProgress = function (completeCount, totalCount) {
+        //     if (this.progressTag) {
+        //         this.progress = (1 * completeCount / totalCount).toFixed(1);
+        //         console.log("进度条",this.progress + '%');
+        //         // if (this.progressNode != null) {
+        //         //     this.progressNode.getComponent(cc.ProgressBar).progress = this.progress;
+        //         // }
+        //
+        //     }
+        //
+        // }.bind(this);
+    },
+    initScene() {
+        this.scene = ["config", "game"]
+    },
+    showLoading(b) {
+        this.loading.active = b
+        this.bg.active = b
+    },
+    goto(index,b) {
+        this.showLoading(true);
+        // utils.toLoadScene("config",function () {
+        //     this.progressTag = true;
+        // }.bind(this))
+        var scene = this.scene[index]
+        this.loading.getComponent(cc.ProgressBar).progress= 0
+        cc.director.preloadScene(scene, (completedCount, totalCount, item) => {
+            cc.log('加载进度显示');
+            cc.log("completedCount = " + completedCount + ",totalCount=" + totalCount);
+            cc.log('百分比:' + Math.floor(completedCount / totalCount * 100));
+            this.loading.getComponent(cc.ProgressBar).progress = completedCount / totalCount;
+            if (totalCount - completedCount == 0) {
+                // if (b) {
+                //     this.loading.active = false
+                //     utils.toLoadScene(scene)
+                // }
+                this.showLoading(false);
+                utils.toLoadScene(scene)
+            }
+
+        }, (error) => {
+            console.log(error);
+        });
+    }
+    // update (dt) {},
+});

+ 9 - 0
assets/js/loadingmanager.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "c08f7446-6c6e-433d-9f41-0d9674bee6ca",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 51 - 0
assets/js/long.js

@@ -0,0 +1,51 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        this.dragonBonesManager = this.getComponent("dragonBonesManager")
+
+        this.dragonBonesManager.frame(function (event) {
+            // if (event.type === dragonBones.EventObject.COMPLETE) {
+            //     if (event.animationState.name === "attack") {
+            //         Debug.Log("attack 动作播放完毕!!!");
+            //         //TODO:
+            //     }
+            // }
+            Log.info("是什么",event.type,event.animationState.name,event.name ,event.data )
+        }.bind(this));
+    },
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/long.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "8efb9248-9785-4b88-a08c-4bad1f5572eb",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 140 - 0
assets/js/loopTime.js

@@ -0,0 +1,140 @@
+window.boxingManager = {
+    // confs: [
+    //     {
+    //         top: {
+    //             time: 0.2,
+    //             timeScale: 3
+    //         },
+    //         mid: {
+    //             time: 2.6,
+    //             timeScale: 1
+    //         },
+    //         lower: {
+    //             time: 0.1,
+    //             timeScale: 3
+    //         },
+    //     },
+    //     {
+    //         top: {
+    //             time: 0.2,
+    //             timeScale: 3
+    //         },
+    //         mid: {
+    //             time: 2.2,
+    //             timeScale: 1
+    //         },
+    //         lower: {
+    //             time: 0.1,
+    //             timeScale: 3
+    //         }
+    //     },
+    //     {
+    //         top: {
+    //             time: 0.2,
+    //             timeScale: 3
+    //         },
+    //         mid: {
+    //             time: 2,
+    //             timeScale: 1
+    //         },
+    //         lower: {
+    //             time: 0.1,
+    //             timeScale: 3
+    //         }
+    //     },
+    //
+    // ],
+    scheduleTimes : [3,1.5,1.25],
+    num: 0,
+
+    //奖励分数
+    rewardScore : 10,
+
+
+    setConf: function (num) {
+        this.num = num;
+        return this.confs[this.num];
+    },
+    getConf: function () {
+
+        return this.confs[this.num];
+    },
+    setScheduleTimes: function (num) {
+        this.num = num;
+        return this.scheduleTimes[this.num];
+    },
+    getScheduleTimes: function () {
+        // Log.info("到底是什么",this.num,this.scheduleTimes)
+        return this.scheduleTimes[this.num];
+    },
+
+
+}
+
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+
+    },
+
+    onLoad() {
+
+    },
+
+    endLoop: function () {
+
+    },
+
+    startLoop: function () {
+
+
+        this.count = boxingManager.getScheduleTimes();
+        this.callback = function () {
+            if (this.count != boxingManager.getScheduleTimes()) {
+                // 在第六次执行回调时取消这个计时器
+                this.count = boxingManager.getScheduleTimes();
+                this.unschedule(this.callback);
+                    this.startLoop();
+
+                return;
+            }
+            // let time = new Date().getTime();
+            // // console.log("相差时间 ",time-this.currld);
+            // this.currld = time;
+            this.doSomething();
+            // this.startLoop();
+            // this.count++;
+        }
+        this.schedule(this.callback, boxingManager.getScheduleTimes());
+
+
+    },
+
+
+    doSomething: function () {
+        if (this.StartLoopListener) {
+            this.StartLoopListener()
+        }
+    },
+
+
+    start() {
+
+    },
+
+    setStartLoopListener(StartLoopListener){
+        this.StartLoopListener = StartLoopListener;
+    },
+
+
+
+
+
+    update(dt) {
+
+
+    },
+
+});

+ 9 - 0
assets/js/loopTime.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "0ce29a34-ada8-4e87-bda0-1399126fa25c",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 41 - 0
assets/js/mainconfig.js

@@ -0,0 +1,41 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+
+    },
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/mainconfig.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "56e4bc7e-1859-47fc-9aec-0ac045b36f8f",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 41 - 0
assets/js/maingame.js

@@ -0,0 +1,41 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+
+    },
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/maingame.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "0e6c7d31-3b76-4cdd-a1dd-05df7b58b654",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 46 - 0
assets/js/mainlogin.js

@@ -0,0 +1,46 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+           this.startBtn = UtilsNode.getNode("startBtn",this.node)
+
+        UtilsNode.setOn(this.startBtn,function () {
+            // utils.toLoadScene("config")
+            loadmanager.goto(0,true)
+        }.bind(this))
+    },
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/mainlogin.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "be1b741a-843f-4fad-b4cd-2c77483bb229",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 231 - 0
assets/js/player.js

@@ -0,0 +1,231 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+     // index : 0
+
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        player = this
+        this.scales = 1;
+        //管理器
+        this.dragonBonesManager = this.getComponent("dragonBonesManager")
+        this.dragonBonesManager.frame(function (event) {
+            // if (event.type === dragonBones.EventObject.COMPLETE) {
+            //     if (event.animationState.name === "attack") {
+            //         Debug.Log("attack 动作播放完毕!!!");
+            //         //TODO:
+            //     }
+            // }
+            // Log.info("玩家是什么",event.type,event.animationState.name,event.name ,event.data,"现在状态",this.status )
+            this.playState(this.status)
+        }.bind(this));
+
+
+
+        this.initListener()
+        this._init()
+    },
+
+    _init(){
+        //-1 平常 0 防御 1 左面攻击 2 右面攻击 3左面躲闪  4右面躲闪
+        this.status = -1
+        // var l= this.life.getComponent("lifeManager")
+        //
+        // Log.info("lifeManager",l.getLife())
+
+        // Log.info("现在血量管理",lifes[0].getLife())
+
+
+
+        // Log.info("所有动画名字 玩家",this.dragonBonesManager._init())
+
+        // this.dragonBonesManager.play(this.dragonBonesManager._init()[0],function (type) {
+        //      Log.info("播放完毕 type",this.index)
+        //      // Log.info("播放完毕 listener",listener)
+        //      // Log.info("播放完毕 target",target)
+        //  }.bind(this),1)
+
+
+    },
+    initListener(){
+        rival.setActionCallback(function (status) {
+            Log.info("现在对手状态是",status)
+            this.rivalStatus = status
+            switch (status) {
+                case 0:
+
+                    break;
+                case 1:
+                    if (this.status != 4 && this.status != 0) {
+                        this.takeaBeating()
+                        lifes[0].addLife(strike.ATK, function () {
+                            Log.info("玩家 输了")
+                            gameManager.gameOver(1)
+                        }.bind(this))
+                        // Log.info("现在血量",lifes[1].getLife())
+                    } else {
+                        if (this.status == 0) {
+                            Log.info("现在是 破防")
+                            this.atkDefendPow(null, function () {
+                                this.takeaBeating()
+                                lifes[0].addLife(strike.ATK, function () {
+                                    Log.info("玩家 输了")
+                                    gameManager.gameOver(1)
+                                }.bind(this))
+                            }.bind(this))
+                        }
+                    }
+                    break;
+                case 2:
+                    if (this.status != 3 && this.status != 0) {
+                        this.takeaBeating()
+                        lifes[0].addLife(strike.ATK, function () {
+                            Log.info("玩家 输了")
+                            gameManager.gameOver(1)
+                        }.bind(this))
+                        // Log.info("现在血量",lifes[1].getLife())
+                    } else {
+                        if (this.status == 0) {
+                            // Log.info("现在防御住了")
+                            // this.atkDefend(function () {
+                            //     this.strike_leftGetThrashing()
+                            // }.bind(this))
+                            Log.info("现在是 破防")
+                            this.atkDefendPow(null, function () {
+                                this.takeaBeating()
+                                lifes[0].addLife(strike.ATK, function () {
+                                    Log.info("玩家 输了")
+                                    gameManager.gameOver(1)
+                                }.bind(this))
+                            }.bind(this))
+                        }
+                    }
+            }
+        }.bind(this))
+    },
+    playState(state){
+        rival.beAttacked(state,strike.playerATKData)
+    },
+    atkDefendPow(data, callback) {
+        // if (data.power >= 80) {
+        //     if (callback) {
+        //         //破防
+        //         callback();
+        //         this.initDefend();
+        //     }
+        // }
+        lifes[0].addDefendLife(-20,callback)
+    },
+
+    playLeft(data){
+        if (!this.check()) {
+            return
+        }
+        this.status = 1
+        strike.playerATKData = data
+        rival.readyATK(data)
+
+        this.node.scale =new cc.Vec2(this.scales, this.scales);
+
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[1],function (type) {
+
+            this.idle()
+        }.bind(this),1)
+    },
+    playMid(data){
+        if (!this.check()) {
+            return
+        }
+        strike.playerATKData = data
+        this.status = 0
+        this.node.scale =new cc.Vec2(this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[2],function (type) {
+            this.idle()
+        }.bind(this),1)
+    },
+    playRight(data){
+        if (!this.check()) {
+            return
+        }
+        strike.playerATKData = data
+        rival.readyATK(data)
+        this.status = 2
+        this.node.scale =new cc.Vec2(-this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[1],function (type) {
+            this.idle()
+        }.bind(this),1)
+    },
+    // //右面挨打
+    // strike_rightGetThrashing(){
+    //     this.node.scale =new cc.Vec2(0.5, 0.5);
+    //     this.dragonBonesManager.play(this.dragonBonesManager._init()[3],function (type) {
+    //         this.idle()
+    //     }.bind(this),1)
+    // },
+    // //左面挨打
+    // strike_leftGetThrashing(){
+    //     this.node.scale =new cc.Vec2(-0.5, 0.5);
+    //     this.dragonBonesManager.play(this.dragonBonesManager._init()[3],function (type) {
+    //         this.idle()
+    //     }.bind(this),1)
+    // },
+    //右面躲闪
+    strike_rightMiss(data){
+        if (!this.check()) {
+            return
+        }
+        this.status = 4
+        strike.playerATKData = data
+        this.node.scale =new cc.Vec2(-this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[3],function (type) {
+            this.idle()
+        }.bind(this),1)
+    },
+    //左面躲闪
+    strike_leftMiss(data){
+        if (!this.check()) {
+            return
+        }
+        this.status = 3
+        strike.playerATKData = data
+        this.node.scale =new cc.Vec2(this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[3],function (type) {
+            this.idle()
+        }.bind(this),1)
+    },
+
+
+    idle(){
+        this.node.scale =new cc.Vec2(this.scales, this.scales);
+        this.dragonBonesManager.playNotEvent(this.dragonBonesManager._init()[0],0)
+        this.status = -1
+    },
+    check(){
+        var b = false
+        if (this.status == -1) {
+            b = true
+        }
+        return b
+    },
+    takeaBeating(){
+        game.startAn();
+    }
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/player.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "d309e9f3-efb9-4351-a073-4db336770a05",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 142 - 0
assets/js/playercontrols.js

@@ -0,0 +1,142 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        player = this
+
+
+        this.An = this.node.getComponent(cc.Animation)
+
+
+        this.Animations = utils.getAnimations(this.An);
+        Log.info("所有表演",this.Animations)
+
+
+    },
+
+    leftok(b){
+        // Log.info("打到了",b)
+        if (this.LeftokListener) {
+            this.LeftokListener();
+        }
+    },
+    rightok(b){
+        // Log.info("打到了",b)
+        if (this.RightokListener) {
+            this.RightokListener();
+        }
+    },
+    //左侧击打监听
+    setLeftokListener(LeftokListener){
+        this.LeftokListener = LeftokListener;
+    },
+    setRightokListener(RightokListener){
+        this.RightokListener = RightokListener;
+    },
+    // initListener(){
+    //     utils.setAnimationCallBack(this.An,"finished",,function () {
+    //         Log.info("现在回来的是什么")
+    //     }.bind(this));
+    // },
+
+    playLeft(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[1].name);
+            // this.initListener();
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[1].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[1].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playRight(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[2].name);
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[2].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[2].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playMid(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[3].name);
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[3].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[3].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playLeftBad(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[4].name);
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[4].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[3].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playRightBad(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[5].name);
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[5].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[3].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+
+    setAn_normal(){
+        utils.startAnimation(this.An,this.Animations[0].name);
+    },
+    //动画播放中
+    nowPlaying(callback){
+
+        // Log.info("当前播放的是",this.An.currentClip ,this.Animations[0].name)
+        if (this.An.currentClip == null || this.An.currentClip.name ==this.Animations[0].name ) {
+            if (callback) {
+                callback();
+            }
+        }
+    }
+
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/playercontrols.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "608fd83b-9cf2-4e8f-8f5b-65e53e36ca85",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 431 - 0
assets/js/rival.js

@@ -0,0 +1,431 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start() {
+        rival = this
+        //-1 平常 0 防御 1 左面攻击 2 右面攻击 3左面躲闪  4右面躲闪 5左面挨打 6 右面挨打
+
+        this.dragonBonesManager = this.getComponent("dragonBonesManager")
+        this.dragonBonesManager.frame(function (event) {
+            // if (event.type === dragonBones.EventObject.COMPLETE) {
+            //     if (event.animationState.name === "attack") {
+            //         Debug.Log("attack 动作播放完毕!!!");
+            //         //TODO:
+            //     }
+            // }
+            Log.info("对手是什么", event.type, event.animationState.name, event.name, event.data, "现在状态", this.status)
+            this.playState(this.status)
+        }.bind(this));
+        this._init()
+
+
+    },
+    _init(){
+        this.status = -1
+
+        // Log.info("所有动画名字 对手", this.dragonBonesManager._init())
+        this.scales = 1;
+        this.times = 0.7;
+
+        // this.test()
+        //破防数值
+        this.initDefend();
+        //开始表演
+        this.startAuto()
+
+
+    },
+    //开始 自动动作
+    startAuto() {
+        // this.dragonBonesManager.timeScale(this.times)
+        // clearTimeout(this.defendTime)
+        this.unschedule(this.auto)
+        var time = UtilsNode.getRandom(2, 1, 2)
+        // Log.info("进来时间",time)
+        this.scheduleOnce(this.auto, time)
+    },
+    stopAuto() {
+        this.unschedule(this.auto)
+    },
+    auto() {
+        switch (UtilsNode.getRandom(2, 1, 2)) {
+            case 0:
+                // this.strike_defend()
+                break;
+            case 1:
+                this.strike_right()
+                break;
+            case 2:
+                this.strike_left()
+                break;
+        }
+    },
+    //减少破防数值 (次数)
+    atkDefend(callback) {
+        this.defend--
+        if (this.defend <= 0) {
+            if (callback) {
+                //破防
+                callback();
+                this.initDefend();
+            }
+        }
+    },
+    //减少破防数值 (力量)
+    atkDefendPow(data, callback) {
+        // if (data.power >= 80) {
+        //     if (callback) {
+        //         //破防
+        //         callback();
+        //         this.initDefend();
+        //     }
+        // }
+        lifes[1].addDefendLife(-(data.power/2),callback)
+    },
+    initDefend() {
+        this.defend = 3;
+    },
+
+    //被攻击
+    beAttacked(state, data) {
+        Log.info("现在力量是", data.power)
+        switch (state) {
+            case 0:
+
+                break;
+            //    玩家 左拳   需要右闪避
+            case 1:
+                if (this.status != 4 && this.status != 0) {
+                    this.strike_rightGetThrashing()
+                    lifes[1].addLife(-(data.power/2), function () {
+                        Log.info("玩家 赢了")
+                        gameManager.gameOver(0)
+                    }.bind(this))
+                    // Log.info("现在血量",lifes[1].getLife())
+                } else {
+                    if (this.status == 0) {
+                        Log.info("现在是 破防")
+                        this.atkDefendPow(data, function () {
+                            this.strike_rightGetThrashing()
+                            lifes[1].addLife(-(data.power/2), function () {
+                                Log.info("玩家 赢了")
+                                gameManager.gameOver(0)
+                            }.bind(this))
+                        }.bind(this))
+                    }
+                }
+                break;
+            case 2:
+                if (this.status != 3 && this.status != 0) {
+                    this.strike_leftGetThrashing()
+                    lifes[1].addLife(-(data.power/2), function () {
+                        Log.info("玩家 赢了")
+                        gameManager.gameOver(0)
+                    }.bind(this))
+                    // Log.info("现在血量",lifes[1].getLife())
+                } else {
+                    if (this.status == 0) {
+                        Log.info("现在是 破防")
+                        this.atkDefendPow(data, function () {
+                            this.strike_leftGetThrashing()
+                            lifes[1].addLife(-(data.power/2), function () {
+                                Log.info("玩家 赢了")
+                                gameManager.gameOver(0)
+                            }.bind(this))
+                        }.bind(this))
+                    }
+                }
+
+                break;
+        }
+    },
+
+
+    playState(state) {
+        if (this.actionCallback) {
+            this.actionCallback(this.status)
+        }
+        switch (state) {
+            case 0:
+
+                break;
+            case 1:
+                // rival.strike_rightGetThrashing()
+                // lifes[1].addLife(strike.ATK,function () {
+                //     Log.info("玩家 赢了")
+                // }.bind(this))
+                // Log.info("现在血量",lifes[1].getLife())
+                break;
+            case 2:
+                // rival.strike_leftGetThrashing()
+                // lifes[1].addLife(strike.ATK,function () {
+                //     Log.info("玩家 赢了")
+                // }.bind(this))
+                // Log.info("现在血量",lifes[1].getLife())
+                break;
+        }
+    },
+    // whereStrike_right (){
+    //     this.strike_right()
+    //     setTimeout(function () {
+    //
+    //         this.whereStrike_right()
+    //     }.bind(this),3000)
+    // },
+    whereStrike_rightMiss() {
+        this.strike_rightMiss()
+        setTimeout(function () {
+
+            this.whereStrike_leftMiss()
+        }.bind(this), 1000)
+    },
+    whereStrike_leftMiss() {
+        this.strike_leftMiss()
+        setTimeout(function () {
+
+            this.whereStrike_strike_defend()
+        }.bind(this), 1000)
+    },
+    whereStrike_strike_defend() {
+        this.strike_defend()
+        setTimeout(function () {
+            this.dragonBonesManager.timeScale(this.times)
+        }.bind(this), 3000)
+        setTimeout(function () {
+            this.whereStrike_rightMiss()
+        }.bind(this), 5000)
+    },
+
+    test() {
+        setTimeout(function () {
+            this.strike_right()
+        }.bind(this), 1000)
+        setTimeout(function () {
+            this.strike_left()
+        }.bind(this), 3000)
+        setTimeout(function () {
+            this.strike_defend()
+        }.bind(this), 5000)
+        setTimeout(function () {
+            this.strike_rightGetThrashing()
+        }.bind(this), 7000)
+        setTimeout(function () {
+            this.strike_leftGetThrashing()
+        }.bind(this), 9000)
+        setTimeout(function () {
+            this.strike_rightMiss()
+        }.bind(this), 11000)
+        setTimeout(function () {
+            this.strike_leftMiss()
+        }.bind(this), 13000)
+    },
+
+    //右拳
+    strike_right() {
+        if (!this.check()) {
+            return
+        }
+        this.status = 2
+        if (this.actionCallback) {
+            this.actionCallback(this.status)
+        }
+
+        this.node.scale = new cc.Vec2(this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[1], function (type) {
+            this.idle()
+        }.bind(this), 1)
+    },
+    //左拳
+    strike_left() {
+        if (!this.check()) {
+            return
+        }
+        this.status = 1
+        if (this.actionCallback) {
+            this.actionCallback(this.status)
+        }
+        this.node.scale = new cc.Vec2(-this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[1], function (type) {
+            this.idle()
+        }.bind(this), 1)
+    },
+    //防守
+    strike_defend() {
+        if (!this.check()) {
+            return
+        }
+        this.status = 0
+        this.node.scale = new cc.Vec2(-this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[2], function (type) {
+            this.idle()
+        }.bind(this), 1)
+        //
+        // this.defendTime =
+        // setTimeout(function () {
+        //     if (this.status == 0) {
+        //         this.dragonBonesManager.timeScale(0)
+        //         this.defendTime = setTimeout(function () {
+        //             if (this.status == 0) {
+        //                 this.dragonBonesManager.timeScale(this.times)
+        //             }else{
+        //                 clearTimeout(this.defendTime)
+        //             }
+        //         }.bind(this),UtilsNode.getRandom(2,1000,2000))
+        //     }else{
+        //         clearTimeout(this.defendTime)
+        //     }
+        //
+        // }.bind(this),500)
+
+
+    },
+    //右面挨打
+    strike_rightGetThrashing() {
+        // if (!this.check()) {
+        //     return
+        // }
+        this.status = 6
+        this.dragonBonesManager.timeScale(this.times)
+        this.node.scale = new cc.Vec2(this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[3], function (type) {
+            this.idle()
+        }.bind(this), 1)
+    },
+    //左面挨打
+    strike_leftGetThrashing() {
+        // if (!this.check()) {
+        //     return
+        // }
+        this.status = 5
+        this.dragonBonesManager.timeScale(this.times)
+        this.node.scale = new cc.Vec2(-this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[3], function (type) {
+            this.idle()
+        }.bind(this), 1)
+    },
+    //右面躲闪
+    strike_rightMiss() {
+        if (!this.check()) {
+            return
+        }
+
+        this.status = 4
+        if (this.actionCallback) {
+            this.actionCallback(this.status)
+        }
+        this.node.scale = new cc.Vec2(this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[4], function (type) {
+            this.idle()
+        }.bind(this), 1)
+    },
+    //左面躲闪
+    strike_leftMiss() {
+        if (!this.check()) {
+            return
+        }
+        this.status = 3
+        if (this.actionCallback) {
+            this.actionCallback(this.status)
+        }
+        this.node.scale = new cc.Vec2(-this.scales, this.scales);
+        this.dragonBonesManager.play(this.dragonBonesManager._init()[4], function (type) {
+            this.idle()
+        }.bind(this), 1)
+    },
+
+    idle() {
+        // if (this.actionCallback) {
+        //     this.actionCallback(this.status)
+        // }
+
+
+        if (!gameManager.getGameType()) {
+            this.startAuto()
+        }else{
+            this.stopAuto()
+        }
+
+        this.node.scale = new cc.Vec2(this.scales, this.scales);
+        this.dragonBonesManager.playNotEvent(this.dragonBonesManager._init()[0], 0)
+        this.status = -1
+    },
+    check() {
+        var b = false
+        if (this.status == -1) {
+            b = true
+        }
+        return b
+    },
+    //准备攻击
+    readyATK(data) {
+        Log.info("现在玩家 的打拳数据", data)
+        switch (data.der) {
+            //右闪避
+            case 1:
+               switch ( UtilsNode.getRandom(2,0,3)) {
+                   case 0:
+                       this.strike_rightMiss()
+                       break;
+                   case 1:
+                       this.strike_defend()
+                       break;
+               }
+
+                break;
+            //    左闪避
+            case 3:
+                switch ( UtilsNode.getRandom(2,0,5)) {
+                    case 0:
+                        this.strike_leftMiss()
+                        break;
+                    case 1:
+                        this.strike_defend()
+                        break;
+                }
+                break;
+
+
+        }
+    },
+
+
+    setActionCallback(actionCallback) {
+        this.actionCallback = actionCallback
+    },
+    actionCallback() {
+    }
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/rival.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "1fe85c1b-e0df-4583-9c6c-5f404e3051f3",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 179 - 0
assets/js/rivalcontrols.js

@@ -0,0 +1,179 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        rival = this
+
+
+        this.An = this.node.getComponent(cc.Animation)
+
+
+        this.Animations = utils.getAnimations(this.An);
+        Log.info("所有表演",this.Animations)
+
+        setTimeout(function () {
+            this.initListener()
+        }.bind(this),500)
+
+
+        this.loopTimeFunc();
+    },
+    loopTimeFunc(){
+        this.loopTime = this.node.getComponent("loopTime")
+        this.loopTime.startLoop();
+        this.loopTime.setStartLoopListener(function () {
+        //    每隔多少秒的回调
+           var random  = UtilsNode.getRandom(2,0,2)
+            this.setAn(random);
+        }.bind(this));
+    },
+
+    setAn(index){
+        this.playLeft();
+    },
+
+
+    initListener(){
+        player.setLeftokListener(function () {
+            this.playLeft_bad();
+        }.bind(this))
+        player.setRightokListener(function () {
+            this.playRight_bad();
+        }.bind(this))
+    },
+
+    // leftok(b){
+    //     Log.info("打到了",b)
+    //     if (this.LeftokListener) {
+    //         this.LeftokListener();
+    //     }
+    // },
+    // //左侧击打监听
+    // setLeftokListener(LeftokListener){
+    //     this.LeftokListener = LeftokListener;
+    // },
+    // initListener(){
+    //     utils.setAnimationCallBack(this.An,"finished",,function () {
+    //         Log.info("现在回来的是什么")
+    //     }.bind(this));
+    // },
+
+    playLeft_bad(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[1].name);
+            // this.initListener();
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[1].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[1].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playLeft(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[3].name);
+            // this.initListener();
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[3].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[1].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playRight_bad(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[2].name);
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[2].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[2].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playRight(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[2].name);
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[2].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[2].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playMid(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[3].name);
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[3].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[3].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playLeftBad(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[4].name);
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[4].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[3].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+    playRightBad(){
+        this.nowPlaying(function () {
+            utils.startAnimation(this.An,this.Animations[5].name);
+            utils.setAnimationCallBack(this.An,"finished",this.Animations[5].name,function () {
+                // Log.info("现在回来的是什么",this.Animations[3].name)
+                this.setAn_normal();
+            }.bind(this));
+        }.bind(this));
+
+    },
+
+    setAn_normal(){
+        utils.startAnimation(this.An,this.Animations[0].name);
+    },
+    nowPlaying(callback){
+
+        // Log.info("当前播放的是",this.An.currentClip ,this.Animations[0].name)
+        if (this.An.currentClip == null || this.An.currentClip.name ==this.Animations[0].name ) {
+            if (callback) {
+                callback();
+            }
+        }
+    }
+    // update (dt) {},
+});

+ 9 - 0
assets/js/rivalcontrols.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "3eafb3f9-957b-4f90-a1cb-a68fa168a3b4",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 49 - 0
assets/js/selectLyout.js

@@ -0,0 +1,49 @@
+// Learn cc.Class:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
+// Learn Attribute:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
+// Learn life-cycle callbacks:
+//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
+//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html
+
+cc.Class({
+    extends: cc.Component,
+
+    properties: {
+        // foo: {
+        //     // ATTRIBUTES:
+        //     default: null,        // The default value will be used only when the component attaching
+        //                           // to a node for the first time
+        //     type: cc.SpriteFrame, // optional, default is typeof default
+        //     serializable: true,   // optional, default is true
+        // },
+        // bar: {
+        //     get () {
+        //         return this._bar;
+        //     },
+        //     set (value) {
+        //         this._bar = value;
+        //     }
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start () {
+        for (var i = 0; i < this.node.children.length; i++) {
+            this.node.children[i].myTag = i
+            UtilsNode.setOn(this.node.children[i],function (Event) {
+                Log.info("回来的部分",Event.currentTarget.myTag)
+                // utils.toLoadScene("game")
+                loadmanager.goto(1)
+            }.bind(this))
+        }
+
+    },
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/selectLyout.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "078e2116-b420-4dc9-b715-3af5f8c28d67",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 18 - 0
assets/js/test.js

@@ -0,0 +1,18 @@
+window.mySocket = {
+    socket : null,
+    initSocket(){
+        this.socket = 250
+    },
+    getMsg(callback){
+        if (callback) {
+            setTimeout(function () {
+                callback(this.socket)
+            }.bind(this),2000)
+        }
+    }
+}
+//找地方这样去执行
+mySocket.initSocket()
+mySocket.getMsg(function (socket) {
+    console.log("回来的是什么",socket);
+}.bind(this))

+ 9 - 0
assets/js/test.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "187e0936-de49-4296-a261-031509771189",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 7 - 0
assets/res.meta

@@ -0,0 +1,7 @@
+{
+  "ver": "1.0.1",
+  "uuid": "a84b0c77-f38f-449d-be95-c94037eb1e86",
+  "isSubpackage": false,
+  "subpackageName": "",
+  "subMetas": {}
+}

BIN
assets/res/HelloWorld.png


+ 32 - 0
assets/res/HelloWorld.png.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "f3464a07-fadc-4344-9c2c-f503070ecc3b",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "HelloWorld": {
+      "ver": "1.0.3",
+      "uuid": "da96f786-33a4-4684-b7a2-d63b9cfd61e0",
+      "rawTextureUuid": "f3464a07-fadc-4344-9c2c-f503070ecc3b",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 195,
+      "height": 270,
+      "rawWidth": 195,
+      "rawHeight": 270,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

+ 1727 - 0
assets/res/SVBetter.prefab

@@ -0,0 +1,1727 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "",
+    "_objFlags": 0,
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "asyncLoadAssets": false,
+    "readonly": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "SVBetter",
+    "_objFlags": 0,
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 6
+      },
+      {
+        "__id__": 28
+      },
+      {
+        "__id__": 37
+      }
+    ],
+    "_active": true,
+    "_level": 1,
+    "_components": [
+      {
+        "__id__": 46
+      },
+      {
+        "__id__": 47
+      }
+    ],
+    "_prefab": {
+      "__id__": 48
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 720,
+      "height": 1280
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 360,
+      "y": 640,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "mask",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 4
+      }
+    ],
+    "_prefab": {
+      "__id__": 5
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 720,
+      "height": 1280
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 45,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 2,
+    "_originalHeight": 2,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "duration": 0.1,
+    "zoomScale": 1.2,
+    "clickEvents": [],
+    "_N$interactable": true,
+    "_N$enableAutoGrayEffect": false,
+    "_N$transition": 0,
+    "transition": 0,
+    "_N$normalColor": {
+      "__type__": "cc.Color",
+      "r": 214,
+      "g": 214,
+      "b": 214,
+      "a": 255
+    },
+    "_N$pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_N$hoverColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "hoverColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_N$disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_N$normalSprite": null,
+    "_N$pressedSprite": null,
+    "pressedSprite": null,
+    "_N$hoverSprite": null,
+    "hoverSprite": null,
+    "_N$disabledSprite": null,
+    "_N$target": {
+      "__id__": 2
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "86vZJVk1RKQ7HTH3lQOPyN",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "scrollview",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 7
+      },
+      {
+        "__id__": 14
+      }
+    ],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 26
+      },
+      {
+        "__id__": 12
+      }
+    ],
+    "_prefab": {
+      "__id__": 27
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 500,
+      "height": 800
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "scrollBar",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 6
+    },
+    "_children": [
+      {
+        "__id__": 8
+      }
+    ],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 11
+      },
+      {
+        "__id__": 23
+      },
+      {
+        "__id__": 24
+      }
+    ],
+    "_prefab": {
+      "__id__": 25
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 238,
+      "g": 217,
+      "b": 227,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 12,
+      "height": 800
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 1,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 250,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "bar",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 7
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 9
+      }
+    ],
+    "_prefab": {
+      "__id__": 10
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 236,
+      "g": 241,
+      "b": 245,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 10,
+      "height": 30
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 1,
+      "y": 0
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": -1,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "5c3bb932-6c3c-468f-88a9-c8c61d458641"
+    },
+    "_type": 1,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "9eAajsQXtLkaGGOdYrNSjh",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Scrollbar",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 7
+    },
+    "_enabled": true,
+    "_scrollView": {
+      "__id__": 12
+    },
+    "_touching": false,
+    "_opacity": 255,
+    "enableAutoHide": true,
+    "autoHideTime": 1,
+    "_N$handle": {
+      "__id__": 9
+    },
+    "_N$direction": 1,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.ScrollView",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 6
+    },
+    "_enabled": true,
+    "horizontal": false,
+    "vertical": true,
+    "inertia": true,
+    "brake": 0.75,
+    "elastic": true,
+    "bounceDuration": 0.23,
+    "scrollEvents": [],
+    "cancelInnerEvents": true,
+    "_N$content": {
+      "__id__": 13
+    },
+    "content": {
+      "__id__": 13
+    },
+    "_N$horizontalScrollBar": null,
+    "_N$verticalScrollBar": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "content",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 14
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 21
+      }
+    ],
+    "_prefab": {
+      "__id__": 22
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 660,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 1
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 400,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "view",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 6
+    },
+    "_children": [
+      {
+        "__id__": 15
+      },
+      {
+        "__id__": 13
+      }
+    ],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 18
+      },
+      {
+        "__id__": 19
+      }
+    ],
+    "_prefab": {
+      "__id__": 20
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 660,
+      "height": 800
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "more",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 14
+    },
+    "_children": [],
+    "_active": false,
+    "_level": 1,
+    "_components": [
+      {
+        "__id__": 16
+      }
+    ],
+    "_prefab": {
+      "__id__": 17
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 240,
+      "height": 40
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -366,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 15
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 1,
+    "_dstBlendFactor": 771,
+    "_useOriginalSize": false,
+    "_string": "上啦加载更多",
+    "_N$string": "上啦加载更多",
+    "_fontSize": 40,
+    "_lineHeight": 40,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_N$horizontalAlign": 1,
+    "_N$verticalAlign": 1,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "6adAnDbPRBF4e1eWHDlyZJ",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Mask",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 14
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": null,
+    "_type": 0,
+    "_segments": 64,
+    "_N$alphaThreshold": 1,
+    "_N$inverted": false,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 14
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 45,
+    "_left": -80,
+    "_right": -80,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 240,
+    "_originalHeight": 250,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "26sT3rVdVMYYeF6ALn0wIv",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 13
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 41,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 700,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 220,
+    "_originalHeight": 100,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "e7Bzqy4qhEibT3OZDEu9GM",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 7
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 37,
+    "_left": 350.07654921020657,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 237,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 7
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "5fe5dcaa-b513-4dc5-a166-573627b3a159"
+    },
+    "_type": 1,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "ed2nBGCmJAUILcaTMqTqL5",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 6
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
+    },
+    "_type": 1,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "a3vtkRHe1MEKAMdKmtB1lL",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "btnClose",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 29
+      }
+    ],
+    "_active": false,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 32
+      },
+      {
+        "__id__": 33
+      },
+      {
+        "__id__": 35
+      }
+    ],
+    "_prefab": {
+      "__id__": 36
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 200,
+      "height": 80
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": -190,
+      "y": 550,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 28
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 30
+      }
+    ],
+    "_prefab": {
+      "__id__": 31
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 136.16,
+      "height": 50
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 29
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 1,
+    "_dstBlendFactor": 771,
+    "_useOriginalSize": false,
+    "_string": "BACK",
+    "_N$string": "BACK",
+    "_fontSize": 50,
+    "_lineHeight": 50,
+    "_enableWrapText": false,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_N$horizontalAlign": 1,
+    "_N$verticalAlign": 1,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "a2xjnRno5GJolFxR459AS1",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
+    },
+    "_type": 1,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "duration": 0.1,
+    "zoomScale": 1.2,
+    "clickEvents": [
+      {
+        "__id__": 34
+      }
+    ],
+    "_N$interactable": true,
+    "_N$enableAutoGrayEffect": false,
+    "_N$transition": 1,
+    "transition": 1,
+    "_N$normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_N$pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_N$hoverColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "hoverColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_N$disabledColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_N$normalSprite": {
+      "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
+    },
+    "_N$pressedSprite": {
+      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
+    },
+    "pressedSprite": {
+      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
+    },
+    "_N$hoverSprite": {
+      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
+    },
+    "hoverSprite": {
+      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
+    },
+    "_N$disabledSprite": {
+      "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
+    },
+    "_N$target": {
+      "__id__": 28
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 1
+    },
+    "component": "",
+    "_componentId": "366c1TDTaJFA7hb2LQ558TI",
+    "handler": "onBtnClk",
+    "customEventData": "back"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 9,
+    "_left": 70,
+    "_right": 50,
+    "_top": 50,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 100,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "3fzIfpJBRFx66Lhq6lHTw+",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "btnMask",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 38
+      }
+    ],
+    "_active": false,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 41
+      },
+      {
+        "__id__": 42
+      },
+      {
+        "__id__": 44
+      }
+    ],
+    "_prefab": {
+      "__id__": 45
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 200,
+      "height": 80
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 190,
+      "y": 550,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 37
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 39
+      }
+    ],
+    "_prefab": {
+      "__id__": 40
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 200,
+      "height": 50
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 38
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 1,
+    "_dstBlendFactor": 771,
+    "_useOriginalSize": false,
+    "_string": "原理查看",
+    "_N$string": "原理查看",
+    "_fontSize": 50,
+    "_lineHeight": 50,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_N$horizontalAlign": 1,
+    "_N$verticalAlign": 1,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "25rtL7pQJJV6s9/RUUw6vL",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 37
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
+    },
+    "_type": 1,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 37
+    },
+    "_enabled": true,
+    "duration": 0.1,
+    "zoomScale": 1.2,
+    "clickEvents": [
+      {
+        "__id__": 43
+      }
+    ],
+    "_N$interactable": true,
+    "_N$enableAutoGrayEffect": false,
+    "_N$transition": 1,
+    "transition": 1,
+    "_N$normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_N$pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "pressedColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_N$hoverColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "hoverColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_N$disabledColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_N$normalSprite": {
+      "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
+    },
+    "_N$pressedSprite": {
+      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
+    },
+    "pressedSprite": {
+      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
+    },
+    "_N$hoverSprite": {
+      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
+    },
+    "hoverSprite": {
+      "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
+    },
+    "_N$disabledSprite": {
+      "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
+    },
+    "_N$target": {
+      "__id__": 37
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 1
+    },
+    "component": "",
+    "_componentId": "e931eAB1epHToZk+YpLDBFg",
+    "handler": "onBtnClk",
+    "customEventData": "mask"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 37
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 33,
+    "_left": 371,
+    "_right": 70,
+    "_top": 50,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 100,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "8a1yK9TmVOFbOWOmocjIzD",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 45,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "e931eAB1epHToZk+YpLDBFg",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "item": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "content": {
+      "__id__": 13
+    },
+    "scrollView": {
+      "__id__": 6
+    },
+    "maskNode": {
+      "__id__": 14
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69"
+    },
+    "fileId": "6bjnS3jPpF76v/8BSTztIl",
+    "sync": false
+  }
+]

+ 8 - 0
assets/res/SVBetter.prefab.meta

@@ -0,0 +1,8 @@
+{
+  "ver": "1.0.0",
+  "uuid": "7883c42c-9ad8-4ffe-b34c-b86c6e409d69",
+  "optimizationPolicy": "AUTO",
+  "asyncLoadAssets": false,
+  "readonly": false,
+  "subMetas": {}
+}

+ 1069 - 0
assets/res/SVItem.prefab

@@ -0,0 +1,1069 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "",
+    "_objFlags": 0,
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "asyncLoadAssets": false,
+    "readonly": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "SVItem",
+    "_objFlags": 0,
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 6
+      },
+      {
+        "__id__": 10
+      },
+      {
+        "__id__": 14
+      },
+      {
+        "__id__": 18
+      }
+    ],
+    "_active": true,
+    "_level": 1,
+    "_components": [
+      {
+        "__id__": 29
+      },
+      {
+        "__id__": 30
+      }
+    ],
+    "_prefab": {
+      "__id__": 31
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 660,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "bg",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 4
+      }
+    ],
+    "_prefab": {
+      "__id__": 5
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 660,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "13fd9393-9a28-4d66-8fad-2512d36778e6"
+    },
+    "_type": 0,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 45,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 40,
+    "_originalHeight": 36,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "fileId": "04JR4g2blFp6qLQhhSJhRv",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "num",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 7
+      },
+      {
+        "__id__": 8
+      }
+    ],
+    "_prefab": {
+      "__id__": 9
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 27.81,
+      "height": 50
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": -266.095,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 6
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 1,
+    "_dstBlendFactor": 771,
+    "_useOriginalSize": false,
+    "_string": "1",
+    "_N$string": "1",
+    "_fontSize": 50,
+    "_lineHeight": 50,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_N$horizontalAlign": 0,
+    "_N$verticalAlign": 0,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 6
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 8,
+    "_left": 50,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "fileId": "88Uj6ywadGgKe5sQlBf8C2",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "icon",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 11
+      },
+      {
+        "__id__": 12
+      }
+    ],
+    "_prefab": {
+      "__id__": 13
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": -82.5,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 10
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "da96f786-33a4-4684-b7a2-d63b9cfd61e0"
+    },
+    "_type": 0,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 10
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 8,
+    "_left": 197.5,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "fileId": "beBZ/g+klLv4nkErEBk5Ql",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "des",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 0,
+    "_components": [
+      {
+        "__id__": 15
+      },
+      {
+        "__id__": 16
+      }
+    ],
+    "_prefab": {
+      "__id__": 17
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 75,
+      "height": 50
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 1,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 280,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 14
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 1,
+    "_dstBlendFactor": 771,
+    "_useOriginalSize": false,
+    "_string": "xxx",
+    "_N$string": "xxx",
+    "_fontSize": 50,
+    "_lineHeight": 50,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_N$horizontalAlign": 0,
+    "_N$verticalAlign": 0,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 14
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 32,
+    "_left": 100,
+    "_right": 50,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "fileId": "b9+YKXy5VKJ6AjKjlHRLXT",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "group",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 19
+      },
+      {
+        "__id__": 22
+      },
+      {
+        "__id__": 25
+      }
+    ],
+    "_active": false,
+    "_level": 2,
+    "_components": [],
+    "_prefab": {
+      "__id__": 28
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 0,
+      "height": 0
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "rank",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 18
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 3,
+    "_components": [
+      {
+        "__id__": 20
+      }
+    ],
+    "_prefab": {
+      "__id__": 21
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 250,
+      "g": 10,
+      "b": 10,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": -283,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 19
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
+    },
+    "_type": 0,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "fileId": "e9RS8TdFpHhbjplkQAW2qT",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "rank",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 18
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 3,
+    "_components": [
+      {
+        "__id__": 23
+      }
+    ],
+    "_prefab": {
+      "__id__": 24
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 99,
+      "g": 212,
+      "b": 69,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": -283,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 22
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
+    },
+    "_type": 0,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "fileId": "1ciDAee/lDlZU+SPSIR4gk",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "rank",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 18
+    },
+    "_children": [],
+    "_active": true,
+    "_level": 3,
+    "_components": [
+      {
+        "__id__": 26
+      }
+    ],
+    "_prefab": {
+      "__id__": 27
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 250,
+      "g": 210,
+      "b": 10,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_position": {
+      "__type__": "cc.Vec3",
+      "x": -280,
+      "y": 0,
+      "z": 0
+    },
+    "_scale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_quat": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_zIndex": 0,
+    "_is3DNode": false,
+    "groupIndex": 0,
+    "_rotationX": 0,
+    "_rotationY": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 25
+    },
+    "_enabled": true,
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
+    },
+    "_type": 0,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_state": 0,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "fileId": "609F0q9J1A6qMYVo/hVWz6",
+    "sync": false
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "fileId": "9eBcb3s1tG8rHBpOFR9pA2",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "alignMode": 0,
+    "_target": null,
+    "_alignFlags": 0,
+    "_left": 360,
+    "_right": 360,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "71033PJ9RxNXqDmXoS2Ec7Z",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "num": {
+      "__id__": 7
+    },
+    "des": {
+      "__id__": 15
+    },
+    "group": {
+      "__id__": 18
+    },
+    "icon": {
+      "__id__": 10
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "72db2e35-96be-4260-9d9d-0f0bbdea901b"
+    },
+    "fileId": "4fYGWCr8lMhIKvlBmFfsjl",
+    "sync": false
+  }
+]

+ 8 - 0
assets/res/SVItem.prefab.meta

@@ -0,0 +1,8 @@
+{
+  "ver": "1.0.0",
+  "uuid": "72db2e35-96be-4260-9d9d-0f0bbdea901b",
+  "optimizationPolicy": "AUTO",
+  "asyncLoadAssets": false,
+  "readonly": false,
+  "subMetas": {}
+}

BIN
assets/res/_501390633.jpg


+ 32 - 0
assets/res/_501390633.jpg.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "51513ad1-d24d-4852-97be-cd898cb96c21",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "_501390633": {
+      "ver": "1.0.3",
+      "uuid": "80e7c882-90e9-460b-8ed0-58b82803bfd4",
+      "rawTextureUuid": "51513ad1-d24d-4852-97be-cd898cb96c21",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 3500,
+      "height": 2333,
+      "rawWidth": 3500,
+      "rawHeight": 2333,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

BIN
assets/res/bg.png


+ 32 - 0
assets/res/bg.png.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "03e4c591-0deb-4ccd-8fc1-f9a5d1efe469",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "bg": {
+      "ver": "1.0.3",
+      "uuid": "6b10e24f-dda9-4c47-b5e0-caeed03c59d0",
+      "rawTextureUuid": "03e4c591-0deb-4ccd-8fc1-f9a5d1efe469",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 720,
+      "height": 1280,
+      "rawWidth": 720,
+      "rawHeight": 1280,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

BIN
assets/res/cs_boxing1p3.png


+ 32 - 0
assets/res/cs_boxing1p3.png.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "30dac10b-7d7f-4d3c-b88a-9bedbcebccbd",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "cs_boxing1p3": {
+      "ver": "1.0.3",
+      "uuid": "7c95bc2d-89d0-45b7-b7e4-879738a069db",
+      "rawTextureUuid": "30dac10b-7d7f-4d3c-b88a-9bedbcebccbd",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 2.5,
+      "offsetY": -21.5,
+      "trimX": 9,
+      "trimY": 51,
+      "width": 1427,
+      "height": 1750,
+      "rawWidth": 1440,
+      "rawHeight": 1809,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

BIN
assets/res/cs_boxing_e1.png


+ 32 - 0
assets/res/cs_boxing_e1.png.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "7e1c0d9e-df21-4a4a-8bdf-e2e7d2001aff",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "cs_boxing_e1": {
+      "ver": "1.0.3",
+      "uuid": "09f64399-5546-4788-af69-808aa79f3112",
+      "rawTextureUuid": "7e1c0d9e-df21-4a4a-8bdf-e2e7d2001aff",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": -2.5,
+      "offsetY": -7,
+      "trimX": 10,
+      "trimY": 14,
+      "width": 1575,
+      "height": 1442,
+      "rawWidth": 1600,
+      "rawHeight": 1456,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

BIN
assets/res/cs_boxing_e2.png


+ 32 - 0
assets/res/cs_boxing_e2.png.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "611d3e94-da1d-44a1-94e6-905f24f14248",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "cs_boxing_e2": {
+      "ver": "1.0.3",
+      "uuid": "18e72caf-f7c3-47cd-b75a-5b3c7808838b",
+      "rawTextureUuid": "611d3e94-da1d-44a1-94e6-905f24f14248",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 6.5,
+      "offsetY": -8.5,
+      "trimX": 26,
+      "trimY": 17,
+      "width": 1561,
+      "height": 1439,
+      "rawWidth": 1600,
+      "rawHeight": 1456,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

BIN
assets/res/cs_boxing_e3.png


+ 32 - 0
assets/res/cs_boxing_e3.png.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "33259a8f-9e11-4a29-82b6-0ea56bc3c580",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "cs_boxing_e3": {
+      "ver": "1.0.3",
+      "uuid": "b7fa93f7-a96f-4da7-91b0-512ea86cbe1c",
+      "rawTextureUuid": "33259a8f-9e11-4a29-82b6-0ea56bc3c580",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": -3,
+      "offsetY": -7,
+      "trimX": 10,
+      "trimY": 14,
+      "width": 1574,
+      "height": 1442,
+      "rawWidth": 1600,
+      "rawHeight": 1456,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

BIN
assets/res/cs_boxing_e4.png


+ 32 - 0
assets/res/cs_boxing_e4.png.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "ee76b253-3a38-424c-babc-109e24113bc3",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "cs_boxing_e4": {
+      "ver": "1.0.3",
+      "uuid": "1e4997fe-25c8-4e53-b36a-767efd66e62f",
+      "rawTextureUuid": "ee76b253-3a38-424c-babc-109e24113bc3",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": -2.5,
+      "offsetY": -7,
+      "trimX": 10,
+      "trimY": 14,
+      "width": 1575,
+      "height": 1442,
+      "rawWidth": 1600,
+      "rawHeight": 1456,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

BIN
assets/res/cs_boxing_parts.png


+ 32 - 0
assets/res/cs_boxing_parts.png.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "e09a06a5-308f-4c61-86cd-42d227c85913",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "cs_boxing_parts": {
+      "ver": "1.0.3",
+      "uuid": "e3903c41-8466-4175-ab11-9b8ae13a314b",
+      "rawTextureUuid": "e09a06a5-308f-4c61-86cd-42d227c85913",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 537,
+      "height": 315,
+      "rawWidth": 537,
+      "rawHeight": 315,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

BIN
assets/res/ending.jpg


+ 32 - 0
assets/res/ending.jpg.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "57f40572-8fda-437a-91b3-fe44253304ed",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "ending": {
+      "ver": "1.0.3",
+      "uuid": "6c7453a9-5738-4a23-b4cd-403c38320aa6",
+      "rawTextureUuid": "57f40572-8fda-437a-91b3-fe44253304ed",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 320,
+      "height": 619,
+      "rawWidth": 320,
+      "rawHeight": 619,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

+ 7 - 0
assets/res/long.meta

@@ -0,0 +1,7 @@
+{
+  "ver": "1.0.1",
+  "uuid": "38aa38df-2300-452d-a062-79e3150bb84a",
+  "isSubpackage": false,
+  "subpackageName": "",
+  "subMetas": {}
+}

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
assets/res/long/Dragon_2_ske.json


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 3 - 0
assets/res/long/Dragon_2_ske.json.meta


+ 1 - 0
assets/res/long/Dragon_2_tex.json

@@ -0,0 +1 @@
+{"width":1024,"height":1024,"name":"Dragon_2","imagePath":"Dragon_2_tex.png","SubTexture":[{"y":234,"frameY":0,"frameWidth":112,"width":111,"frameX":0,"frameHeight":210,"height":209,"name":"parts/tailTip","x":456},{"width":112,"y":234,"height":86,"name":"parts/armUpperL","x":340},{"width":48,"y":859,"height":80,"name":"parts/armL","x":373},{"width":96,"y":922,"height":78,"name":"parts/handL","x":1},{"y":677,"frameY":0,"frameWidth":204,"width":203,"frameX":0,"frameHeight":180,"height":180,"name":"parts/legL","x":238},{"y":397,"frameY":0,"frameWidth":236,"width":235,"frameX":0,"frameHeight":348,"height":347,"name":"parts/body","x":1},{"width":216,"y":397,"height":278,"name":"parts/tail","x":238},{"width":208,"y":746,"height":174,"name":"parts/clothes1","x":1},{"width":124,"y":677,"height":282,"name":"parts/hair","x":443},{"y":1,"frameY":0,"frameWidth":338,"width":337,"frameX":0,"frameHeight":394,"height":394,"name":"parts/head","x":1},{"width":28,"y":961,"height":46,"name":"parts/eyeL","x":459},{"y":961,"frameY":0,"frameWidth":38,"width":37,"frameX":0,"frameHeight":58,"height":58,"name":"parts/eyeR","x":420},{"y":1,"frameY":0,"frameWidth":180,"width":180,"frameX":0,"frameHeight":232,"height":231,"name":"parts/legR","x":340},{"width":160,"y":859,"height":94,"name":"parts/armUpperR","x":211},{"y":941,"frameY":0,"frameWidth":46,"width":45,"frameX":0,"frameHeight":78,"height":77,"name":"parts/armR","x":373},{"width":98,"y":322,"height":58,"name":"parts/handR","x":340},{"y":955,"frameY":0,"frameWidth":120,"width":119,"frameX":0,"frameHeight":36,"height":36,"name":"parts/beardL","x":237},{"width":136,"y":955,"height":36,"name":"parts/beardR","x":99}]}

+ 7 - 0
assets/res/long/Dragon_2_tex.json.meta

@@ -0,0 +1,7 @@
+{
+  "ver": "1.0.0",
+  "uuid": "6a33545b-9b70-4a09-b629-4cb03c2a929b",
+  "atlasJson": "{\"width\":1024,\"height\":1024,\"name\":\"Dragon_2\",\"imagePath\":\"Dragon_2_tex.png\",\"SubTexture\":[{\"y\":234,\"frameY\":0,\"frameWidth\":112,\"width\":111,\"frameX\":0,\"frameHeight\":210,\"height\":209,\"name\":\"parts/tailTip\",\"x\":456},{\"width\":112,\"y\":234,\"height\":86,\"name\":\"parts/armUpperL\",\"x\":340},{\"width\":48,\"y\":859,\"height\":80,\"name\":\"parts/armL\",\"x\":373},{\"width\":96,\"y\":922,\"height\":78,\"name\":\"parts/handL\",\"x\":1},{\"y\":677,\"frameY\":0,\"frameWidth\":204,\"width\":203,\"frameX\":0,\"frameHeight\":180,\"height\":180,\"name\":\"parts/legL\",\"x\":238},{\"y\":397,\"frameY\":0,\"frameWidth\":236,\"width\":235,\"frameX\":0,\"frameHeight\":348,\"height\":347,\"name\":\"parts/body\",\"x\":1},{\"width\":216,\"y\":397,\"height\":278,\"name\":\"parts/tail\",\"x\":238},{\"width\":208,\"y\":746,\"height\":174,\"name\":\"parts/clothes1\",\"x\":1},{\"width\":124,\"y\":677,\"height\":282,\"name\":\"parts/hair\",\"x\":443},{\"y\":1,\"frameY\":0,\"frameWidth\":338,\"width\":337,\"frameX\":0,\"frameHeight\":394,\"height\":394,\"name\":\"parts/head\",\"x\":1},{\"width\":28,\"y\":961,\"height\":46,\"name\":\"parts/eyeL\",\"x\":459},{\"y\":961,\"frameY\":0,\"frameWidth\":38,\"width\":37,\"frameX\":0,\"frameHeight\":58,\"height\":58,\"name\":\"parts/eyeR\",\"x\":420},{\"y\":1,\"frameY\":0,\"frameWidth\":180,\"width\":180,\"frameX\":0,\"frameHeight\":232,\"height\":231,\"name\":\"parts/legR\",\"x\":340},{\"width\":160,\"y\":859,\"height\":94,\"name\":\"parts/armUpperR\",\"x\":211},{\"y\":941,\"frameY\":0,\"frameWidth\":46,\"width\":45,\"frameX\":0,\"frameHeight\":78,\"height\":77,\"name\":\"parts/armR\",\"x\":373},{\"width\":98,\"y\":322,\"height\":58,\"name\":\"parts/handR\",\"x\":340},{\"y\":955,\"frameY\":0,\"frameWidth\":120,\"width\":119,\"frameX\":0,\"frameHeight\":36,\"height\":36,\"name\":\"parts/beardL\",\"x\":237},{\"width\":136,\"y\":955,\"height\":36,\"name\":\"parts/beardR\",\"x\":99}]}",
+  "texture": "b039c83a-33a5-4147-beb7-f8e2c5b2252d",
+  "subMetas": {}
+}

BIN
assets/res/long/Dragon_2_tex.png


+ 32 - 0
assets/res/long/Dragon_2_tex.png.meta

@@ -0,0 +1,32 @@
+{
+  "ver": "2.3.0",
+  "uuid": "b039c83a-33a5-4147-beb7-f8e2c5b2252d",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "platformSettings": {},
+  "subMetas": {
+    "Dragon_2_tex": {
+      "ver": "1.0.3",
+      "uuid": "81954523-28e3-40a3-aa3a-b90b06d9f69d",
+      "rawTextureUuid": "b039c83a-33a5-4147-beb7-f8e2c5b2252d",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": -228,
+      "offsetY": 2,
+      "trimX": 1,
+      "trimY": 1,
+      "width": 566,
+      "height": 1018,
+      "rawWidth": 1024,
+      "rawHeight": 1024,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov