|
|
@@ -30,7 +30,7 @@ export default class Game extends cc.Component {
|
|
|
icon_hb: cc.Node = null;
|
|
|
@property({ type: cc.Node, displayName: "金猪币图标" })
|
|
|
icon_zb: cc.Node = null;
|
|
|
-
|
|
|
+
|
|
|
onLoad() {
|
|
|
gData.gameData.gameStyle = this;
|
|
|
mk.ui.closePanel("login");
|
|
|
@@ -56,9 +56,14 @@ export default class Game extends cc.Component {
|
|
|
}
|
|
|
|
|
|
private initQiPaos() {
|
|
|
- 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();
|
|
|
+ mk.tween.scale(this.btn_getRed1, 0.6, 0, 1, null, 'backOut');
|
|
|
+ mk.tween.scale(this.btn_getRed2, 0.6, 0, 1, null, 'backOut');
|
|
|
+ mk.tween.scale(this.btn_getRed3, 0.6, 0, 1, null, 'backOut');
|
|
|
+
|
|
|
+ let easing_type = '';//sineInOut
|
|
|
+ cc.tween(this.btn_getRed1).to(1.2, { y: 100 }, { easing: easing_type }).to(1.2, { y: 50 }, { easing: easing_type }).union().repeatForever().start();
|
|
|
+ cc.tween(this.btn_getRed2).delay(0.2).to(1.5, { y: 125 }, { easing: easing_type }).to(1.5, { y: 50 }, { easing: easing_type }).union().repeatForever().start();
|
|
|
+ cc.tween(this.btn_getRed3).delay(0.4).to(1, { y: 10 }, { easing: easing_type }).to(1, { y: -50 }, { easing: easing_type }).union().repeatForever().start();
|
|
|
}
|
|
|
|
|
|
private initInfo() {
|