Browse Source

主界面气泡动画

zouyong 5 years ago
parent
commit
d0520d0a48
3 changed files with 22 additions and 10 deletions
  1. 12 0
      assets/res/audio.meta
  2. 7 7
      assets/resources/game/prefab/game.prefab
  3. 3 3
      assets/script/game/game/Game.ts

+ 12 - 0
assets/res/audio.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "160477ed-e2d0-4ee6-95f7-965820ef4f7d",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 7 - 7
assets/resources/game/prefab/game.prefab

@@ -2321,7 +2321,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "07FsSUsVNOeq+HVaU9G1rV",
+    "fileId": "bbFxMpFP9EHbfUqFMsYpCA",
     "sync": false
   },
   {
@@ -5551,8 +5551,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 683,
-      "height": 692
+      "width": 485.48,
+      "height": 443.28
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -5564,7 +5564,7 @@
       "ctor": "Float64Array",
       "array": [
         0,
-        -169.145,
+        -300,
         0,
         0,
         0,
@@ -5603,7 +5603,7 @@
     ],
     "paused": false,
     "defaultSkin": "default",
-    "defaultAnimation": "animation",
+    "defaultAnimation": "idle",
     "_preCacheMode": 0,
     "_cacheMode": 0,
     "loop": true,
@@ -5614,13 +5614,13 @@
     "_frameCache": null,
     "_curFrame": null,
     "_skeletonCache": null,
-    "_animationName": "animation",
+    "_animationName": "idle",
     "_animationQueue": [],
     "_headAniInfo": null,
     "_playTimes": 0,
     "_isAniComplete": true,
     "_N$skeletonData": {
-      "__uuid__": "79de3169-75ed-43f8-abaf-8a5a9b38b727"
+      "__uuid__": "8f090d5d-cfa1-40d6-bcce-014cc1aa881e"
     },
     "_N$_defaultCacheMode": 0,
     "_N$debugSlots": false,

+ 3 - 3
assets/script/game/game/Game.ts

@@ -52,9 +52,9 @@ export default class Game extends cc.Component {
     }
 
     private initQiPaos() {
-        cc.tween(this.btn_getRed1).to(2, { y: 100 }).to(2, { y: 0 }).repeatForever().start();
-        cc.tween(this.btn_getRed2).delay(0.3).to(2, { y: 100 }).to(2, { y: 0 }).repeatForever().start();
-        cc.tween(this.btn_getRed3).delay(0.6).to(2, { y: -50 }).to(2, { y: -150 }).repeatForever().start();
+        cc.tween(this.btn_getRed1).to(2, { y: 100 }).to(2, { y: 0 }).union().repeatForever().start();
+        cc.tween(this.btn_getRed2).delay(0.3).to(2, { y: 100 }).to(2, { y: 0 }).union().repeatForever().start();
+        cc.tween(this.btn_getRed3).delay(0.6).to(2, { y: -50 }).to(2, { y: -150 }).union().repeatForever().start();
     }
 
     //测试道具获取效果