eraser 4 年之前
当前提交
77cba3aed7
共有 100 个文件被更改,包括 3835 次插入0 次删除
  1. 67 0
      .gitignore
  2. 7 0
      assets/an.meta
  3. 55 0
      assets/an/ActorWaterAnim - 001.anim
  4. 5 0
      assets/an/ActorWaterAnim - 001.anim.meta
  5. 55 0
      assets/an/ActorWaterAnim.anim
  6. 5 0
      assets/an/ActorWaterAnim.anim.meta
  7. 63 0
      assets/an/BlueDownCryAnim.anim
  8. 5 0
      assets/an/BlueDownCryAnim.anim.meta
  9. 103 0
      assets/an/BlueIdleAnim.anim
  10. 5 0
      assets/an/BlueIdleAnim.anim.meta
  11. 55 0
      assets/an/BlueJumpAnim.anim
  12. 5 0
      assets/an/BlueJumpAnim.anim.meta
  13. 55 0
      assets/an/BlueLoseCryAnim.anim
  14. 5 0
      assets/an/BlueLoseCryAnim.anim.meta
  15. 61 0
      assets/an/BlueWinAnim.anim
  16. 5 0
      assets/an/BlueWinAnim.anim.meta
  17. 29 0
      assets/an/EndStarAnim.anim
  18. 5 0
      assets/an/EndStarAnim.anim.meta
  19. 97 0
      assets/an/FallDownWaterAnim.anim
  20. 5 0
      assets/an/FallDownWaterAnim.anim.meta
  21. 63 0
      assets/an/RedDownCryAnim.anim
  22. 5 0
      assets/an/RedDownCryAnim.anim.meta
  23. 103 0
      assets/an/RedIdleAnim.anim
  24. 5 0
      assets/an/RedIdleAnim.anim.meta
  25. 55 0
      assets/an/RedJumpAnim.anim
  26. 5 0
      assets/an/RedJumpAnim.anim.meta
  27. 61 0
      assets/an/RedLoseCryAnim.anim
  28. 5 0
      assets/an/RedLoseCryAnim.anim.meta
  29. 61 0
      assets/an/RedWinAnim.anim
  30. 5 0
      assets/an/RedWinAnim.anim.meta
  31. 43 0
      assets/an/RippleAnim.anim
  32. 5 0
      assets/an/RippleAnim.anim.meta
  33. 49 0
      assets/an/SmokeAnim.anim
  34. 5 0
      assets/an/SmokeAnim.anim.meta
  35. 49 0
      assets/an/WinStarAnim.anim
  36. 5 0
      assets/an/WinStarAnim.anim.meta
  37. 49 0
      assets/an/actor1.anim
  38. 5 0
      assets/an/actor1.anim.meta
  39. 49 0
      assets/an/actor2.anim
  40. 5 0
      assets/an/actor2.anim.meta
  41. 67 0
      assets/an/actor3.anim
  42. 5 0
      assets/an/actor3.anim.meta
  43. 37 0
      assets/an/actor4.anim
  44. 5 0
      assets/an/actor4.anim.meta
  45. 31 0
      assets/an/qi.anim
  46. 5 0
      assets/an/qi.anim.meta
  47. 33 0
      assets/an/quan1Anim.anim
  48. 5 0
      assets/an/quan1Anim.anim.meta
  49. 43 0
      assets/an/quan2Anim.anim
  50. 5 0
      assets/an/quan2Anim.anim.meta
  51. 38 0
      assets/an/star.anim
  52. 5 0
      assets/an/star.anim.meta
  53. 33 0
      assets/an/starquan.anim
  54. 5 0
      assets/an/starquan.anim.meta
  55. 7 0
      assets/bgm.meta
  56. 二进制
      assets/bgm/BGM.mp3
  57. 6 0
      assets/bgm/BGM.mp3.meta
  58. 二进制
      assets/bgm/a.mp3
  59. 6 0
      assets/bgm/a.mp3.meta
  60. 二进制
      assets/bgm/ha.mp3
  61. 6 0
      assets/bgm/ha.mp3.meta
  62. 二进制
      assets/bgm/hei.mp3
  63. 6 0
      assets/bgm/hei.mp3.meta
  64. 二进制
      assets/bgm/im win.mp3
  65. 6 0
      assets/bgm/im win.mp3.meta
  66. 二进制
      assets/bgm/kuaidaozhongdian.mp3
  67. 6 0
      assets/bgm/kuaidaozhongdian.mp3.meta
  68. 二进制
      assets/bgm/luoshui.mp3
  69. 6 0
      assets/bgm/luoshui.mp3.meta
  70. 二进制
      assets/bgm/wohuihuilaide.mp3
  71. 6 0
      assets/bgm/wohuihuilaide.mp3.meta
  72. 二进制
      assets/bgm/zhecibusuan.mp3
  73. 6 0
      assets/bgm/zhecibusuan.mp3.meta
  74. 7 0
      assets/js.meta
  75. 509 0
      assets/js/UtilsNode.js
  76. 9 0
      assets/js/UtilsNode.js.meta
  77. 46 0
      assets/js/actor.js
  78. 9 0
      assets/js/actor.js.meta
  79. 43 0
      assets/js/anmove _up_down.js
  80. 9 0
      assets/js/anmove _up_down.js.meta
  81. 64 0
      assets/js/anmove.js
  82. 9 0
      assets/js/anmove.js.meta
  83. 7 0
      assets/js/app.js
  84. 9 0
      assets/js/app.js.meta
  85. 108 0
      assets/js/bgm.js
  86. 9 0
      assets/js/bgm.js.meta
  87. 387 0
      assets/js/bgmanager.js
  88. 9 0
      assets/js/bgmanager.js.meta
  89. 55 0
      assets/js/endstart.js
  90. 9 0
      assets/js/endstart.js.meta
  91. 62 0
      assets/js/itemmanager.js
  92. 9 0
      assets/js/itemmanager.js.meta
  93. 53 0
      assets/js/kill.js
  94. 9 0
      assets/js/kill.js.meta
  95. 81 0
      assets/js/main.js
  96. 9 0
      assets/js/main.js.meta
  97. 391 0
      assets/js/player.js
  98. 9 0
      assets/js/player.js.meta
  99. 203 0
      assets/js/titlelayoutmanager.js
  100. 9 0
      assets/js/titlelayoutmanager.js.meta

+ 67 - 0
.gitignore

@@ -0,0 +1,67 @@
+#/////////////////////////////////////////////////////////////////////////////
+# Fireball Projects
+#/////////////////////////////////////////////////////////////////////////////
+
+library/
+temp/
+local/
+build/
+
+#/////////////////////////////////////////////////////////////////////////////
+# Logs and databases
+#/////////////////////////////////////////////////////////////////////////////
+
+*.log
+*.sql
+*.sqlite
+
+#/////////////////////////////////////////////////////////////////////////////
+# files for debugger
+#/////////////////////////////////////////////////////////////////////////////
+
+*.sln
+*.csproj
+*.pidb
+*.unityproj
+*.suo
+
+#/////////////////////////////////////////////////////////////////////////////
+# OS generated files
+#/////////////////////////////////////////////////////////////////////////////
+
+.DS_Store
+ehthumbs.db
+Thumbs.db
+
+#/////////////////////////////////////////////////////////////////////////////
+# exvim files
+#/////////////////////////////////////////////////////////////////////////////
+
+*UnityVS.meta
+*.err
+*.err.meta
+*.exvim
+*.exvim.meta
+*.vimentry
+*.vimentry.meta
+*.vimproject
+*.vimproject.meta
+.vimfiles.*/
+.exvim.*/
+quick_gen_project_*_autogen.bat
+quick_gen_project_*_autogen.bat.meta
+quick_gen_project_*_autogen.sh
+quick_gen_project_*_autogen.sh.meta
+.exvim.app
+
+#/////////////////////////////////////////////////////////////////////////////
+# webstorm files
+#/////////////////////////////////////////////////////////////////////////////
+
+.idea/
+
+#//////////////////////////
+# VS Code
+#//////////////////////////
+
+.vscode/

+ 7 - 0
assets/an.meta

@@ -0,0 +1,7 @@
+{
+  "ver": "1.0.1",
+  "uuid": "01a9f283-dc58-42b4-b9b1-0c58c9c7c2d1",
+  "isSubpackage": false,
+  "subpackageName": "",
+  "subMetas": {}
+}

+ 55 - 0
assets/an/ActorWaterAnim - 001.anim

@@ -0,0 +1,55 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "ActorWaterAnim - 001",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 2,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "props": {
+      "opacity": [
+        {
+          "frame": 0,
+          "value": 100
+        },
+        {
+          "frame": 1.5166666666666666,
+          "value": 255
+        },
+        {
+          "frame": 2,
+          "value": 0
+        }
+      ],
+      "scale": [
+        {
+          "frame": 0,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        },
+        {
+          "frame": 1.5166666666666666,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.1,
+            "y": 1.1
+          }
+        },
+        {
+          "frame": 2,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.15,
+            "y": 1.15
+          }
+        }
+      ]
+    }
+  },
+  "events": []
+}

+ 5 - 0
assets/an/ActorWaterAnim - 001.anim.meta

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "4933afa6-26d0-442e-ae5a-93999308ee79",
+  "subMetas": {}
+}

+ 55 - 0
assets/an/ActorWaterAnim.anim

@@ -0,0 +1,55 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "ActorWaterAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 1.25,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "1",
+  "curveData": {
+    "props": {
+      "opacity": [
+        {
+          "frame": 0,
+          "value": 100
+        },
+        {
+          "frame": 1,
+          "value": 255
+        },
+        {
+          "frame": 1.25,
+          "value": 0
+        }
+      ],
+      "scale": [
+        {
+          "frame": 0,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        },
+        {
+          "frame": 1,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.1,
+            "y": 1.1
+          }
+        },
+        {
+          "frame": 1.25,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.15,
+            "y": 1.15
+          }
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "e3259d49-fbd5-45e6-8f34-f5c06ab54a5c",
+  "subMetas": {}
+}

+ 63 - 0
assets/an/BlueDownCryAnim.anim

@@ -0,0 +1,63 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "BlueDownCryAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.43333333333333335,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "c18aeacf-e522-40d8-90d9-853dff5085c2"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "9dc703bc-1863-406b-b078-d3027ea76bc0"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "066b57fa-cd44-4d72-b0ba-6594e48cc7e9"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "ab4ab0b3-f8f8-4bff-8fd8-c060c22e6bc1"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "ee572f93-5f9a-4b53-93c5-4b1feef30a07"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "c18aeacf-e522-40d8-90d9-853dff5085c2"
+            }
+          }
+        ]
+      }
+    },
+    "props": {
+      "y": [
+        {
+          "frame": 0,
+          "value": -50
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "2d17a5df-e6c2-4335-85e6-c7dae2e9a755",
+  "subMetas": {}
+}

+ 103 - 0
assets/an/BlueIdleAnim.anim

@@ -0,0 +1,103 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "BlueIdleAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 2.183333333333333,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "55f415ba-4ad6-4e5d-a91a-afaeae1ee447"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "6df3a9fd-e8aa-4d13-b0cf-51df6aaf2ffc"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "e1e74c13-e702-4a10-8ebb-da054a894e2b"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "55f415ba-4ad6-4e5d-a91a-afaeae1ee447"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "6df3a9fd-e8aa-4d13-b0cf-51df6aaf2ffc"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "e1e74c13-e702-4a10-8ebb-da054a894e2b"
+            }
+          },
+          {
+            "frame": 1,
+            "value": {
+              "__uuid__": "55f415ba-4ad6-4e5d-a91a-afaeae1ee447"
+            }
+          },
+          {
+            "frame": 1.1666666666666667,
+            "value": {
+              "__uuid__": "6df3a9fd-e8aa-4d13-b0cf-51df6aaf2ffc"
+            }
+          },
+          {
+            "frame": 1.3333333333333333,
+            "value": {
+              "__uuid__": "e1e74c13-e702-4a10-8ebb-da054a894e2b"
+            }
+          },
+          {
+            "frame": 1.5,
+            "value": {
+              "__uuid__": "55f415ba-4ad6-4e5d-a91a-afaeae1ee447"
+            }
+          },
+          {
+            "frame": 1.6666666666666667,
+            "value": {
+              "__uuid__": "6df3a9fd-e8aa-4d13-b0cf-51df6aaf2ffc"
+            }
+          },
+          {
+            "frame": 1.8333333333333333,
+            "value": {
+              "__uuid__": "e1e74c13-e702-4a10-8ebb-da054a894e2b"
+            }
+          },
+          {
+            "frame": 2,
+            "value": {
+              "__uuid__": "bcca0789-0fb4-4a1d-ba22-8ff6e0cdd53e"
+            }
+          },
+          {
+            "frame": 2.1666666666666665,
+            "value": {
+              "__uuid__": "55f415ba-4ad6-4e5d-a91a-afaeae1ee447"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "c6190efe-cbac-46ef-ae81-9856624522db",
+  "subMetas": {}
+}

+ 55 - 0
assets/an/BlueJumpAnim.anim

@@ -0,0 +1,55 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "BlueJumpAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.18333333333333332,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "1",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "55f415ba-4ad6-4e5d-a91a-afaeae1ee447"
+            }
+          },
+          {
+            "frame": 0.03333333333333333,
+            "value": {
+              "__uuid__": "6acb2a1d-ec35-45ab-b7e3-bb09b00cefc8"
+            }
+          },
+          {
+            "frame": 0.06666666666666667,
+            "value": {
+              "__uuid__": "5381a3d1-935b-494e-b5c6-8bdb95529843"
+            }
+          },
+          {
+            "frame": 0.1,
+            "value": {
+              "__uuid__": "63c7e809-2b8f-4e6b-a9aa-e1285647077f"
+            }
+          },
+          {
+            "frame": 0.13333333333333333,
+            "value": {
+              "__uuid__": "eecb6e1e-d965-4b96-a420-03b6893d1780"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "55f415ba-4ad6-4e5d-a91a-afaeae1ee447"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "963babd1-200e-4661-8966-488627e94f20",
+  "subMetas": {}
+}

+ 55 - 0
assets/an/BlueLoseCryAnim.anim

@@ -0,0 +1,55 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "BlueLoseCryAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.85,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "8c9146e2-e73d-4442-9fee-3f3cc02ca9b4"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "4db2f87d-0054-4b23-ac25-dff5e8d95fb7"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "33b60ab5-4180-41f8-a47f-4d07f1d1ed2d"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "cc493996-193c-426f-8a7b-cfa59ec0f05b"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "9e70cef4-8034-455d-8ca7-cc453831d9d2"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "29d82de5-e542-49c0-be91-4d936b36183f"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "bc6e50ef-07e6-47ff-a419-2f8a3388def1",
+  "subMetas": {}
+}

+ 61 - 0
assets/an/BlueWinAnim.anim

@@ -0,0 +1,61 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "BlueWinAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.5166666666666667,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "cabd135a-b82e-43fe-a041-f4435e848568"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "dafec1e8-6d51-4352-9db2-b5cd203ce82b"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "b59cad76-517d-4b59-a5e6-1250a594795f"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "2922cf28-21bd-47f8-82f5-77415bce2697"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "c4a179e0-48fa-4222-9e66-afcca06aa7ea"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "dc803717-54e3-4c48-81cf-65787294932a"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "cabd135a-b82e-43fe-a041-f4435e848568"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "31f2bf87-cfc9-4820-a8b7-67afbe960d58",
+  "subMetas": {}
+}

+ 29 - 0
assets/an/EndStarAnim.anim

@@ -0,0 +1,29 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "EndStarAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 2,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "props": {
+      "y": [
+        {
+          "frame": 0,
+          "value": 280
+        },
+        {
+          "frame": 1,
+          "value": 270
+        },
+        {
+          "frame": 2,
+          "value": 280
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "74bbf21f-1f19-45a0-a77b-04a1537cfb63",
+  "subMetas": {}
+}

+ 97 - 0
assets/an/FallDownWaterAnim.anim

@@ -0,0 +1,97 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "FallDownWaterAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 1.0333333333333334,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "0",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "59af100e-4204-42f7-a84a-502640ff3087"
+            }
+          },
+          {
+            "frame": 0.11666666666666667,
+            "value": {
+              "__uuid__": "2a337985-7951-4e4a-adf4-3a965532041f"
+            }
+          },
+          {
+            "frame": 0.23333333333333334,
+            "value": {
+              "__uuid__": "495d6b4e-cf0b-46ce-bfa5-7735be7520e0"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "f0ae9690-6c26-41d1-98f1-81b8d755324b"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "0f0cc2da-2c65-4dda-9954-33a122d139c5"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "7de83ed1-de93-43ca-bd6f-af1a2c8dcfcb"
+            }
+          },
+          {
+            "frame": 0.5833333333333334,
+            "value": {
+              "__uuid__": "0f0cc2da-2c65-4dda-9954-33a122d139c5"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "f0ae9690-6c26-41d1-98f1-81b8d755324b"
+            }
+          },
+          {
+            "frame": 0.75,
+            "value": {
+              "__uuid__": "495d6b4e-cf0b-46ce-bfa5-7735be7520e0"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "2a337985-7951-4e4a-adf4-3a965532041f"
+            }
+          },
+          {
+            "frame": 0.9166666666666666,
+            "value": {
+              "__uuid__": "59af100e-4204-42f7-a84a-502640ff3087"
+            }
+          }
+        ]
+      }
+    },
+    "props": {
+      "opacity": [
+        {
+          "frame": 1,
+          "value": 255
+        },
+        {
+          "frame": 1.0333333333333334,
+          "value": 0
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "d3d52ed0-cecd-4707-aaa5-9adc609a2772",
+  "subMetas": {}
+}

+ 63 - 0
assets/an/RedDownCryAnim.anim

@@ -0,0 +1,63 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "RedDownCryAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.43333333333333335,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "a4604839-e9a9-4026-95b6-a45dfdd59598"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "6ff87013-fe0a-420c-a0fa-64b864b298a4"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "56e5d85c-8bfc-4f3c-a5d3-155b741ef0e9"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "7059093f-8210-4c7b-a530-00b32baf17a0"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "ee424bbf-2f51-46db-81c1-48ad69819d16"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "a4604839-e9a9-4026-95b6-a45dfdd59598"
+            }
+          }
+        ]
+      }
+    },
+    "props": {
+      "y": [
+        {
+          "frame": 0,
+          "value": -50
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "b5566c5b-e080-42a7-af52-07df8d4fd044",
+  "subMetas": {}
+}

+ 103 - 0
assets/an/RedIdleAnim.anim

@@ -0,0 +1,103 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "cstest",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 2.183333333333333,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "ccf885e1-b16c-4c3d-907a-294b27f87bee"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "05fc89a3-ece9-4f09-88e5-ee43335b1f0d"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "f33b9a91-5788-4736-90b0-d9fa8026a510"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "ccf885e1-b16c-4c3d-907a-294b27f87bee"
+            }
+          },
+          {
+            "frame": 0.6666666666666666,
+            "value": {
+              "__uuid__": "05fc89a3-ece9-4f09-88e5-ee43335b1f0d"
+            }
+          },
+          {
+            "frame": 0.8333333333333334,
+            "value": {
+              "__uuid__": "f33b9a91-5788-4736-90b0-d9fa8026a510"
+            }
+          },
+          {
+            "frame": 1,
+            "value": {
+              "__uuid__": "ccf885e1-b16c-4c3d-907a-294b27f87bee"
+            }
+          },
+          {
+            "frame": 1.1666666666666667,
+            "value": {
+              "__uuid__": "05fc89a3-ece9-4f09-88e5-ee43335b1f0d"
+            }
+          },
+          {
+            "frame": 1.3333333333333333,
+            "value": {
+              "__uuid__": "f33b9a91-5788-4736-90b0-d9fa8026a510"
+            }
+          },
+          {
+            "frame": 1.5,
+            "value": {
+              "__uuid__": "ccf885e1-b16c-4c3d-907a-294b27f87bee"
+            }
+          },
+          {
+            "frame": 1.6666666666666667,
+            "value": {
+              "__uuid__": "05fc89a3-ece9-4f09-88e5-ee43335b1f0d"
+            }
+          },
+          {
+            "frame": 1.8333333333333333,
+            "value": {
+              "__uuid__": "f33b9a91-5788-4736-90b0-d9fa8026a510"
+            }
+          },
+          {
+            "frame": 2,
+            "value": {
+              "__uuid__": "cd9b498e-cd49-4cd2-94a0-c5b9108f2518"
+            }
+          },
+          {
+            "frame": 2.1666666666666665,
+            "value": {
+              "__uuid__": "ccf885e1-b16c-4c3d-907a-294b27f87bee"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "12e4e486-93bd-428f-846e-563543dffccd",
+  "subMetas": {}
+}

+ 55 - 0
assets/an/RedJumpAnim.anim

@@ -0,0 +1,55 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "RedJumpAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.18333333333333332,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "1",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "e1c6c602-6bbf-4258-a633-fcf1567a1241"
+            }
+          },
+          {
+            "frame": 0.05,
+            "value": {
+              "__uuid__": "2e807995-cc0e-4e70-9094-860704480ce8"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "d35d012f-53d8-43cd-964e-440bc4bb51e4"
+            }
+          },
+          {
+            "frame": 0.11666666666666667,
+            "value": {
+              "__uuid__": "89a5ab15-8754-4352-adac-a585fa0e4f3c"
+            }
+          },
+          {
+            "frame": 0.15,
+            "value": {
+              "__uuid__": "1765dbb1-b22e-47d6-a5cc-5b479173bd1b"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "e1c6c602-6bbf-4258-a633-fcf1567a1241"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "2c5f7b41-fb9e-4555-b9de-624d7a0873fa",
+  "subMetas": {}
+}

+ 61 - 0
assets/an/RedLoseCryAnim.anim

@@ -0,0 +1,61 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "RedLoseCryAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.5166666666666667,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "eb2c4e2f-1f4a-449b-bf2b-8e974dce4ae6"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "bd5c4e5b-fb32-4cc4-a44b-1a47fd479174"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "cb23f10a-90e1-480d-8f53-42b346756c55"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "3d51c09a-35f7-490c-9fa1-46938e4b4650"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "95ad6105-f3be-4a75-8118-6fca64e97dd4"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "bcebd251-d8f8-4f1b-bd88-da50d36d8e47"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "eb2c4e2f-1f4a-449b-bf2b-8e974dce4ae6"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "004c4379-b45d-484e-ab32-32bf08a20e11",
+  "subMetas": {}
+}

+ 61 - 0
assets/an/RedWinAnim.anim

@@ -0,0 +1,61 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "RedWinAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.5166666666666667,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "a8da7f76-ba0f-4d9b-a236-62c2c21a95c1"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "7f898b18-8ecf-4c37-acd8-f5389811ae33"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "99ef1e39-51f2-4ee6-bec0-c6f3e292eb48"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "21753a4b-01f1-403f-808b-247ce0e3ef9a"
+            }
+          },
+          {
+            "frame": 0.3333333333333333,
+            "value": {
+              "__uuid__": "be8f0636-4833-4b92-a6f6-375e63b67b2e"
+            }
+          },
+          {
+            "frame": 0.4166666666666667,
+            "value": {
+              "__uuid__": "6b2e9f13-1862-468a-b06b-c8ab9a08c259"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "a8da7f76-ba0f-4d9b-a236-62c2c21a95c1"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "8b849086-931c-4f80-9a91-9bb635877d0d",
+  "subMetas": {}
+}

+ 43 - 0
assets/an/RippleAnim.anim

@@ -0,0 +1,43 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "RippleAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 3.5,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "props": {
+      "scale": [
+        {
+          "frame": 0,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 0,
+            "y": 0
+          }
+        },
+        {
+          "frame": 3.5,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 2,
+            "y": 2
+          }
+        }
+      ],
+      "opacity": [
+        {
+          "frame": 0,
+          "value": 255
+        },
+        {
+          "frame": 3.5,
+          "value": 0
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "86c58b83-a9dc-47de-b7e9-bd678cca648a",
+  "subMetas": {}
+}

+ 49 - 0
assets/an/SmokeAnim.anim

@@ -0,0 +1,49 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "SmokeAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.16666666666666666,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "5d9dfdfb-f4fe-4075-a875-f3bdb76b7015"
+            }
+          },
+          {
+            "frame": 0.03333333333333333,
+            "value": {
+              "__uuid__": "b6bef42d-2167-4e0b-b3ff-9ef55e55caaf"
+            }
+          },
+          {
+            "frame": 0.06666666666666667,
+            "value": {
+              "__uuid__": "65138fee-44c3-43e3-b65e-606b825f46a0"
+            }
+          },
+          {
+            "frame": 0.1,
+            "value": {
+              "__uuid__": "c2cb6111-aa3e-4b00-a2c2-ecef11902359"
+            }
+          },
+          {
+            "frame": 0.15,
+            "value": {
+              "__uuid__": "b75791ff-bf0b-4499-bf2c-b8dc5d0f8f6e"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "9e502ac2-b1f4-4b0d-bb86-11c0321b61fe",
+  "subMetas": {}
+}

+ 49 - 0
assets/an/WinStarAnim.anim

@@ -0,0 +1,49 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "WinStarAnim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.5166666666666667,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "b8540b7e-12cb-485e-a706-b948a4985662"
+            }
+          },
+          {
+            "frame": 0.13333333333333333,
+            "value": {
+              "__uuid__": "03b096b1-4136-4a8b-aa56-60073dfc43aa"
+            }
+          },
+          {
+            "frame": 0.25,
+            "value": {
+              "__uuid__": "ce8074c3-682a-4743-a0c2-90d8171c18ec"
+            }
+          },
+          {
+            "frame": 0.35,
+            "value": {
+              "__uuid__": "98752580-ef4c-443b-9037-c06a629842be"
+            }
+          },
+          {
+            "frame": 0.5,
+            "value": {
+              "__uuid__": "56081da4-ba3a-4d88-8431-db64cc3c3b5e"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "dc3d8e58-2c7b-4257-ae4b-a49c5655527b",
+  "subMetas": {}
+}

+ 49 - 0
assets/an/actor1.anim

@@ -0,0 +1,49 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "actor1",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.18333333333333332,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "0",
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "6e210ced-a1c0-470e-8385-22c57e1befa8"
+            }
+          },
+          {
+            "frame": 0.03333333333333333,
+            "value": {
+              "__uuid__": "1f13c3b4-b900-4055-a2ad-970bd04148f0"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "9db71457-0ed9-416e-a5be-4912abf939fb"
+            }
+          },
+          {
+            "frame": 0.11666666666666667,
+            "value": {
+              "__uuid__": "1f13c3b4-b900-4055-a2ad-970bd04148f0"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "6e210ced-a1c0-470e-8385-22c57e1befa8"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "9b9ca0eb-7636-406b-b54e-0a765411dfac",
+  "subMetas": {}
+}

+ 49 - 0
assets/an/actor2.anim

@@ -0,0 +1,49 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "actor2",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.18333333333333332,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "faf09cdd-2e17-42c3-b52b-1cb9746c5f5e"
+            }
+          },
+          {
+            "frame": 0.03333333333333333,
+            "value": {
+              "__uuid__": "fcef1b2e-14fb-4097-8fa1-71425a6ec95b"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "b93479cc-ce04-4011-8b00-5ffdc2f5b215"
+            }
+          },
+          {
+            "frame": 0.11666666666666667,
+            "value": {
+              "__uuid__": "fcef1b2e-14fb-4097-8fa1-71425a6ec95b"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "faf09cdd-2e17-42c3-b52b-1cb9746c5f5e"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "5a0ca819-80aa-4ccb-a7bf-b535c74ff34d",
+  "subMetas": {}
+}

+ 67 - 0
assets/an/actor3.anim

@@ -0,0 +1,67 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "actor3",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.18333333333333332,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "d0dc05b8-5730-445f-a3fb-5768c8d3ee20"
+            }
+          },
+          {
+            "frame": 0.016666666666666666,
+            "value": {
+              "__uuid__": "5b4e131a-2cfb-4a53-9db4-16251048b5dc"
+            }
+          },
+          {
+            "frame": 0.05,
+            "value": {
+              "__uuid__": "66d109f2-f917-4097-925d-d3a34c1ebad4"
+            }
+          },
+          {
+            "frame": 0.06666666666666667,
+            "value": {
+              "__uuid__": "4cf06210-921d-4f34-9345-2ebdf01ad4a0"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "0d4781ef-185d-4581-898f-4665d3bddec8"
+            }
+          },
+          {
+            "frame": 0.1,
+            "value": {
+              "__uuid__": "36705058-43ef-423d-8388-ebe4cfd722c5"
+            }
+          },
+          {
+            "frame": 0.13333333333333333,
+            "value": {
+              "__uuid__": "5b42187c-1ed9-45de-87d7-3014ccfd263e"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "47a34239-f62a-4ca1-b8b2-5ce883a20e7b"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "3a168e51-bfba-4fcf-b591-c9beb5426916",
+  "subMetas": {}
+}

+ 37 - 0
assets/an/actor4.anim

@@ -0,0 +1,37 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "actor4",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.18333333333333332,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "4f39af1e-2884-40e5-bebc-3de24ca05cd8"
+            }
+          },
+          {
+            "frame": 0.08333333333333333,
+            "value": {
+              "__uuid__": "bd1dfc09-ba1d-4447-9156-305362bb5234"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "4f39af1e-2884-40e5-bebc-3de24ca05cd8"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "59d7a4f5-552d-4370-996f-3158900f8489",
+  "subMetas": {}
+}

+ 31 - 0
assets/an/qi.anim

@@ -0,0 +1,31 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "qi",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.18333333333333332,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": 1,
+  "curveData": {
+    "comps": {
+      "cc.Sprite": {
+        "spriteFrame": [
+          {
+            "frame": 0,
+            "value": {
+              "__uuid__": "ea89453d-c6ff-4ea8-98c8-dbbcc9eb5edc"
+            }
+          },
+          {
+            "frame": 0.16666666666666666,
+            "value": {
+              "__uuid__": "a5bc6e43-c71c-4ddb-b236-8933c149f98c"
+            }
+          }
+        ]
+      }
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "7ded9a91-afc2-427e-82b4-8bd574528894",
+  "subMetas": {}
+}

+ 33 - 0
assets/an/quan1Anim.anim

@@ -0,0 +1,33 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "quan1Anim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.75,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "props": {
+      "scale": [
+        {
+          "frame": 0,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 0.5,
+            "y": 0.5
+          }
+        },
+        {
+          "frame": 0.75,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "851304b5-ac21-4c06-869f-4868414743ec",
+  "subMetas": {}
+}

+ 43 - 0
assets/an/quan2Anim.anim

@@ -0,0 +1,43 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "quan2Anim",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.75,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "props": {
+      "scale": [
+        {
+          "frame": 0,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        },
+        {
+          "frame": 0.75,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.8,
+            "y": 1.8
+          }
+        }
+      ],
+      "opacity": [
+        {
+          "frame": 0,
+          "value": 255
+        },
+        {
+          "frame": 0.75,
+          "value": 0
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "c7f3104e-7e0a-4459-9b55-d6738a38140b",
+  "subMetas": {}
+}

+ 38 - 0
assets/an/star.anim

@@ -0,0 +1,38 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "star",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.6666666666666666,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "2",
+  "curveData": {
+    "props": {
+      "position": [
+        {
+          "frame": 0,
+          "value": [
+            0,
+            0
+          ]
+        },
+        {
+          "frame": 0.3333333333333333,
+          "value": [
+            0,
+            5
+          ]
+        },
+        {
+          "frame": 0.6666666666666666,
+          "value": [
+            0,
+            0
+          ]
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "aabf5057-3e98-4a2f-9504-152df121941b",
+  "subMetas": {}
+}

+ 33 - 0
assets/an/starquan.anim

@@ -0,0 +1,33 @@
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "starquan",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.3333333333333333,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": "54",
+  "curveData": {
+    "props": {
+      "scale": [
+        {
+          "frame": 0,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        },
+        {
+          "frame": 0.3333333333333333,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.3,
+            "y": 1.3
+          }
+        }
+      ]
+    }
+  },
+  "events": []
+}

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

@@ -0,0 +1,5 @@
+{
+  "ver": "2.1.0",
+  "uuid": "680437ec-f874-4d4e-84e9-da8189e9e80b",
+  "subMetas": {}
+}

+ 7 - 0
assets/bgm.meta

@@ -0,0 +1,7 @@
+{
+  "ver": "1.0.1",
+  "uuid": "4b2c71ff-7d6f-4aef-940e-d6e2a641bd4b",
+  "isSubpackage": false,
+  "subpackageName": "",
+  "subMetas": {}
+}

二进制
assets/bgm/BGM.mp3


+ 6 - 0
assets/bgm/BGM.mp3.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "2.0.0",
+  "uuid": "8561f9df-53ce-4023-8577-d2ab98bad677",
+  "downloadMode": 0,
+  "subMetas": {}
+}

二进制
assets/bgm/a.mp3


+ 6 - 0
assets/bgm/a.mp3.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "2.0.0",
+  "uuid": "386c8e85-7246-489f-9586-fdad286dcd7c",
+  "downloadMode": 0,
+  "subMetas": {}
+}

二进制
assets/bgm/ha.mp3


+ 6 - 0
assets/bgm/ha.mp3.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "2.0.0",
+  "uuid": "d00149f9-773d-46dd-96b5-0350ef0ca17a",
+  "downloadMode": 0,
+  "subMetas": {}
+}

二进制
assets/bgm/hei.mp3


+ 6 - 0
assets/bgm/hei.mp3.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "2.0.0",
+  "uuid": "131e2b78-bc14-4d33-b9f7-49203e2ba6ad",
+  "downloadMode": 0,
+  "subMetas": {}
+}

二进制
assets/bgm/im win.mp3


+ 6 - 0
assets/bgm/im win.mp3.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "2.0.0",
+  "uuid": "6b0911e1-aa6e-46f6-b167-889db181f2bb",
+  "downloadMode": 0,
+  "subMetas": {}
+}

二进制
assets/bgm/kuaidaozhongdian.mp3


+ 6 - 0
assets/bgm/kuaidaozhongdian.mp3.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "2.0.0",
+  "uuid": "f276b88e-d2fe-4dd1-93eb-93941f11a7fb",
+  "downloadMode": 0,
+  "subMetas": {}
+}

二进制
assets/bgm/luoshui.mp3


+ 6 - 0
assets/bgm/luoshui.mp3.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "2.0.0",
+  "uuid": "11dd72b1-e024-4c48-b395-2c3846965376",
+  "downloadMode": 0,
+  "subMetas": {}
+}

二进制
assets/bgm/wohuihuilaide.mp3


+ 6 - 0
assets/bgm/wohuihuilaide.mp3.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "2.0.0",
+  "uuid": "927da681-031b-432f-ac63-0bd3511d9119",
+  "downloadMode": 0,
+  "subMetas": {}
+}

二进制
assets/bgm/zhecibusuan.mp3


+ 6 - 0
assets/bgm/zhecibusuan.mp3.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "2.0.0",
+  "uuid": "f25b9416-c941-4ce3-b2fd-c089aa8a6182",
+  "downloadMode": 0,
+  "subMetas": {}
+}

+ 7 - 0
assets/js.meta

@@ -0,0 +1,7 @@
+{
+  "ver": "1.0.1",
+  "uuid": "c6713a33-5747-40a9-abfe-7f1168205f46",
+  "isSubpackage": false,
+  "subpackageName": "",
+  "subMetas": {}
+}

+ 509 - 0
assets/js/UtilsNode.js

@@ -0,0 +1,509 @@
+window.UtilsNode = {
+
+
+    PrefabsName: [
+        "prefab/share",
+        "prefab/show",
+        "prefab/login",
+        "prefab/loading",
+        "prefab/stock",
+    ],
+
+    sharePrefab: [
+        "prefab/share",
+        "prefab/sharepublic",
+        "prefab/MoneyFlyAfterShare",
+    ],
+
+    put: function (e, v) {
+        if (window.localStorage) {
+            window.localStorage[e] = v;
+        }
+    },
+    get: function (e) {
+        if (window.localStorage) {
+            let re = "";
+            if (window.localStorage[e] == null) {
+                return re;
+            } else {
+                return window.localStorage[e];
+            }
+
+
+        }
+
+
+    },
+
+    //产生演员
+    startActor: function (bgArr) {
+        let defXx = 100;
+
+        let defX = defXx;
+        let defY = 300;
+
+        let defaddX = 180;
+        let defaddY = 180;
+
+
+        let itemXCount = 4;
+        let itemXCount2 = 1;
+        //总演员个数
+        let itemMaxCount = 101;
+        // let itemMaxCount = 17;
+
+
+        //总个数 是  itemMaxCount + itemYCount  想要的个数+多少行
+        let itemYCount = itemMaxCount / itemXCount;
+
+        let postions = [];
+
+        let tempitemXCount = itemXCount;
+
+        let tempxarr = [];
+
+        let bgArrs = [];
+
+        for (let i = 0; i < itemYCount; i++) {
+
+            // if (i%2 == 0) {
+            //     tempitemXCount = itemXCount;
+            // }else{
+            //     tempitemXCount = itemXCount2;
+            // }
+            if (tempxarr.length == 0) {
+                for (let x = 0; x < tempitemXCount; x++) {
+                    if (x == 0) {
+                        defX = defXx
+                    } else {
+                        defX += defaddX;
+                    }
+                    tempxarr.push(defX);
+                    let p = {x: tempxarr[x], y: defY};
+                    postions.push(p);
+                }
+                let p = {x: tempxarr[tempxarr.length - 1], y: defY += defaddY,q:0};
+                postions.push(p);
+                bgArrs.push(p);
+            } else if (tempxarr.length > 0 && i % 2 != 0) {
+                if (postions.length > itemMaxCount) {
+                    break;
+                }
+                defY += defaddY;
+                //    奇数
+                for (let z = tempxarr.length - 1; z >= 0; z--) {
+                    let p = {x: tempxarr[z], y: defY};
+                    postions.push(p);
+                    if (postions.length > itemMaxCount) {
+                        break;
+                    }
+                }
+                if (postions.length > itemMaxCount) {
+                    break;
+                }
+                let p = {x: tempxarr[0], y: defY += defaddY,w:0};
+                postions.push(p);
+                bgArrs.push(p);
+            } else if (tempxarr.length > 0 && i % 2 == 0) {
+                if (postions.length > itemMaxCount) {
+                    break;
+                }
+                defY += defaddY;
+                //偶数
+                for (let z = 0; z < tempitemXCount; z++) {
+                    let p = {x: tempxarr[z], y: defY};
+                    postions.push(p);
+                    if (postions.length > itemMaxCount) {
+                        break;
+                    }
+                }
+                if (postions.length > itemMaxCount) {
+                    break;
+                }
+                let p = {x: tempxarr[tempxarr.length - 1], y: defY += defaddY,q:0};
+                postions.push(p);
+                bgArrs.push(p);
+            }
+
+        }
+        // for (let x = 0; x < tempitemXCount; x++) {
+        //     if (x==0) {
+        //         defX = defXx
+        //     }else{
+        //         defX+=defaddX;
+        //     }
+        //
+        //
+        //     let p = {x:defX,y:defY};
+        //     postions.push(p);
+        // }
+        if (bgArr != null) {
+            bgArr(bgArrs,postions);
+        }
+
+        return postions;
+    },
+    // ①、// 生成 [n,m),包含n但不包含m的正整数:  parseInt(Math.random()*(m-n)+n)
+    //
+    // ②、// 生成 (n,m],不包含n但包含m的正整数:  parseInt(Math.random()*(m-n)+n)+1
+    //
+    // ③、// 生成 [n,m],包含n和m的随机数:             parseInt(Math.random()*(m-n+1)+n)
+    //
+    // ④、// 生成 (n,m),不包含n和m的正整数:         parseInt(Math.random()*(m-n-1)+n+1)
+    getRandom: function (type, n, m) {
+        let random;
+        switch (type) {
+            case 0:
+                random = parseInt(Math.random() * (m - n) + n);
+                break;
+            case 1:
+                random = parseInt(Math.random() * (m - n) + n) + 1;
+                break;
+            case 2:
+                random = parseInt(Math.random() * (m - n + 1) + n);
+                break;
+            case 3:
+                random = parseInt(Math.random() * (m - n - 1) + n + 1);
+                break;
+        }
+        return random;
+    },
+
+//     this.node.setScale(1,-1);
+// this.node.setRotation(180);
+// console.log("我应该脸往左",temp,temp1);
+
+//     this.node.setScale(1,1);
+// this.node.setRotation(0);
+// console.log("我应该脸往右",temp,temp1);
+
+    setMyRotation : function(type,node){
+        switch (type) {
+            case 0:
+                node.setScale(1,-1);
+                node.setRotation(180);
+// console.log("我应该脸往左",temp,temp1);
+                break;
+            case 1:
+                node.setScale(1,1);
+                node.setRotation(0);
+// console.log("我应该脸往右",temp,temp1);
+                break;
+        }
+    },
+
+
+    //获取 百分比
+    getPercentage: function (n, m) {
+        let num = parseInt(n);
+        let max = parseInt(m);
+        if (isNaN(num) || isNaN(max)) {
+            return 0;
+        }
+        return max <= 0 ? 0 : parseInt((Math.round(num / max * 10000) / 100.00));
+    },
+    //随机生成演员
+    actorBirth: function (parentNode, arrp, actorType, startActor, endActor) {
+        let nodearr = [];
+        for (var i = 0; i < arrp.length; i++) {
+            let mInt = parseInt(Math.random() * (actorType.length - 0));
+            let tag = true;
+
+            if (i < 9) {
+                switch (i) {
+                    case 1:
+                        mInt = 0;
+                        break;
+                    case 2:
+                        mInt = 1;
+                        break;
+                    case 3:
+                        mInt = 1;
+                        break;
+                    case 4:
+                        mInt = 0;
+                        break;
+                    case 5:
+                        mInt = 1;
+                        break;
+                    case 6:
+                        mInt = 0;
+                        break;
+                    case 7:
+                        mInt = 2;
+                        break;
+                    case 8:
+                        mInt = 1;
+                        break;
+                }
+                // mInt = 1;
+            } else {
+                while (tag) {
+                    //如果当前地板是陷阱 检查上一个是不是陷阱如果是 就再随机一个
+                    if (i > 0 && actorType[mInt].data.getComponent("actor").type == 2) {
+                        if (nodearr[i - 1].getComponent("actor").type == 2) {
+                            mInt = parseInt(Math.random() * (actorType.length - 0));
+                        } else {
+                            tag = false;
+                        }
+                        //  大于三的时候 如果 没有陷阱 我就创建一个陷阱
+                    } else if (i > 3 && (actorType[mInt].data.getComponent("actor").type == 1 || actorType[mInt].data.getComponent("actor").type == 0)) {
+                        let tempi = 0;
+                        for (var x = 1; x < 4; x++) {
+                            if (nodearr[i - x].getComponent("actor").type != 2) {
+                                tempi++;
+                            }
+
+
+                        }
+                        if (tempi == 3) {
+                            mInt = parseInt(Math.random() * (actorType.length - 0));
+                        } else {
+                            tag = false;
+                        }
+
+                    } else {
+                        tag = false;
+                    }
+                }
+            }
+
+
+            let node = cc.instantiate(actorType[mInt]);
+            if (i == 0) {
+                node = cc.instantiate(startActor);
+            } else if (i == arrp.length - 1) {
+                node = cc.instantiate(endActor);
+            }
+
+
+            parentNode.addChild(node);
+            node.setPosition(arrp[i].x, arrp[i].y);
+            nodearr.push(node);
+        }
+
+        return nodearr;
+
+    },
+
+
+    init: function (parentNode) {
+        this.parentNode = parentNode;
+        return this;
+    },
+    getPrefabsName: function () {
+        return this.prefabsName;
+    },
+    addPrefabs: function (prefabsName, parentNode, callback) {
+        cc.loader.loadRes(prefabsName, function (err, texture) {
+            var node = this.parentNode;
+
+            if (parentNode != null) {
+                node = parentNode;
+            }
+
+            var prefab = cc.instantiate(texture);
+
+            // this.prefabsName = prefab.name;
+            this.removePrefabs(node, prefab.name);
+
+
+            if (node != null) {
+                node.addChild(prefab);
+            } else {
+                return;
+            }
+
+            // this.dialogLuckView.active = false;
+            // this.GivePrize = this.getNode("GivePrize",this.showDialogs);
+            // //转
+            // this.Sunshine = this.getNode("Sunshine",this.GivePrize);
+            // //物品
+            // this.Rewards = this.getNode("Rewards",this.GivePrize);
+            // //关闭按钮
+            // this.close = this.getNode("close",this.showDialogs);
+
+
+            if (callback != null) {
+                callback(prefab);
+            }
+        }.bind(this));
+    },
+    addPrefabsName: function (prefabsName, parentNode, name, callback) {
+        cc.loader.loadRes(prefabsName, function (err, texture) {
+            var node = this.parentNode;
+
+            if (parentNode != null) {
+                node = parentNode;
+            }
+
+            var prefab = cc.instantiate(texture);
+            let prefabsName = "";
+            if (name != null) {
+                prefabsName = name;
+            } else {
+                prefabsName = prefab.name;
+            }
+            // this.prefabsName = prefab.name;
+            // this.removePrefabs(node,prefabsName);
+
+
+            if (node != null) {
+                node.addChild(prefab);
+            } else {
+                return;
+            }
+
+            // this.dialogLuckView.active = false;
+            // this.GivePrize = this.getNode("GivePrize",this.showDialogs);
+            // //转
+            // this.Sunshine = this.getNode("Sunshine",this.GivePrize);
+            // //物品
+            // this.Rewards = this.getNode("Rewards",this.GivePrize);
+            // //关闭按钮
+            // this.close = this.getNode("close",this.showDialogs);
+
+
+            if (callback != null) {
+                callback(prefab);
+            }
+        }.bind(this));
+    },
+    removePrefabs: function (parentNode, prefabsName, success, fail) {
+
+        var node = this.parentNode;
+
+        if (parentNode != null) {
+            node = parentNode;
+        }
+
+        if (node != null) {
+            if (node.getChildByName(prefabsName) != null) {
+                node.getChildByName(prefabsName).off(cc.Node.EventType.TOUCH_END);
+                node.getChildByName(prefabsName).destroy();
+                if (success != null) {
+                    success();
+                }
+            } else {
+                if (fail != null) {
+                    fail();
+                }
+            }
+        }
+
+    },
+    setOff: function (node) {
+        node.off(cc.Node.EventType.TOUCH_END);
+    },
+    setOn: function (node, callback) {
+        if (node != null) {
+            node.on(cc.Node.EventType.TOUCH_END, callback);
+        } else {
+            console.log("当前被放进来的node节点没有可以点击的名字 请关注此段警告");
+        }
+
+        return this;
+    },
+
+
+    getNode: function (name, parent) {
+        if (parent == null) {
+            if (this.parentNode.getChildByName(name) == null) {
+                // console.log("在",this.parentNode,"没有找到名字为"+name+"的node");
+            }
+            return this.parentNode.getChildByName(name);
+        } else {
+            if (parent.getChildByName(name) == null) {
+                // console.log("在",parent,"没有找到名字为"+name+"的node");
+            }
+            return parent.getChildByName(name);
+        }
+
+    },
+    //开始分享
+    /**
+     UtilsPrefabs.startSharePrefab(function () {
+                this.Building_t();
+            }.bind(this),function () {
+                this.Building_t();
+            }.bind(this));
+     * @param Success
+     * @param fail
+     */
+    startSharePrefab: function (Success, fail, callbackNode) {
+        var Canvas = cc.find("Canvas/UICamera");
+        UtilsPrefabs
+            .init(Canvas)
+            .addPrefabs(UtilsPrefabs.sharePrefab[1], null, function (node) {
+
+                if (callbackNode != null) {
+                    callbackNode(node);
+                }
+                // node.y = -200;
+                // node.x = -20;
+                var gosharebtn = UtilsPrefabs.getNode("gosharebtn", node);
+                var img1 = UtilsPrefabs.getNode("img1", node);
+                var NewLabel1 = UtilsPrefabs.getNode("New Label", img1);
+                var img2 = UtilsPrefabs.getNode("img2", node);
+                var NewLabel2 = UtilsPrefabs.getNode("New Label", img2);
+                // NewLabel1.getComponent(cc.Label).string = 'x'+GlobalD.GameData.publicGive[0];
+                // NewLabel2.getComponent(cc.Label).string = 'x'+GlobalD.GameData.publicGive[1];
+
+                var close = UtilsPrefabs.getNode("close", node);
+                UtilsPrefabs.setOn(close, function () {
+                    UtilsPrefabs.removePrefabs(Canvas, node.name);
+
+                    // if (task.taskCursor == 4) {
+                    //     task.addTaskCount();
+                    //     task.removeTaskNodes();
+                    // }
+                    if (fail != null) {
+                        fail();
+                    }
+
+                }.bind(this));
+
+                UtilsPrefabs.setOn(gosharebtn, function () {
+                    // console.log("点击分享按钮");
+
+
+                    UtilsWX.sharebtn(function () {
+                        UtilsPrefabs.setOff(gosharebtn);
+                        GlobalD.GameData.PlusGolden(GlobalD.GameData.publicGive[0]);
+                        GlobalD.GameData.PlusDiamond(GlobalD.GameData.publicGive[1]);
+
+                        UtilsPrefabs
+                            .init(Canvas)
+                            .addPrefabs(UtilsPrefabs.sharePrefab[2], null, function (node) {
+                                // cc.log(node.name+"***********000");
+                                node.zIndex = 10000;
+                                var MoneyFlyAnim = node.getChildByName('MoneyAnim').getComponent(cc.Animation);
+                                MoneyFlyAnim.RemoveNode = function () {
+                                    node.destroy();
+                                    // cc.log('111111111',node);
+                                }
+                            });
+                        if (Success != null) {
+                            Success();
+                        }
+                    }.bind(this));
+                    UtilsPrefabs.removePrefabs(Canvas, node.name);
+                    // if (task.taskCursor == 4) {
+                    //     task.addTaskCount();
+                    //     task.removeTaskNodes();
+                    // }
+
+                }.bind(this))
+            }.bind(this));
+
+    },
+    loadResSpriteFrame: function (src, callback) {
+        cc.loader.loadRes(src, cc.SpriteFrame, function (err, texture) {
+            if (callback != null) {
+                callback(texture);
+            }
+        }.bind(this));
+    },
+
+
+}

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "7c45dce6-2a78-4713-8d71-a2337cb88640",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 46 - 0
assets/js/actor.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: {
+        type: {
+            // ATTRIBUTES:
+            default: 0,        // 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 () {
+
+    },
+    setGameOverShow : function (b) {
+        let star = UtilsNode.getNode("star",this.node);
+        if (star != null) {
+            star.active = b;
+        }
+    }
+    // update (dt) {},
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "84708670-5bf7-419f-af3a-eee36b048971",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 43 - 0
assets/js/anmove _up_down.js

@@ -0,0 +1,43 @@
+// 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 () {
+        // let x = UtilsNode.getRandom(2,2,10);
+        let myAction = cc.repeatForever(cc.sequence(cc.moveBy(1, cc.v2(0,10)),cc.moveBy(1, cc.v2(0,-10))));
+        this.node.runAction(myAction)
+    },
+
+    // update (dt) {},
+});

+ 9 - 0
assets/js/anmove _up_down.js.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "481cc01c-868d-4071-85aa-3bb765a3ca11",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 64 - 0
assets/js/anmove.js

@@ -0,0 +1,64 @@
+// 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 () {
+        let x = UtilsNode.getRandom(2,2,10);
+        for (var i = 0; i < this.node.children.length; i++) {
+            let node = this.node.children[i];
+            let name = node.name;
+            let myAction  =null;
+            switch (name) {
+
+                case "bg2":
+                case "bg3":
+                case "bg5":
+                case "bg6":
+                     myAction = cc.repeatForever(cc.sequence(cc.moveBy(1, -5,0),cc.moveBy(1, 5,0)));
+                    node.runAction(myAction)
+                    break;
+                case "bg4":
+                case "bg1":
+                     myAction = cc.repeatForever(cc.sequence(cc.rotateBy(1, 3),cc.rotateBy(1, -3)));
+                    node.runAction(myAction)
+                    break;
+            }
+        }
+
+        // let myAction = cc.repeatForever(cc.sequence(cc.rotateBy(1, 5),cc.rotateBy(1, -5)));
+        // this.node.runAction(myAction)
+    },
+
+    // update (dt) {},
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "7360175b-1c5b-491f-b98a-8024f2ada7eb",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 7 - 0
assets/js/app.js

@@ -0,0 +1,7 @@
+window.app = {
+    bg : null,
+    camera :null,
+    titlelayout : null,
+    readGo : null,
+    bgm : null
+}

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "971e1f70-32e9-45b1-8f0e-686aecb5361d",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 108 - 0
assets/js/bgm.js

@@ -0,0 +1,108 @@
+// 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: {
+        bgm: {
+            default: null,
+            type: cc.AudioClip
+        },
+        a: {
+            default: null,
+            type: cc.AudioClip
+        },
+        hei: {
+            default: null,
+            type: cc.AudioClip
+        },
+        ha: {
+            default: null,
+            type: cc.AudioClip
+        },
+        imwin: {
+            default: null,
+            type: cc.AudioClip
+        },
+        kuaidaozhongdian: {
+            default: null,
+            type: cc.AudioClip
+        },
+        luoshui: {
+            default: null,
+            type: cc.AudioClip
+        },
+        wohuihuilaide: {
+            default: null,
+            type: cc.AudioClip
+        },
+        zhecibusuan: {
+            default: null,
+            type: cc.AudioClip
+        },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    onLoad () {
+        app.bgm = this;
+    },
+
+    start () {
+
+        this.myMusic = null;
+    },
+    stop : function(){
+        cc.audioEngine.stopMusic();
+    },
+    play : function () {
+        if (this.myMusic != null) {
+            this.stop();
+        }
+
+        this.myMusic = cc.audioEngine.playMusic(this.bgm,true);
+    },
+    //掉下去了
+    playa : function () {
+        cc.audioEngine.play(this.a,false,1);
+    },
+    //两步
+    playhei : function () {
+        cc.audioEngine.play(this.hei,false,0.5);
+    },
+    // 一步
+    playha : function () {
+        cc.audioEngine.play(this.ha,false,0.5);
+    },
+    playimwin : function () {
+        cc.audioEngine.play(this.imwin,false,1);
+        setTimeout(function () {
+            this.stop();
+        }.bind(this),700)
+    },
+    playkuaidaozhongdian : function () {
+        cc.audioEngine.play(this.kuaidaozhongdian,false,1);
+    },
+    playluoshui : function () {
+        cc.audioEngine.play(this.luoshui,false,1);
+    },
+    playwohuihuilaide : function () {
+        cc.audioEngine.play(this.wohuihuilaide,false,1);
+    },
+    playzhecibusuan : function () {
+        cc.audioEngine.play(this.zhecibusuan,false,1);
+        setTimeout(function () {
+            this.stop();
+        }.bind(this),700)
+    },
+
+    // update (dt) {},
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "2608e228-0a08-429a-ae95-6a86d6347cee",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 387 - 0
assets/js/bgmanager.js

@@ -0,0 +1,387 @@
+// 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: {
+        info : {
+            default: null,
+            type: cc.Prefab
+        },
+        player: {
+            default: null,
+            type: cc.Prefab
+        },
+        playerAi: {
+            default: null,
+            type: cc.Prefab
+        },
+        actor1: {
+            default: null,
+            type: cc.Prefab
+        },
+        actor2: {
+            default: null,
+            type: cc.Prefab
+        },
+        actor3: {
+            default: null,
+            type: cc.Prefab
+        },
+        actor4: {
+            default: null,
+            type: cc.Prefab
+        },
+        bgs1: {
+            default: null,
+            type: cc.Prefab
+        },
+        bgs2: {
+            default: null,
+            type: cc.Prefab
+        },
+        bgs3: {
+            default: null,
+            type: cc.Prefab
+        },
+        bgsend: {
+            default: null,
+            type: cc.Prefab
+        },
+        killItem : {
+            default: null,
+            type: cc.Prefab
+        }
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    // onLoad () {},
+
+    start() {
+        this._init();
+    },
+
+    onLoad () {
+        app.bg = this;
+        //镜头最开始的位置保存 每次游戏开始的时候使用
+        this.camerainitP = {x: app.camera.x, y: app.camera.y};
+        let bgss = this.bgss = [];
+        bgss.push(this.bgs1);
+        bgss.push(this.bgs2);
+        bgss.push(this.bgs3);
+        // bgss.push(this.bgs4);
+    },
+    _init: function () {
+
+        app.camera.x = this.camerainitP.x;
+        app.camera.y = this.camerainitP.y;
+
+        for (var i = 0; i < this.node.children.length; i++) {
+            this.node.children[i].destroy();
+        }
+
+        let actorps =this.actorps= UtilsNode.startActor(function (bgArr,postions) {
+            console.log("背景数组", bgArr);
+            this.bgArr = bgArr;
+
+            this.initBg(postions);
+        }.bind(this));
+
+
+        this.actors = [];
+        this.actors.push(this.actor1);
+        this.actors.push(this.actor2);
+        this.actors.push(this.actor3);
+        this.actorsNode = UtilsNode.actorBirth(this.node, actorps, this.actors, this.actors[0], this
+            .actor4);
+        console.log("要创建东西的位置", actorps);
+        this.addInfo(actorps);
+
+        let node = this.playerNode = cc.instantiate(this.player);
+        this.node.addChild(node);
+        node.zIndex = 9999999;
+
+
+        this.playerNode.getComponent("player").setMap(this.actorsNode,0);
+
+
+
+
+        this._initAi();
+
+        this.callback();
+
+
+        this.playerNode.getComponent("player").startGame(false);
+        this.playerNodeAi.getComponent("player").startGame(false);
+        if (app.readGo != null) {
+            app.readGo.readgo(function () {
+                this.playerNode.getComponent("player").startGame(true);
+                this.playerNodeAi.getComponent("player").startGame(true);
+            }.bind(this));
+        }
+
+
+    },
+    //    初始化ai
+    _initAi : function(){
+        let nodeAi = this.playerNodeAi = cc.instantiate(this.playerAi);
+        this.node.addChild(nodeAi);
+        this.playerNodeAi.getComponent("player").setMap(this.actorsNode,1);
+
+        this.unschedule(this.callbacks);
+        this.callbacks = function () {
+            // if (this.car.x<-165) {
+            //     // 在第六次执行回调时取消这个计时器
+            //     this.unschedule(this.callback);
+            // }
+            // let x = UtilsNode.getRandom(2,0,1);
+            //
+            // if (x == 0) {
+            //     this.playerNodeAi.getComponent("player").addOne();
+            // }else if (x == 1) {
+            //     this.playerNodeAi.getComponent("player").addTwo();
+            // }
+            this.playerNodeAi.getComponent("player").addAuto();
+        }
+        this.schedule(this.callbacks, 0.8);
+
+
+
+
+
+
+    },
+
+
+    //两步提示
+    addInfo: function (actorps) {
+        this.info = cc.instantiate(this.info);
+        this.info.active = true;
+        this.node.addChild(this.info);
+        this.info.zIndex = 999999;
+        // console.log("提示在node 里面有没有",this.node.children);
+        this.info.setPosition(actorps[7].x, actorps[7].y+100);
+        let  sequence = cc.sequence(cc.moveTo(0.2, cc.v2(actorps[7].x-20,actorps[7].y+100)),cc.moveTo(0.2, cc.v2(actorps[7].x+20,actorps[7].y+100)));
+        // let  sequence = cc.moveTo(1, cc.v2(actorps[6].x-10,actorps[6].y));
+        var myAction = cc.repeatForever(sequence);
+        this.info.runAction(myAction)
+    },
+
+    initBg: function (postions) {
+        //创建 荷花啥的
+        for (var i = 0; i < this.bgArr.length; i++) {
+
+            if (i % 2 == 0) {
+
+                //偶数
+
+               let node = this.addRandomBG()
+
+                node.setPosition(this.bgArr[i].x - 350, this.bgArr[i].y);
+                UtilsNode.setMyRotation(1,node);
+                // this.addRandomBG().setPosition(this.bgArr[i].x - 350, this.bgArr[i].y);
+                // this.addRandomBG().setPosition(this.bgArr[i].x - 500, this.bgArr[i].y);
+
+            } else {
+                //奇数
+                    let node = this.addRandomBG()
+                node.setPosition(this.bgArr[i].x + 350, this.bgArr[i].y);
+                UtilsNode.setMyRotation(0,node);
+                // this.addRandomBG().setPosition(this.bgArr[i].x + 350, this.bgArr[i].y);
+                // this.addRandomBG().setPosition(this.bgArr[i].x + 500, this.bgArr[i].y);
+            }
+        }
+        // this.addBG(2).setPosition(postions[postions.length-1].x - 200, postions[postions.length-1].y+200);
+        // this.addBG(2).setPosition(postions[postions.length-1].x + 200, postions[postions.length-1].y+250);
+        //
+        // this.addBG(2).setPosition(postions[postions.length-1].x - 220, postions[postions.length-1].y+400);
+        // this.addBG(2).setPosition(postions[postions.length-1].x + 180, postions[postions.length-1].y+450);
+        //
+        // this.addBG(2).setPosition(postions[postions.length-1].x - 300, postions[postions.length-1].y+500);
+        // this.addBG(2).setPosition(postions[postions.length-1].x - 150, postions[postions.length-1].y+600);
+        // // this.addBG(2).setPosition(postions[postions.length-1].x + 200, postions[postions.length-1].y+600);
+        //
+        // this.add1BG(6).setPosition(postions[postions.length-1].x+200, postions[postions.length-1].y+600);
+        let bgsend = cc.instantiate(this.bgsend);
+        bgsend.setPosition(postions[postions.length-1].x+200, postions[postions.length-1].y+500);
+        this.node.addChild(bgsend);
+
+    },
+
+    addRandomBG : function(Scale){
+        let index = UtilsNode.getRandom(0, 0, this.bgss.length);
+        let node = this.playerNode = cc.instantiate(this.bgss[index]);
+        if (Scale!=null) {
+            node.setScale(Scale);
+        }else{
+            node.setScale(1);
+        }
+
+        this.node.addChild(node);
+        return node;
+    },
+    add1BG : function(Scale){
+        let node = this.playerNode = cc.instantiate(this.bgss[1]);
+        node.setScale(6);
+        this.node.addChild(node);
+        return node;
+    },
+    addBG : function(Scale){
+        let index = UtilsNode.getRandom(2, 1, 2);
+        let node = this.playerNode = cc.instantiate(this.bgss[index]);
+        if (Scale!=null) {
+            node.setScale(Scale);
+        }else{
+            node.setScale(1);
+        }
+        this.node.addChild(node);
+        return node;
+    },
+
+
+    callback: function () {
+        this.playerNode.getComponent("player").setCallBackGameOver(function () {
+            console.log("游戏结束了");
+
+            app.titlelayout.hideButton(true);
+            this.playerNodeAi.getComponent("player").winOrLose(false);
+            app.bgm.playimwin();
+            // app.bgm.stop();
+        }.bind(this));
+        this.playerNode.getComponent("player").setCallBackTrap(function () {
+            // console.log("掉陷阱");
+            app.bgm.playluoshui();
+            app.bgm.playa();
+        }.bind(this));
+        this.playerNode.getComponent("player").setCallBackMove(function (index) {
+
+            this.playerIndex = index;
+            this.isDisparity();
+            console.log("移动了了吗",index);
+            app.titlelayout.setProgress(0,index,this.actorps.length-1);
+        }.bind(this));
+        this.playerNode.getComponent("player").setCallBackInfo(function () {
+            console.log("info消失");
+            this.info.active = false;
+        }.bind(this));
+        this.playerNode.getComponent("player").setCallBackJump(function (p) {
+            // let node  = cc.instantiate(this.killItem);
+            // let node = UtilsNode.getNode("qi",this.playerNode);
+            // node.getComponent("kill").setActive(true);
+            // this.playerNode.getComponent("player").showsSmoke(true);
+            // node.setPosition(p.x, p.y);
+        }.bind(this));
+        this.playerNode.getComponent("player").setCallBackCameraMove(function (node) {
+            //镜头移动
+            if (node.y>500) {
+                if (node.y-500 > app.camera.y) {
+                    var myAction =cc.moveTo(0.2, cc.v2(app.camera.x,node.y-500))
+                    app.camera.runAction(myAction);
+                }
+
+            }
+        }.bind(this));
+
+
+        this.playerNodeAi.getComponent("player").setCallBackGameOver(function () {
+            console.log("游戏结束了");
+            app.titlelayout.hideButton(true);
+            this.playerNode.getComponent("player").winOrLose(false);
+            // app.bgm.playkuaidaozhongdian();
+            app.bgm.playzhecibusuan();
+        }.bind(this));
+        this.playerNodeAi.getComponent("player").setCallBackTrap(function () {
+            // console.log("掉陷阱");
+            app.bgm.playluoshui();
+            app.bgm.playa();
+        }.bind(this));
+        this.playerNodeAi.getComponent("player").setCallBackMove(function (index) {
+
+            this.playerNodeAiIndex = index;
+            app.titlelayout.setProgress(1,index,this.actorps.length-1);
+            // console.log("移动了",index);
+            this.isDisparity();
+        }.bind(this));
+        this.playerNodeAi.getComponent("player").setCallBackInfo(function () {
+            // console.log("info消失");
+            // this.info.active = false;
+        }.bind(this));
+        this.playerNodeAi.getComponent("player").setCallBackJump(function (p) {
+            // let node  = cc.instantiate(this.killItem);
+            // let node = UtilsNode.getNode("qi",this.playerNodeAi);
+            // //落地灰尘显示
+            // node.getComponent("kill").setActive(true);
+            // this.playerNodeAi.getComponent("player").showsSmoke(true);
+            // node.setPosition(p.x, p.y);
+        }.bind(this));
+
+
+
+        //初始化相差步数
+        this.playerNodeAiIndex = 0;
+        this.playerIndex = 0;
+        //如有对象 就默认隐藏
+        if (app.titlelayout != null) {
+            app.titlelayout._init();
+        }
+
+    },
+
+    isDisparity : function(){
+        // console.log("info消失");
+        let index = 0;
+
+        if (this.playerNodeAiIndex-this.playerIndex>0) {
+            index =this.playerNodeAiIndex-this.playerIndex;
+            this.showDisparity(1,index);
+        }else if (this.playerIndex-this.playerNodeAiIndex>0) {
+
+            index =this.playerIndex-this.playerNodeAiIndex;
+            this.showDisparity(0,index);
+        }
+    },
+
+    showDisparity : function(type , index){
+        if (index>10) {
+            app.titlelayout.showinfo(true,type,index);
+
+        }else{
+            app.titlelayout.showinfo(false,type,index);
+        }
+
+        // switch (type) {
+        //     case 0:
+        //         console.log("你领先",index);
+        //
+        //         break;
+        //     case 1:
+        //         console.log("你落后",index);
+        //         break;
+        // }
+    },
+
+
+    one: function () {
+        this.playerNode.getComponent("player").addOne();
+
+
+    },
+    two: function () {
+        this.playerNode.getComponent("player").addTwo();
+
+    },
+    reset: function () {
+        this._init();
+    }
+    // update (dt) {},
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "e86d158d-c6c3-4d34-ba1b-d30c6eeea0dc",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 55 - 0
assets/js/endstart.js

@@ -0,0 +1,55 @@
+// 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 () {
+
+    },
+
+    endGame : function () {
+        UtilsNode.getNode("quan1",this.node).active = false;
+        UtilsNode.getNode("quan2",this.node).active = false;
+        // this.node.stopAllActions();
+        this.node.getComponent(cc.Animation).stop();
+        UtilsNode.getNode("star",this.node).getComponent(cc.Animation).play();
+        let myAction = cc.moveBy(0.2, cc.v2(50,50));
+        this.node.runAction(myAction);
+        setTimeout(function () {
+            this.node.active = false;
+        }.bind(this),1000);
+    }
+
+
+    // update (dt) {},
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "8ba5f1ad-599f-4663-b553-8866251e2d25",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 62 - 0
assets/js/itemmanager.js

@@ -0,0 +1,62 @@
+// 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() {
+
+    },
+    play: function () {
+
+
+        for (let i = 0; i < this.node.children.length; i++) {
+            // console.log("进到这里了",this.node.children[i]);
+            this.node.children[i].active = true;
+            let an = this.node.children[i].getComponent(cc.Animation);
+            if (an != null) {
+                an.play();
+            }
+
+        }
+    },
+    playwater: function () {
+
+        let water = UtilsNode.getNode("water", this.node);
+        water.active = true;
+        let an = water.getComponent(cc.Animation);
+        an.play();
+    },
+
+
+    // update (dt) {},
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "df1786ac-521c-40e4-9b5f-0bef30844535",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 53 - 0
assets/js/kill.js

@@ -0,0 +1,53 @@
+// 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 () {
+
+    },
+    setActive : function(b){
+        this.node.active = b;
+
+        if (b) {
+            this.node.getComponent(cc.Animation).play();
+            setTimeout(function () {
+                this.node.active = false;
+                // console.log("现在关闭");
+            }.bind(this),100)
+        }
+    },
+    start () {
+
+    },
+
+    // update (dt) {},
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "084ca35e-ccdb-461d-8d72-568dd47ff362",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 81 - 0
assets/js/main.js

@@ -0,0 +1,81 @@
+// 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: {
+        // camera: {
+        //     default: null,
+        //     type: cc.Node
+        // },
+        // bg: {
+        //     default: null,
+        //     type: cc.Node
+        // },
+    },
+
+    // LIFE-CYCLE CALLBACKS:
+
+    onLoad () {
+        this.MainCamera = UtilsNode.getNode("Main Camera",this.node);
+        app.camera = this.MainCamera;
+    },
+
+    start() {
+
+
+
+       this.bg = UtilsNode.getNode("bg",this.node);
+
+        cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyDown, this);
+        cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, this.onkeyUp, this);
+        this.wTag = false;
+        this.sTag = false;
+
+
+        // let MoveUp = cc.moveBy(0.5,cc.v2(0,1000)).easing(cc.easeIn(10));
+    },
+
+    onkeyUp: function (event) {
+        switch(event.keyCode) {
+            case cc.macro.KEY.w:
+                console.log('Press a key');
+                this.wTag = false;
+                break;
+            case cc.macro.KEY.s:
+                console.log('Press a key');
+                this.sTag = false;
+                break;
+        }
+    },
+
+    onKeyDown: function (event) {
+        switch(event.keyCode) {
+            case cc.macro.KEY.w:
+                console.log('Press a key');
+                this.wTag = true;
+                break;
+            case cc.macro.KEY.s:
+                console.log('Press a key');
+                this.sTag = true;
+                break;
+        }
+    },
+    update (dt) {
+        if (this.wTag) {
+            this.MainCamera.y -=40;
+            // this.camera.getComponent(cc.Camera).zoomRatio+=1;
+        }else if (this.sTag) {
+            this.MainCamera.y +=40;
+            // this.camera.getComponent(cc.Camera).zoomRatio-=1;
+        }
+    },
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "a4a593f0-21e0-4444-803a-e82b594623c1",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 391 - 0
assets/js/player.js

@@ -0,0 +1,391 @@
+// 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 () {
+
+    },
+    setMap : function(Map,type){
+        this.actorsNode = Map;
+
+        this._an(type);
+        this._init();
+    },
+    _an :function (type){
+        this.ansName = [];
+        if (type == 0) {
+            this.ansName.push("RedIdleAnim");
+            this.ansName.push("RedJumpAnim");
+            this.ansName.push("RedDownCryAnim");
+            this.ansName.push("RedLoseCryAnim");
+            this.ansName.push("RedWinAnim");
+        }
+        if (type == 1) {
+            this.ansName.push("BlueIdleAnim");
+            this.ansName.push("BlueJumpAnim");
+            this.ansName.push("BlueDownCryAnim");
+            this.ansName.push("BlueLoseCryAnim");
+            this.ansName.push("BlueWinAnim");
+        }
+
+    },
+    _init : function(){
+        this.indexes = 0;
+        this.addY = 0;
+        this.node.setPosition(this.actorsNode[0].x,this.actorsNode[0].y+this.addY);
+        this.inputTag = true;
+        // 一步两步的 基本记录数组位置的索引
+        this.indexes = 0;
+        //记录所有操作 索引的数组
+        this.Records = [];
+        //按了多少次
+        this.Recordsindex = 0;
+
+        this.Records.push(this.indexes);
+
+        this.player = UtilsNode.getNode("player",this.node);
+
+
+
+
+        this.gameOverTag = true;
+
+    },
+    addOne : function () {
+        if (!this.gameOverTag) {
+            return;
+        }
+        if (!this.inputTag) {
+            return;
+        }
+        let temp = this.indexes;
+        this.Records.push(temp);
+        this.indexes++;
+        app.bgm.playha();
+        this.playerSetPosition();
+    },
+    addTwo : function () {
+        if (!this.gameOverTag) {
+            return;
+        }
+        if (!this.inputTag) {
+            return;
+        }
+        let temp = this.indexes;
+        this.Records.push(temp);
+        this.indexes+=2;
+        app.bgm.playhei();
+        this.playerSetPosition();
+    },
+    addAuto : function () {
+        if (!this.gameOverTag) {
+            return;
+        }
+        if (!this.inputTag) {
+            return;
+        }
+        let temp = this.indexes;
+        this.Records.push(temp);
+
+        let actor = this.actorsNode[this.indexes+1].getComponent("actor");
+        if (actor.type == 2) {
+            let x = UtilsNode.getRandom(2,0,10);
+
+            if (x < 8) {
+                this.indexes+=2;
+            }else{
+                this.indexes+=1;
+            }
+
+        }else{
+            this.indexes+=1;
+        }
+        this.playerSetPosition();
+    },
+    playerSetPosition : function () {
+        if (this.indexes >= this.actorsNode.length-1) {
+            this.indexes = this.actorsNode.length-1;
+
+        }
+        this.checkType();
+        // console.log("记录数组日常遍历",this.Records);
+
+
+
+        var finished = cc.callFunc(function(target, score) {
+
+            // app.camera.y = this.node.y-640;
+            // var myAction = cc.sequence(cc.moveTo(1, cc.v2(this.actorsNode[this.indexes].x,this.actorsNode[this.indexes].y)))
+
+
+            // console.log("镜头现在高度",app.camera.y);
+            // console.log("玩家现在高度",this.node.y);
+
+            if (this.callBackCameraMove!=null) {
+                this.callBackCameraMove(this.node);
+            }
+            if (this.callBackMove!=null) {
+                this.callBackMove(this.indexes);
+            }
+            //播放动画
+            this.playAnEnd();
+            this.playAnEnd_bg();
+
+            if (this.indexes==8) {
+                if (this.callBackInfo) {
+                    this.callBackInfo();
+                }
+            }
+
+
+            // setTimeout(function () {
+            //     this.inputTag = true;
+            // }.bind(this),500);
+            // console.log("现在的位置",this.node);
+        }, this);//动作完成后会给玩家加100分
+        // var myAction = cc.sequence(cc.jumpTo(1, cc.v2(this.actorsNode[this.indexes].x,this.actorsNode[this.indexes].y)), finished);
+        var myAction = cc.sequence(
+            cc.jumpTo(0.1, cc.v2(this.actorsNode[this.indexes].x,this.actorsNode[this.indexes].y+this.addY-20), 200, 1),
+            cc.moveTo(0.05,cc.v2(this.actorsNode[this.indexes].x,this.actorsNode[this.indexes].y+this.addY+10)),
+             finished);
+        // this.node.setPosition(this.actorsNode[this.indexes].x,this.actorsNode[this.indexes].y);
+        this.node.runAction(myAction);
+        this.inputTag = false;
+        this.playAnStart();
+    },
+    playAnStart : function(){
+        let actor = this.actorsNode[this.indexes].getComponent("actor");
+        let an = this.player.getComponent(cc.Animation);
+        let Clips = an.getClips();
+        console.log("当前动画列表",Clips);
+        // console.log("地板什么类型的",actor.type);
+        an.play(this.ansName[1]);
+        // switch (actor.type) {
+        //     case  2:
+        //         if (this.actorsNode[this.indexes].userData==null ) {
+        //             let data = {type : true};
+        //             this.actorsNode[this.indexes].userData = data;
+        //             //要掉下去了
+        //             an.play();
+        //         }
+        //
+        //         break;
+        //     case  0:
+        //     case  1:
+        //         an.play();
+        //         break;
+        //     case  3:
+        //         an.play();
+        //         break;
+        // }
+    },
+    playAnEnd : function(){
+        let actor = this.actorsNode[this.indexes].getComponent("actor");
+        let an = this.player.getComponent(cc.Animation);
+        let Clips = an.getClips();
+        console.log("地板什么类型的",actor.type);
+        let temp = app.bg.actorps[this.indexes];
+        switch (actor.type) {
+            case  2:
+                // if (this.actorsNode[this.indexes].userData==null ) {
+                //     let data = {type : true};
+                //     this.actorsNode[this.indexes].userData = data;
+                //     //要掉下去了
+                //     an.play();
+                // }
+                an.play(this.ansName[2]);
+                break;
+            case  0:
+            case  1:
+                an.play();
+
+
+                let temp1 = app.bg.actorps[this.indexes-1];
+                console.log("落地之后这个是什么类型的",temp,"上个类型",temp1);
+                if (temp.q != null || temp1.q!=null) {
+                    this.node.setScale(1,-1);
+                    this.node.setRotation(180);
+                    console.log("我应该脸往左",temp,temp1);
+                }
+                if (temp.w!= null || temp1.w!=null) {
+                    this.node.setScale(1,1);
+                    this.node.setRotation(0);
+                    console.log("我应该脸往右",temp,temp1);
+                }
+                if (this.callBackJump!=null) {
+                    this.callBackJump(temp);
+                }
+                break;
+            case  3:
+                if (this.callBackJump!=null) {
+                    this.callBackJump(temp);
+                }
+                an.play(this.ansName[4]);
+                break;
+        }
+    },
+
+
+
+    showsSmoke : function(b){
+        let node = UtilsNode.getNode("qi",this.node);
+        node.getComponent("kill").setActive(b);
+    },
+
+    playAnEnd_bg : function(){
+        let actor = this.actorsNode[this.indexes].getComponent("actor");
+        let an = this.actorsNode[this.indexes].getComponent("itemmanager");
+        this.showsSmoke(true);
+
+        console.log("地板什么类型的",actor.type);
+        switch (actor.type) {
+            case  2:
+                if (this.actorsNode[this.indexes].userData==null ) {
+                    let data = {type : true};
+                    this.actorsNode[this.indexes].userData = data;
+                    //要掉下去了
+                    an.play();
+                }
+                an.playwater();
+                break;
+            case  0:
+            case  1:
+                an.play();
+                break;
+            case  3:
+                an.play();
+                break;
+        }
+    },
+
+
+    startGame : function(b){
+        this.gameOverTag = b;
+    },
+
+    //检查地板类型
+    checkType : function () {
+       let actor = this.actorsNode[this.indexes].getComponent("actor");
+        let an = this.player.getComponent(cc.Animation);
+        let Clips = an.getClips();
+        console.log("地板什么类型的",actor.type);
+        switch (actor.type) {
+            case  2:
+                //要掉下去了
+                if (this.callBackTrap!=null) {
+                    this.callBackTrap();
+                }
+                this.inputTag = false;
+                // console.log("记录数组陷阱",this.Records);
+                setTimeout(function () {
+                    this.indexes = this.Records[this.Records.length-1];
+                    this.node.setPosition(this.actorsNode[this.indexes].x,this.actorsNode[this.indexes].y+this.addY);
+                    UtilsNode.getNode("player",this.node).setPosition(0,0);
+                    this.inputTag = true;
+                    an.play(this.ansName[0]);
+                    this.playAnEnd_bg();
+                }.bind(this),1500);
+                break;
+            case  0:
+            case  1:
+                this.inputTag = false;
+                // console.log("记录数组陷阱",this.Records);
+                setTimeout(function () {
+                    // this.indexes = this.Records[this.Records.length-1];
+                    // this.node.setPosition(this.actorsNode[this.indexes].x,this.actorsNode[this.indexes].y);
+                    this.inputTag = true;
+                    an.play(this.ansName[0]);
+                }.bind(this),200);
+                break;
+            case  3:
+                setTimeout(function () {
+                    if (this.callBackGameOver != null) {
+                        this.callBackGameOver();
+                    }
+                    // an.play(this.ansName[4]);
+                    this.winOrLose(true);
+                    // actor.setGameOverShow(false);
+                    let star = UtilsNode.getNode("star",this.actorsNode[this.indexes]);
+                    star.getComponent("endstart").endGame();
+
+                }.bind(this),200);
+                break;
+        }
+    },
+
+    winOrLose : function(b){
+        this.gameOverTag = false;
+        let an = this.player.getComponent(cc.Animation);
+        if (b) {
+            an.play(this.ansName[4]);
+        }else{
+            an.play(this.ansName[3]);
+        }
+
+    },
+
+
+    //todo 回调区域------------------------------------------------------
+
+
+    callBackGameOver : function(){},
+    setCallBackGameOver : function (callBackGameOver) {
+        this.callBackGameOver = callBackGameOver;
+    },
+
+    callBackTrap : function(){},
+    setCallBackTrap : function (callBackTrap) {
+        this.callBackTrap = callBackTrap;
+    },
+    callBackInfo : function(){},
+    setCallBackInfo : function (callBackInfo) {
+        this.callBackInfo = callBackInfo;
+    },
+    callBackJump : function(){},
+    setCallBackJump : function (callBackJump) {
+        this.callBackJump = callBackJump;
+    },
+    callBackCameraMove : function(){},
+    setCallBackCameraMove : function (callBackCameraMove) {
+        this.callBackCameraMove = callBackCameraMove;
+    },
+    callBackMove : function(){},
+    setCallBackMove : function (callBackMove) {
+        this.callBackMove = callBackMove;
+    },
+
+    // update (dt) {},
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "79727a63-765f-423a-b3c4-79c77d272be0",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 203 - 0
assets/js/titlelayoutmanager.js

@@ -0,0 +1,203 @@
+// 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 () {
+        let layout = UtilsNode.getNode("layout",this.node);
+        let one = UtilsNode.getNode("one",layout);
+        let two = UtilsNode.getNode("two",layout);
+        let reset  = this.resetbutton = UtilsNode.getNode("reset",layout);
+        app.titlelayout = this;
+        UtilsNode.setOn(one,function () {
+            app.bg.one();
+        }.bind(this));
+        UtilsNode.setOn(two,function () {
+            app.bg.two();
+        }.bind(this));
+        UtilsNode.setOn(reset,function () {
+            app.bg.reset();
+            this.hideButton(false);
+        }.bind(this));
+        let info = this.info = UtilsNode.getNode("info",layout);
+
+        let info1  = UtilsNode.getNode("info1",info);
+        let info2  = UtilsNode.getNode("info2",info);
+
+        // this.x = this.info.x;
+        // this.y = this.info.y;
+
+
+
+        this.infos = [];
+
+        this.infos.push(info1);
+        this.infos.push(info2);
+
+        this.infosp = [];
+
+        this.infosp.push({x:info1.x,y:info1.y});
+        this.infosp.push({x:info2.x,y:info2.y});
+
+
+
+
+        let title = this.title = UtilsNode.getNode("title",layout);
+        let progresslayout = UtilsNode.getNode("progresslayout",title);
+        let progress1 = UtilsNode.getNode("progress1",progresslayout);
+        let progress2 = UtilsNode.getNode("progress2",progresslayout);
+        let player_showbg1 = UtilsNode.getNode("player_showbg1",progresslayout);
+        let player_showbg2 = UtilsNode.getNode("player_showbg2",progresslayout);
+
+        this.playerprogress = [];
+        this.playerprogress.push(progress1);
+        this.playerprogress.push(progress2);
+
+        this.player_showbgs = [];
+        this.player_showbgs.push(player_showbg1);
+        this.player_showbgs.push(player_showbg2);
+
+        this.fristEndTag = false;
+
+
+
+    },
+    //重置
+    _init : function(){
+        this.showinfoinit();
+        this.setInitProgress();
+    },
+
+
+    // startGame : function () {
+    //     this.resetbutton.active = false;
+    // },
+    hideButton : function (b) {
+        if (b) {
+            setTimeout(function () {
+                this.resetbutton.active = b;
+            }.bind(this),1000)
+        }else{
+            this.resetbutton.active = b;
+        }
+
+
+
+        // this.showinfoinit();
+    },
+    showinfo: function (b,type,num) {
+
+
+        if (!b) {
+
+            this.infos[type].active = b;
+            return;
+        }else{
+            if (!this.infos[type].active) {
+                this.infos[type].active = b;
+                this.info.stopAllActions();
+                this.infos[type].x = this.infosp[type].x;
+                this.infos[type].y = this.infosp[type].y;
+                let myAction = cc.repeatForever(cc.sequence(cc.moveBy(0.5, cc.v2(0,-20)),cc.moveBy(0.5, cc.v2(0,+20))));
+                this.infos[type].runAction(myAction);
+            }
+            this.infosTitle = [];
+
+            let infobg_lose = UtilsNode.getNode("infobg_lose",this.infos[type]);
+            let infobg_win = UtilsNode.getNode("infobg_win",this.infos[type]);
+
+
+            // this.infosTitle.push(infobg_win);
+            // this.infosTitle.push(infobg_lose);
+                let text = UtilsNode.getNode("text",this.infos[type]);
+                let title = "";
+                if (type == 0) {
+                    // title = "对手落后"+num+"步";
+                    title = num;
+                    infobg_lose.active = false;
+                    infobg_win.active = true;
+                }else if (type == 1) {
+                    // title = "你落后"+num+"步";
+                    title = num;
+                    infobg_lose.active = true;
+                    infobg_win.active = false;
+                }
+
+                text.getComponent(cc.Label).string = title;
+
+        }
+
+
+    },
+    showinfoinit: function () {
+
+        for (var i = 0; i <  this.infos.length; i++) {
+            this.infos[i].active = false;
+        }
+
+
+    },
+    setProgress : function (playertype,num,max) {
+
+        let temp = UtilsNode.getPercentage(num,max);
+        this.playerprogress[playertype].getComponent(cc.Label).string = temp+"%";
+        // console.log("当前进来是啥",playertype,num,max,"百分比",UtilsNode.getPercentage(num,max));
+        if (temp>=80) {
+            this.setFristEnd(playertype);
+        }
+    },
+
+    setInitProgress : function () {
+        for (let i = 0; i <this.playerprogress.length ; i++) {
+            this.playerprogress[i].getComponent(cc.Label).string = 0+"%";
+        }
+    },
+    //只显示一次的 快到终点提示
+    setFristEnd : function (type) {
+        // this.player_showbgs
+        if (!this.fristEndTag) {
+            if (type == 0) {
+                app.bgm.playkuaidaozhongdian();
+            }else{
+                app.bgm.playkuaidaozhongdian();
+            }
+
+            this.fristEndTag = true;
+            this.player_showbgs[type].active = true;
+            setTimeout(function () {
+                this.player_showbgs[type].active = false;
+            }.bind(this),2000)
+        }
+    },
+    // update (dt) {},
+});

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

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.5",
+  "uuid": "417fcc21-879f-48b0-afc3-f3909e82440b",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

部分文件因为文件数量过多而无法显示