xx 1 年之前
父節點
當前提交
49f4c9288c
共有 28 個文件被更改,包括 2279 次插入149 次删除
  1. 9 0
      assets/resources/animation/buff_active.meta
  2. 94 0
      assets/resources/animation/buff_active/active_dun.anim
  3. 13 0
      assets/resources/animation/buff_active/active_dun.anim.meta
  4. 99 0
      assets/resources/animation/buff_active/active_xi.anim
  5. 13 0
      assets/resources/animation/buff_active/active_xi.anim.meta
  6. 99 0
      assets/resources/animation/buff_active/active_xing.anim
  7. 13 0
      assets/resources/animation/buff_active/active_xing.anim.meta
  8. 105 0
      assets/resources/effect/game/11.plist
  9. 70 0
      assets/resources/effect/game/11.plist.meta
  10. 139 0
      assets/resources/effect/game/buff_active.plist
  11. 431 0
      assets/resources/effect/game/buff_active.plist.meta
  12. 二進制
      assets/resources/effect/game/buff_active.png
  13. 134 0
      assets/resources/effect/game/buff_active.png.meta
  14. 204 0
      assets/resources/prefabs/buff_active_effect_item.prefab
  15. 13 0
      assets/resources/prefabs/buff_active_effect_item.prefab.meta
  16. 292 133
      assets/resources/prefabs/game.prefab
  17. 329 0
      assets/resources/prefabs/qiyou_effect_item.prefab
  18. 13 0
      assets/resources/prefabs/qiyou_effect_item.prefab.meta
  19. 2 1
      assets/script/data.ts
  20. 5 1
      assets/script/game/box.ts
  21. 36 0
      assets/script/game/buff/buff_active_effect_item.ts
  22. 9 0
      assets/script/game/buff/buff_active_effect_item.ts.meta
  23. 62 14
      assets/script/game/car.ts
  24. 6 0
      assets/script/game/game.ts
  25. 29 0
      assets/script/game/qiyou_effect_item.ts
  26. 9 0
      assets/script/game/qiyou_effect_item.ts.meta
  27. 42 0
      assets/script/game/qiyou_manager.ts
  28. 9 0
      assets/script/game/qiyou_manager.ts.meta

+ 9 - 0
assets/resources/animation/buff_active.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "9d48ffbb-a77f-404c-89a7-28c667284e4f",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 94 - 0
assets/resources/animation/buff_active/active_dun.anim

@@ -0,0 +1,94 @@
+[
+  {
+    "__type__": "cc.AnimationClip",
+    "_name": "active_dun",
+    "_objFlags": 0,
+    "__editorExtras__": {
+      "embeddedPlayerGroups": []
+    },
+    "_native": "",
+    "sample": 60,
+    "speed": 1,
+    "wrapMode": 1,
+    "enableTrsBlending": false,
+    "_duration": 0.35,
+    "_hash": 500763545,
+    "_tracks": [
+      {
+        "__id__": 1
+      }
+    ],
+    "_exoticAnimation": null,
+    "_events": [
+      {
+        "frame": 0.35,
+        "func": "",
+        "params": []
+      },
+      {
+        "frame": 0.35,
+        "func": "buff_free",
+        "params": []
+      }
+    ],
+    "_embeddedPlayers": [],
+    "_additiveSettings": {
+      "__id__": 6
+    },
+    "_auxiliaryCurveEntries": []
+  },
+  {
+    "__type__": "cc.animation.ObjectTrack",
+    "_binding": {
+      "__type__": "cc.animation.TrackBinding",
+      "path": {
+        "__id__": 2
+      },
+      "proxy": null
+    },
+    "_channel": {
+      "__id__": 4
+    }
+  },
+  {
+    "__type__": "cc.animation.TrackPath",
+    "_paths": [
+      {
+        "__id__": 3
+      },
+      "spriteFrame"
+    ]
+  },
+  {
+    "__type__": "cc.animation.ComponentPath",
+    "component": "cc.Sprite"
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 5
+    }
+  },
+  {
+    "__type__": "cc.ObjectCurve",
+    "_times": [
+      0.16666666666666666,
+      0.3333333333333333
+    ],
+    "_values": [
+      {
+        "__uuid__": "9472800b-2c18-40dc-8db5-00bbc2daca12@32ee6",
+        "__expectedType__": "cc.SpriteFrame"
+      },
+      {
+        "__uuid__": "9472800b-2c18-40dc-8db5-00bbc2daca12@5135e",
+        "__expectedType__": "cc.SpriteFrame"
+      }
+    ]
+  },
+  {
+    "__type__": "cc.AnimationClipAdditiveSettings",
+    "enabled": false,
+    "refClip": null
+  }
+]

+ 13 - 0
assets/resources/animation/buff_active/active_dun.anim.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "2.0.3",
+  "importer": "animation-clip",
+  "imported": true,
+  "uuid": "c2ccb9a9-e4a0-4b31-9f89-971fe2a05b1b",
+  "files": [
+    ".cconb"
+  ],
+  "subMetas": {},
+  "userData": {
+    "name": "active_dun"
+  }
+}

+ 99 - 0
assets/resources/animation/buff_active/active_xi.anim

@@ -0,0 +1,99 @@
+[
+  {
+    "__type__": "cc.AnimationClip",
+    "_name": "active_xi",
+    "_objFlags": 0,
+    "__editorExtras__": {
+      "embeddedPlayerGroups": []
+    },
+    "_native": "",
+    "sample": 60,
+    "speed": 1,
+    "wrapMode": 1,
+    "enableTrsBlending": false,
+    "_duration": 0.35,
+    "_hash": 500763545,
+    "_tracks": [
+      {
+        "__id__": 1
+      }
+    ],
+    "_exoticAnimation": null,
+    "_events": [
+      {
+        "frame": 0.35,
+        "func": "",
+        "params": []
+      },
+      {
+        "frame": 0.35,
+        "func": "buff_free",
+        "params": []
+      }
+    ],
+    "_embeddedPlayers": [],
+    "_additiveSettings": {
+      "__id__": 6
+    },
+    "_auxiliaryCurveEntries": []
+  },
+  {
+    "__type__": "cc.animation.ObjectTrack",
+    "_binding": {
+      "__type__": "cc.animation.TrackBinding",
+      "path": {
+        "__id__": 2
+      },
+      "proxy": null
+    },
+    "_channel": {
+      "__id__": 4
+    }
+  },
+  {
+    "__type__": "cc.animation.TrackPath",
+    "_paths": [
+      {
+        "__id__": 3
+      },
+      "spriteFrame"
+    ]
+  },
+  {
+    "__type__": "cc.animation.ComponentPath",
+    "component": "cc.Sprite"
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 5
+    }
+  },
+  {
+    "__type__": "cc.ObjectCurve",
+    "_times": [
+      0,
+      0.16666666666666666,
+      0.3333333333333333
+    ],
+    "_values": [
+      {
+        "__uuid__": "9472800b-2c18-40dc-8db5-00bbc2daca12@554c5",
+        "__expectedType__": "cc.SpriteFrame"
+      },
+      {
+        "__uuid__": "9472800b-2c18-40dc-8db5-00bbc2daca12@f2f61",
+        "__expectedType__": "cc.SpriteFrame"
+      },
+      {
+        "__uuid__": "9472800b-2c18-40dc-8db5-00bbc2daca12@8bc65",
+        "__expectedType__": "cc.SpriteFrame"
+      }
+    ]
+  },
+  {
+    "__type__": "cc.AnimationClipAdditiveSettings",
+    "enabled": false,
+    "refClip": null
+  }
+]

+ 13 - 0
assets/resources/animation/buff_active/active_xi.anim.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "2.0.3",
+  "importer": "animation-clip",
+  "imported": true,
+  "uuid": "99e371f6-8127-447d-811a-afbbd881df18",
+  "files": [
+    ".cconb"
+  ],
+  "subMetas": {},
+  "userData": {
+    "name": "active_xi"
+  }
+}

+ 99 - 0
assets/resources/animation/buff_active/active_xing.anim

@@ -0,0 +1,99 @@
+[
+  {
+    "__type__": "cc.AnimationClip",
+    "_name": "active_xing",
+    "_objFlags": 0,
+    "__editorExtras__": {
+      "embeddedPlayerGroups": []
+    },
+    "_native": "",
+    "sample": 60,
+    "speed": 1,
+    "wrapMode": 1,
+    "enableTrsBlending": false,
+    "_duration": 0.35,
+    "_hash": 500763545,
+    "_tracks": [
+      {
+        "__id__": 1
+      }
+    ],
+    "_exoticAnimation": null,
+    "_events": [
+      {
+        "frame": 0.35,
+        "func": "",
+        "params": []
+      },
+      {
+        "frame": 0.35,
+        "func": "buff_free",
+        "params": []
+      }
+    ],
+    "_embeddedPlayers": [],
+    "_additiveSettings": {
+      "__id__": 6
+    },
+    "_auxiliaryCurveEntries": []
+  },
+  {
+    "__type__": "cc.animation.ObjectTrack",
+    "_binding": {
+      "__type__": "cc.animation.TrackBinding",
+      "path": {
+        "__id__": 2
+      },
+      "proxy": null
+    },
+    "_channel": {
+      "__id__": 4
+    }
+  },
+  {
+    "__type__": "cc.animation.TrackPath",
+    "_paths": [
+      {
+        "__id__": 3
+      },
+      "spriteFrame"
+    ]
+  },
+  {
+    "__type__": "cc.animation.ComponentPath",
+    "component": "cc.Sprite"
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 5
+    }
+  },
+  {
+    "__type__": "cc.ObjectCurve",
+    "_times": [
+      0,
+      0.16666666666666666,
+      0.3333333333333333
+    ],
+    "_values": [
+      {
+        "__uuid__": "9472800b-2c18-40dc-8db5-00bbc2daca12@bcd76",
+        "__expectedType__": "cc.SpriteFrame"
+      },
+      {
+        "__uuid__": "9472800b-2c18-40dc-8db5-00bbc2daca12@c37a0",
+        "__expectedType__": "cc.SpriteFrame"
+      },
+      {
+        "__uuid__": "9472800b-2c18-40dc-8db5-00bbc2daca12@c33ab",
+        "__expectedType__": "cc.SpriteFrame"
+      }
+    ]
+  },
+  {
+    "__type__": "cc.AnimationClipAdditiveSettings",
+    "enabled": false,
+    "refClip": null
+  }
+]

+ 13 - 0
assets/resources/animation/buff_active/active_xing.anim.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "2.0.3",
+  "importer": "animation-clip",
+  "imported": true,
+  "uuid": "58ff4db3-5a3e-4be5-a25b-77bea446d2cf",
+  "files": [
+    ".cconb"
+  ],
+  "subMetas": {},
+  "userData": {
+    "name": "active_xing"
+  }
+}

File diff suppressed because it is too large
+ 105 - 0
assets/resources/effect/game/11.plist


+ 70 - 0
assets/resources/effect/game/11.plist.meta

@@ -0,0 +1,70 @@
+{
+  "ver": "1.0.2",
+  "importer": "particle",
+  "imported": true,
+  "uuid": "94f84e54-44a2-47dc-9d31-4287521c5144",
+  "files": [
+    ".json",
+    ".plist"
+  ],
+  "subMetas": {},
+  "userData": {
+    "totalParticles": 200,
+    "life": 0.8,
+    "lifeVar": 0.4,
+    "emissionRate": 200,
+    "duration": 0.2,
+    "srcBlendFactor": 1,
+    "dstBlendFactor": 768,
+    "startColor": {
+      "_val": 3946435
+    },
+    "startColorVar": {
+      "_val": 4278190080
+    },
+    "endColor": {
+      "_val": 4282136515
+    },
+    "endColorVar": {
+      "_val": 4278190080
+    },
+    "startSize": 10,
+    "startSizeVar": 40,
+    "endSize": 20,
+    "endSizeVar": 40,
+    "positionType": 0,
+    "sourcePos": {
+      "x": 0,
+      "y": 0
+    },
+    "posVar": {
+      "x": 10,
+      "y": 10
+    },
+    "angle": 90,
+    "angleVar": 90,
+    "startSpin": 0,
+    "startSpinVar": 50,
+    "endSpin": 80,
+    "endSpinVar": 0,
+    "emitterMode": 0,
+    "gravity": {
+      "x": 100,
+      "y": -1500
+    },
+    "speed": 500,
+    "speedVar": 100,
+    "radialAccel": 0,
+    "radialAccelVar": 0,
+    "tangentialAccel": 0,
+    "tangentialAccelVar": 0,
+    "rotationIsDir": false,
+    "startRadius": 0,
+    "startRadiusVar": 0,
+    "endRadius": 0,
+    "endRadiusVar": 0,
+    "rotatePerS": 0,
+    "rotatePerSVar": 0,
+    "spriteFrameUuid": ""
+  }
+}

+ 139 - 0
assets/resources/effect/game/buff_active.plist

@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+    <dict>
+        <key>frames</key>
+        <dict>
+            <key>dun_1.png</key>
+            <dict>
+                <key>frame</key>
+                <string>{{2,498},{194,196}}</string>
+                <key>offset</key>
+                <string>{0,-2}</string>
+                <key>rotated</key>
+                <true/>
+                <key>sourceColorRect</key>
+                <string>{{53,54},{194,196}}</string>
+                <key>sourceSize</key>
+                <string>{300,300}</string>
+            </dict>
+            <key>dun_2.png</key>
+            <dict>
+                <key>frame</key>
+                <string>{{2,250},{246,256}}</string>
+                <key>offset</key>
+                <string>{1,-4}</string>
+                <key>rotated</key>
+                <true/>
+                <key>sourceColorRect</key>
+                <string>{{28,26},{246,256}}</string>
+                <key>sourceSize</key>
+                <string>{300,300}</string>
+            </dict>
+            <key>dun_3.png</key>
+            <dict>
+                <key>frame</key>
+                <string>{{2,836},{176,186}}</string>
+                <key>offset</key>
+                <string>{-28,27}</string>
+                <key>rotated</key>
+                <false/>
+                <key>sourceColorRect</key>
+                <string>{{34,30},{176,186}}</string>
+                <key>sourceSize</key>
+                <string>{300,300}</string>
+            </dict>
+            <key>xi_1.png</key>
+            <dict>
+                <key>frame</key>
+                <string>{{260,260},{196,198}}</string>
+                <key>offset</key>
+                <string>{1,1}</string>
+                <key>rotated</key>
+                <true/>
+                <key>sourceColorRect</key>
+                <string>{{53,50},{196,198}}</string>
+                <key>sourceSize</key>
+                <string>{300,300}</string>
+            </dict>
+            <key>xi_2.png</key>
+            <dict>
+                <key>frame</key>
+                <string>{{260,2},{246,256}}</string>
+                <key>offset</key>
+                <string>{-1,-5}</string>
+                <key>rotated</key>
+                <false/>
+                <key>sourceColorRect</key>
+                <string>{{26,27},{246,256}}</string>
+                <key>sourceSize</key>
+                <string>{300,300}</string>
+            </dict>
+            <key>xi_3.png</key>
+            <dict>
+                <key>frame</key>
+                <string>{{180,836},{182,188}}</string>
+                <key>offset</key>
+                <string>{-27,30}</string>
+                <key>rotated</key>
+                <true/>
+                <key>sourceColorRect</key>
+                <string>{{32,26},{182,188}}</string>
+                <key>sourceSize</key>
+                <string>{300,300}</string>
+            </dict>
+            <key>xing_1.png</key>
+            <dict>
+                <key>frame</key>
+                <string>{{260,458},{194,196}}</string>
+                <key>offset</key>
+                <string>{0,1}</string>
+                <key>rotated</key>
+                <true/>
+                <key>sourceColorRect</key>
+                <string>{{53,51},{194,196}}</string>
+                <key>sourceSize</key>
+                <string>{300,300}</string>
+            </dict>
+            <key>xing_2.png</key>
+            <dict>
+                <key>frame</key>
+                <string>{{2,2},{246,256}}</string>
+                <key>offset</key>
+                <string>{1,-4}</string>
+                <key>rotated</key>
+                <true/>
+                <key>sourceColorRect</key>
+                <string>{{28,26},{246,256}}</string>
+                <key>sourceSize</key>
+                <string>{300,300}</string>
+            </dict>
+            <key>xing_3.png</key>
+            <dict>
+                <key>frame</key>
+                <string>{{200,654},{180,190}}</string>
+                <key>offset</key>
+                <string>{-29,25}</string>
+                <key>rotated</key>
+                <true/>
+                <key>sourceColorRect</key>
+                <string>{{31,30},{180,190}}</string>
+                <key>sourceSize</key>
+                <string>{300,300}</string>
+            </dict>
+        </dict>
+        <key>metadata</key>
+        <dict>
+            <key>format</key>
+            <integer>2</integer>
+            <key>realTextureFileName</key>
+            <string>buff_active.png</string>
+            <key>size</key>
+            <string>{512,1024}</string>
+            <key>smartupdate</key>
+            <string>$TexturePacker:SmartUpdate:809c0411eeb7390eaa7d87d15783379f$</string>
+            <key>textureFileName</key>
+            <string>buff_active.png</string>
+        </dict>
+    </dict>
+</plist>

+ 431 - 0
assets/resources/effect/game/buff_active.plist.meta

@@ -0,0 +1,431 @@
+{
+  "ver": "1.0.8",
+  "importer": "sprite-atlas",
+  "imported": true,
+  "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {
+    "b128a": {
+      "importer": "sprite-frame",
+      "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12@b128a",
+      "displayName": "",
+      "id": "b128a",
+      "name": "dun_1",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": true,
+        "offsetX": 0,
+        "offsetY": -2,
+        "trimX": 2,
+        "trimY": 498,
+        "width": 194,
+        "height": 196,
+        "rawWidth": 300,
+        "rawHeight": 300,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [],
+          "indexes": [],
+          "uv": [],
+          "nuv": [],
+          "minPos": [],
+          "maxPos": []
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": "9472800b-2c18-40dc-8db5-00bbc2daca12"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "32ee6": {
+      "importer": "sprite-frame",
+      "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12@32ee6",
+      "displayName": "",
+      "id": "32ee6",
+      "name": "dun_2",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": true,
+        "offsetX": 1,
+        "offsetY": -4,
+        "trimX": 2,
+        "trimY": 250,
+        "width": 246,
+        "height": 256,
+        "rawWidth": 300,
+        "rawHeight": 300,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [],
+          "indexes": [],
+          "uv": [],
+          "nuv": [],
+          "minPos": [],
+          "maxPos": []
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": "9472800b-2c18-40dc-8db5-00bbc2daca12"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "5135e": {
+      "importer": "sprite-frame",
+      "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12@5135e",
+      "displayName": "",
+      "id": "5135e",
+      "name": "dun_3",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": -28,
+        "offsetY": 27,
+        "trimX": 2,
+        "trimY": 836,
+        "width": 176,
+        "height": 186,
+        "rawWidth": 300,
+        "rawHeight": 300,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [],
+          "indexes": [],
+          "uv": [],
+          "nuv": [],
+          "minPos": [],
+          "maxPos": []
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": "9472800b-2c18-40dc-8db5-00bbc2daca12"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "554c5": {
+      "importer": "sprite-frame",
+      "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12@554c5",
+      "displayName": "",
+      "id": "554c5",
+      "name": "xi_1",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": true,
+        "offsetX": 1,
+        "offsetY": 1,
+        "trimX": 260,
+        "trimY": 260,
+        "width": 196,
+        "height": 198,
+        "rawWidth": 300,
+        "rawHeight": 300,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [],
+          "indexes": [],
+          "uv": [],
+          "nuv": [],
+          "minPos": [],
+          "maxPos": []
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": "9472800b-2c18-40dc-8db5-00bbc2daca12"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f2f61": {
+      "importer": "sprite-frame",
+      "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12@f2f61",
+      "displayName": "",
+      "id": "f2f61",
+      "name": "xi_2",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": -1,
+        "offsetY": -5,
+        "trimX": 260,
+        "trimY": 2,
+        "width": 246,
+        "height": 256,
+        "rawWidth": 300,
+        "rawHeight": 300,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [],
+          "indexes": [],
+          "uv": [],
+          "nuv": [],
+          "minPos": [],
+          "maxPos": []
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": "9472800b-2c18-40dc-8db5-00bbc2daca12"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "8bc65": {
+      "importer": "sprite-frame",
+      "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12@8bc65",
+      "displayName": "",
+      "id": "8bc65",
+      "name": "xi_3",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": true,
+        "offsetX": -27,
+        "offsetY": 30,
+        "trimX": 180,
+        "trimY": 836,
+        "width": 182,
+        "height": 188,
+        "rawWidth": 300,
+        "rawHeight": 300,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [],
+          "indexes": [],
+          "uv": [],
+          "nuv": [],
+          "minPos": [],
+          "maxPos": []
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": "9472800b-2c18-40dc-8db5-00bbc2daca12"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "bcd76": {
+      "importer": "sprite-frame",
+      "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12@bcd76",
+      "displayName": "",
+      "id": "bcd76",
+      "name": "xing_1",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": true,
+        "offsetX": 0,
+        "offsetY": 1,
+        "trimX": 260,
+        "trimY": 458,
+        "width": 194,
+        "height": 196,
+        "rawWidth": 300,
+        "rawHeight": 300,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [],
+          "indexes": [],
+          "uv": [],
+          "nuv": [],
+          "minPos": [],
+          "maxPos": []
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": "9472800b-2c18-40dc-8db5-00bbc2daca12"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "c37a0": {
+      "importer": "sprite-frame",
+      "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12@c37a0",
+      "displayName": "",
+      "id": "c37a0",
+      "name": "xing_2",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": true,
+        "offsetX": 1,
+        "offsetY": -4,
+        "trimX": 2,
+        "trimY": 2,
+        "width": 246,
+        "height": 256,
+        "rawWidth": 300,
+        "rawHeight": 300,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [],
+          "indexes": [],
+          "uv": [],
+          "nuv": [],
+          "minPos": [],
+          "maxPos": []
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": "9472800b-2c18-40dc-8db5-00bbc2daca12"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "c33ab": {
+      "importer": "sprite-frame",
+      "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12@c33ab",
+      "displayName": "",
+      "id": "c33ab",
+      "name": "xing_3",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": true,
+        "offsetX": -29,
+        "offsetY": 25,
+        "trimX": 200,
+        "trimY": 654,
+        "width": 180,
+        "height": 190,
+        "rawWidth": 300,
+        "rawHeight": 300,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [],
+          "indexes": [],
+          "uv": [],
+          "nuv": [],
+          "minPos": [],
+          "maxPos": []
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": "9472800b-2c18-40dc-8db5-00bbc2daca12"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "atlasTextureName": "buff_active.png",
+    "format": 2,
+    "uuid": "9472800b-2c18-40dc-8db5-00bbc2daca12",
+    "textureUuid": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a"
+  }
+}

二進制
assets/resources/effect/game/buff_active.png


+ 134 - 0
assets/resources/effect/game/buff_active.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "d7b7c6c6-11a2-4b67-9186-45a836b9633e",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+      "displayName": "buff_active",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@f9941",
+      "displayName": "buff_active",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": -2,
+        "offsetY": 0,
+        "trimX": 2,
+        "trimY": 2,
+        "width": 504,
+        "height": 1020,
+        "rawWidth": 512,
+        "rawHeight": 1024,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -252,
+            -510,
+            0,
+            252,
+            -510,
+            0,
+            -252,
+            510,
+            0,
+            252,
+            510,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            2,
+            1022,
+            506,
+            1022,
+            2,
+            2,
+            506,
+            2
+          ],
+          "nuv": [
+            0.00390625,
+            0.001953125,
+            0.98828125,
+            0.001953125,
+            0.00390625,
+            0.998046875,
+            0.98828125,
+            0.998046875
+          ],
+          "minPos": [
+            -252,
+            -510,
+            0
+          ],
+          "maxPos": [
+            252,
+            510,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "d7b7c6c6-11a2-4b67-9186-45a836b9633e@f9941"
+  }
+}

+ 204 - 0
assets/resources/prefabs/buff_active_effect_item.prefab

@@ -0,0 +1,204 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "buff_active_effect_item",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "buff_active_effect_item",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 4
+      },
+      {
+        "__id__": 6
+      },
+      {
+        "__id__": 8
+      }
+    ],
+    "_prefab": {
+      "__id__": 10
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 3
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 194,
+      "height": 196
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "3f4h265WdEioWu+bUaxpzy"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 5
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "9472800b-2c18-40dc-8db5-00bbc2daca12@b128a",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "85od5xhtxKgoFGhtbWXA9G"
+  },
+  {
+    "__type__": "cc.Animation",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 7
+    },
+    "playOnLoad": false,
+    "_clips": [
+      {
+        "__uuid__": "c2ccb9a9-e4a0-4b31-9f89-971fe2a05b1b",
+        "__expectedType__": "cc.AnimationClip"
+      },
+      {
+        "__uuid__": "58ff4db3-5a3e-4be5-a25b-77bea446d2cf",
+        "__expectedType__": "cc.AnimationClip"
+      },
+      {
+        "__uuid__": "99e371f6-8127-447d-811a-afbbd881df18",
+        "__expectedType__": "cc.AnimationClip"
+      }
+    ],
+    "_defaultClip": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "dfoWjQRHJAupicybkN06hY"
+  },
+  {
+    "__type__": "f420fB/yhNCUYPoT5o8HSCl",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 9
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "f63/brJjlL4pI0qn0sKEba"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "51IEFc9T1BNK7EjpdZ0533",
+    "targetOverrides": null
+  }
+]

+ 13 - 0
assets/resources/prefabs/buff_active_effect_item.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "9f27d4b3-3b41-46ba-be70-dec23b307a80",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "buff_active_effect_item"
+  }
+}

File diff suppressed because it is too large
+ 292 - 133
assets/resources/prefabs/game.prefab


+ 329 - 0
assets/resources/prefabs/qiyou_effect_item.prefab

@@ -0,0 +1,329 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "qiyou_effect_item",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "qiyou_effect_item",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 8
+      },
+      {
+        "__id__": 10
+      }
+    ],
+    "_prefab": {
+      "__id__": 12
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Particle2D",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      }
+    ],
+    "_prefab": {
+      "__id__": 7
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 4
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "932VUZgaZByK3x1XasUeO2"
+  },
+  {
+    "__type__": "cc.ParticleSystem2D",
+    "_name": "Node<ParticleSystem2D>",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 6
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 1,
+    "_dstBlendFactor": 6,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "duration": 0.2,
+    "emissionRate": 200,
+    "life": 0.8,
+    "lifeVar": 0.4,
+    "angle": 90,
+    "angleVar": 90,
+    "startSize": 10,
+    "startSizeVar": 40,
+    "endSize": 20,
+    "endSizeVar": 40,
+    "startSpin": 0,
+    "startSpinVar": 50,
+    "endSpin": 80,
+    "endSpinVar": 0,
+    "sourcePos": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "posVar": {
+      "__type__": "cc.Vec2",
+      "x": 10,
+      "y": 10
+    },
+    "emitterMode": 0,
+    "gravity": {
+      "__type__": "cc.Vec2",
+      "x": 100,
+      "y": -1500
+    },
+    "speed": 500,
+    "speedVar": 100,
+    "tangentialAccel": 0,
+    "tangentialAccelVar": 0,
+    "radialAccel": 0,
+    "radialAccelVar": 0,
+    "rotationIsDir": false,
+    "startRadius": 100,
+    "startRadiusVar": 0,
+    "endRadius": 0,
+    "endRadiusVar": 0,
+    "rotatePerS": 0,
+    "rotatePerSVar": 0,
+    "playOnLoad": false,
+    "autoRemoveOnFinish": false,
+    "_preview": false,
+    "preview": false,
+    "_custom": false,
+    "_file": {
+      "__uuid__": "94f84e54-44a2-47dc-9d31-4287521c5144",
+      "__expectedType__": "cc.ParticleAsset"
+    },
+    "_spriteFrame": null,
+    "_totalParticles": 200,
+    "_startColor": {
+      "__type__": "cc.Color",
+      "r": 195,
+      "g": 55,
+      "b": 60,
+      "a": 0
+    },
+    "_startColorVar": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_endColor": {
+      "__type__": "cc.Color",
+      "r": 195,
+      "g": 55,
+      "b": 60,
+      "a": 255
+    },
+    "_endColorVar": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_positionType": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "2a3E7sLZNIG73U7J/CmWyo"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "6agFsH7YVOJa7pPXIYIy/s",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 9
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "97v4oQ20tPIJf0guZfSRj3"
+  },
+  {
+    "__type__": "347b4z2GeNJ2bOItZWHxrOm",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 11
+    },
+    "particle": {
+      "__id__": 5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "7ayfS/B91OBIXe4EcBGM61"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "51H4kn/StLC70wMrpMS4Io",
+    "instance": null,
+    "targetOverrides": null
+  }
+]

+ 13 - 0
assets/resources/prefabs/qiyou_effect_item.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "ab8fd265-1fc5-4b74-b825-afb5852b293a",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "qiyou_effect_item"
+  }
+}

+ 2 - 1
assets/script/data.ts

@@ -1,4 +1,4 @@
-import { Enum } from "cc";
+import { Enum, Vec3 } from "cc";
 
 export class model_item_data{
     public id:number = 0
@@ -15,6 +15,7 @@ export class model_content_item_data{
     public h:number = 0;
     public buff_type:number = -1;
     public item_type:number = -1;
+    public pos:Vec3 = null
 }
 
 export class settingData{

+ 5 - 1
assets/script/game/box.ts

@@ -65,6 +65,7 @@ export class box extends base {
 
             if(call!=null){
                 if(isUseBuff){
+                    this.mData.pos = this.getWorldPos()
                     call(this.mData,isKill,this.scores)
                 }else{
                     call()
@@ -114,11 +115,14 @@ export class box extends base {
         return this.active_node
     }
 
+    getWorldPos(){
+        return this.node.parent.getComponent(UITransform).convertToWorldSpaceAR(this.node.position)
+    }
     getIsCanCollider(){
         if(!this.node.active){
             return false
         }
-        let box_world=this.node.parent.getComponent(UITransform).convertToWorldSpaceAR(this.node.position)
+        let box_world=this.getWorldPos()
         let p = this.mCar.node.parent.getComponent(UITransform).convertToNodeSpaceAR(box_world)
         return Vec3.distance(p,this.mCar.node.position)<500
     }

+ 36 - 0
assets/script/game/buff/buff_active_effect_item.ts

@@ -0,0 +1,36 @@
+import { _decorator, Animation, Component, Node, tween, Vec3 } from 'cc';
+import { config } from '../../config';
+const { ccclass, property } = _decorator;
+
+@ccclass('buff_active_effect_item')
+export class buff_active_effect_item extends Component {
+    private mDis:Vec3 = Vec3.ZERO
+    private mFinishCb = null
+    public show(type:number,dis:Vec3,pos:Vec3,cb){
+        this.node.position = pos
+        this.mDis = dis;
+        this.mFinishCb = cb
+        switch (type) {
+            case config.SHOW_BUFF_STATUS.DUN:
+                this.node.getComponent(Animation).play("active_dun")
+            break;
+            case config.SHOW_BUFF_STATUS.XI:
+                this.node.getComponent(Animation).play("active_xi")
+            break;
+            case config.SHOW_BUFF_STATUS.XING:
+                this.node.getComponent(Animation).play("active_xing")
+            break;
+        }
+    }
+
+    public buff_free(){
+        tween(this.node).to(0.5,{position:this.mDis}).call(()=>{
+            if(this.mFinishCb!=null){
+                this.mFinishCb()
+                this.node.removeFromParent()
+            }
+        }).start()
+    }
+}
+
+

+ 9 - 0
assets/script/game/buff/buff_active_effect_item.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "f420f07f-ca13-4251-83e8-4f9a3c1d20a5",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 62 - 14
assets/script/game/car.ts

@@ -1,4 +1,4 @@
-import { _decorator, BoxCollider2D, CircleCollider2D, Collider2D, Component, Contact2DType, Director, director, IPhysics2DContact, Label, math, Node, ParticleSystem2D, PolygonCollider2D, Rect, RigidBody, RigidBody2D, Sprite, tween, Tween, UITransform, Vec2, Vec3, View } from 'cc';
+import { _decorator, BoxCollider2D, CircleCollider2D, Collider2D, Component, Contact2DType, Director, director, instantiate, IPhysics2DContact, Label, math, Node, ParticleSystem2D, PolygonCollider2D, Prefab, Rect, RigidBody, RigidBody2D, Sprite, tween, Tween, UITransform, Vec2, Vec3, View } from 'cc';
 import { wall } from './wall';
 import { box } from './box';
 import { coin } from './coin';
@@ -12,6 +12,7 @@ import { audioManager } from '../manager/audioManager';
 import { buff_manager } from './buff/buff_manager';
 import { hp_bar } from './hp_bar';
 import { GameManager } from '../GameManager';
+import { buff_active_effect_item } from './buff/buff_active_effect_item';
 const { ccclass, property } = _decorator;
 
 @ccclass('car')
@@ -45,6 +46,7 @@ export class car extends Component {
     private isStartGame:Boolean = false
     @property(Node) spr:Node = null
     @property(Node) hp_bar:Node = null
+    @property(Prefab) buff_active_effect_pf:Prefab = null
     @property(ParticleSystem2D) smoke_particle:ParticleSystem2D = null
     private mIsReLife:boolean = false
     public init(m:Node,cb,cb1,g:game,isReLife:boolean = false){
@@ -156,6 +158,10 @@ export class car extends Component {
             coin_node.getComponent(coin).removeSelf()
             this.hp+=coin_node.getComponent(coin).getAddHpNum()
             this.updateHp()
+
+            let box_world=coin_node.parent.getComponent(UITransform).convertToWorldSpaceAR(coin_node.position)
+            let p = this.node.parent.getComponent(UITransform).convertToNodeSpaceAR(box_world)
+            this.getGame().showQiYouEffect(p)
         }
     }
 
@@ -237,19 +243,50 @@ export class car extends Component {
             }
         }else{
             if(data!=null){
-                switch (data.buff_type) {
-                    case config.buff_type.dun:
-                        // console.log("获取buff 盾")
-                        this.buff_dun()
-                    break;
-                    case config.buff_type.xing:
-                        // console.log("获取buff 星")
-                        this.buff_xing()
-                    break;
-                    case config.buff_type.xi:
-                        // console.log("获取buff 吸")
-                        this.buff_xi()
-                    break;
+                if(data.buff_type!=-1){
+                    let buff_info = this.game_manager.getBuffShowView()
+                    let buff_active_node = instantiate(this.buff_active_effect_pf)
+                    buff_active_node.parent = buff_info.node.parent
+    
+                    console.log("data.buff_type::",data.buff_type)
+                    let box_p = buff_info.node.parent.getComponent(UITransform).convertToNodeSpaceAR(data.pos)
+                    switch (data.buff_type) {
+                        case config.buff_type.dun:
+                            // console.log("获取buff 盾")
+                            {
+                                let dis_node = buff_info.getBuffDun();
+                                let world = dis_node.parent.getComponent(UITransform).convertToWorldSpaceAR(dis_node.position)
+                                let p = buff_info.node.parent.getComponent(UITransform).convertToNodeSpaceAR(world)
+                                buff_active_node.getComponent(buff_active_effect_item).show(config.SHOW_BUFF_STATUS.DUN,p,box_p,()=>{
+                                    this.buff_dun()
+                                })
+                            }
+                         
+                        break;
+                        case config.buff_type.xing:
+                            // console.log("获取buff 星")
+                            {
+                                let dis_node = buff_info.getBuffXing();
+                                let world = dis_node.parent.getComponent(UITransform).convertToWorldSpaceAR(dis_node.position)
+                                let p = buff_info.node.parent.getComponent(UITransform).convertToNodeSpaceAR(world)
+                                buff_active_node.getComponent(buff_active_effect_item).show(config.SHOW_BUFF_STATUS.XING,p,box_p,()=>{
+                                    this.buff_xing()
+                                })
+                            }
+                        
+                        break;
+                        case config.buff_type.xi:
+                            // console.log("获取buff 吸")
+                            {
+                                let dis_node = buff_info.getBuffXi();
+                                let world = dis_node.parent.getComponent(UITransform).convertToWorldSpaceAR(dis_node.position)
+                                let p = buff_info.node.parent.getComponent(UITransform).convertToNodeSpaceAR(world)
+                                buff_active_node.getComponent(buff_active_effect_item).show(config.SHOW_BUFF_STATUS.XI,p,box_p,()=>{
+                                    this.buff_xi()
+                                })
+                            }
+                        break;
+                    }
                 }
             }
         }
@@ -407,6 +444,17 @@ export class car extends Component {
             // Vec3.lerp(this._curRingPos_1, this.node.position, new Vec3(x,y), 50 * dt);
 
             // this.node.setPosition(this._curRingPos_1);
+
+            if(this.carDir==DirType.LEFT){
+                if(x<=left){
+                    x = left
+                }
+            }
+            if(this.carDir==DirType.RIGHT){
+                if(x>=right){
+                    x = right
+                }
+            }
             this.node.setPosition(x,y)
             this.offsetY =Math.abs(this.origin_pos_y-y)
             let dir = new Vec3(this.map.position.x,-this.offsetY,this.map.position.z)

+ 6 - 0
assets/script/game/game.ts

@@ -19,6 +19,7 @@ import { count_time_start } from './count_time_start';
 import { weiqi_manager } from './effect/weiqi_manager';
 import { cheyin_manager } from './cheyin/cheyin_manager';
 import { boom_manager } from './boom/boom_manager';
+import { qiyou_manager } from './qiyou_manager';
 const { ccclass, property } = _decorator;
 
 @ccclass('game')
@@ -38,6 +39,7 @@ export class game extends Component {
     @property(weiqi_manager) mWeiqiManager:weiqi_manager = null
     @property(cheyin_manager) mCheyinManager:cheyin_manager = null
     @property(boom_manager) mBoomManager:boom_manager = null
+    @property(qiyou_manager) mQiYouManager:qiyou_manager = null
     private mCallBackHome = null
     private mIndex:number = 0;
     private mHeight:number = 0;
@@ -69,6 +71,7 @@ export class game extends Component {
         }
         this.mBoomManager.init(this.car.getComponent(car))
         this.mWeiqiManager.init(this.car.getComponent(car))
+        this.mQiYouManager.init(this.car.getComponent(car))
         this.mWeiqiManager.startEffect()
         this.mCheyinManager.init(this.car.getComponent(car))
         this.touch_node.getComponent(touch).init(this.car.getComponent(car))
@@ -98,6 +101,9 @@ export class game extends Component {
         this.mBoomManager.showBoom(box_p)
     }
 
+    public showQiYouEffect(qiyou_p:Vec3){
+        this.mQiYouManager.showQiYou(qiyou_p)
+    }
     public getPoolManager(){
         return this.game_pool_manager
     }

+ 29 - 0
assets/script/game/qiyou_effect_item.ts

@@ -0,0 +1,29 @@
+import { _decorator, Component, Node, ParticleSystem2D, tween, Vec3 } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('qiyou_effect_item')
+export class qiyou_effect_item extends Component {
+    @property(ParticleSystem2D) particle:ParticleSystem2D = null
+    private mIsCanUse:boolean = true
+    public init(){
+        this.node.active = false
+    }
+
+    public show(qiyou_p:Vec3){
+        this.node.active = true
+        this.node.position = new Vec3(qiyou_p.x,qiyou_p.y)
+        this.particle.resetSystem()
+        this.mIsCanUse = false
+        tween(this.node).delay(2).call(()=>{
+            this.mIsCanUse = true
+            this.node.active = false
+            this.particle.stopSystem()
+        }).start()
+    }
+
+    public IsCanUse(){
+        return this.mIsCanUse
+    }
+}
+
+

+ 9 - 0
assets/script/game/qiyou_effect_item.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "347b4cf6-19e3-49d9-b388-b59587c6b3a6",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 42 - 0
assets/script/game/qiyou_manager.ts

@@ -0,0 +1,42 @@
+import { _decorator, Component, instantiate, Node, Prefab, Vec3 } from 'cc';
+import { car } from './car';
+import { qiyou_effect_item } from './qiyou_effect_item';
+const { ccclass, property } = _decorator;
+
+@ccclass('qiyou_manager')
+export class qiyou_manager extends Component {
+    @property(Prefab) qiyou_pf:Prefab = null
+    private COUNT:number = 6
+    private mCar:car = null
+    public init(car:car){
+        this.mCar = car
+        this.node.removeAllChildren()
+        for (let index = 0; index < this.COUNT; index++) {
+            this.addItem()
+        }
+    }
+    addItem(){
+        let node = instantiate(this.qiyou_pf)
+        node.parent = this.node
+        node.getComponent(qiyou_effect_item).init()
+        return node
+    }
+    public getCanUseItem(){
+        for (let index = 0; index < this.node.children.length; index++) {
+            const node = this.node.children[index];
+            if(node.getComponent(qiyou_effect_item).IsCanUse()){
+                return node
+            }
+        }
+        return this.addItem()
+    }
+    public showQiYou(qiyou_pos:Vec3){
+        let qiyou = this.getCanUseItem()
+        qiyou.getComponent(qiyou_effect_item).show(qiyou_pos)
+    }
+    protected update(dt: number): void {
+        this.node.position = new Vec3(0,this.mCar.node.parent.position.y)
+    }
+}
+
+

+ 9 - 0
assets/script/game/qiyou_manager.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "faad9a11-7a4a-4340-b60e-8cbe20a1df7f",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

Some files were not shown because too many files changed in this diff