Commit b57ab069 authored by wjf's avatar wjf

l

parent 88626e48
......@@ -66,8 +66,8 @@ export class PropGuideInt extends egret.DisplayObjectContainer {
this.addChild(this.boomAni)
this.hammerAni = new HammerAni();
this.hammerAni.visible = false;
this.hammerAni.x = 380 + 15;
this.hammerAni.y = 1110 + 15;
this.hammerAni.x = 380 + 24;
this.hammerAni.y = 1110 + 36;
this.addChild(this.hammerAni)
this.shoeANi = new ShoeAni();
this.shoeANi.visible = false;
......@@ -287,9 +287,10 @@ class BoomAni extends egret.Bitmap {
this.scaleY = 1;
egret.Tween.removeTweens(this);
egret.Tween.get(this, { loop: true })
.to({ scaleX: 1.2, scaleY: 1.2 }, 500)
.to({ scaleX: 1, scaleY: 1 }, 500)
.wait(500)
.to({ scaleX: 0.91, scaleY: 0.91 }, 300)
.to({ scaleX: 1.06, scaleY: 1.06 }, 100)
.to({ scaleX: 1, scaleY: 1 }, 50)
.wait(150)
}
stop() {
this.scaleX = 1;
......@@ -306,19 +307,26 @@ class HammerAni extends egret.Bitmap {
super();
this.touchEnabled = true;
this.texture = RES.getRes("guidePropHammer_png");
this.anchorOffsetX = 60 + 15;
this.anchorOffsetY = 60 + 15;
this.anchorOffsetX = 60 + 24;
this.anchorOffsetY = 60 + 36;
// this.addEventListener(egret.Event.REMOVED_FROM_STAGE, () => {
// egret.Tween.removeTweens(this);
// }, this)
}
play() {
this.x = 404;
this.y = 1146;
this.rotation = 0;
egret.Tween.removeTweens(this);
egret.Tween.get(this, { loop: true })
.to({ rotation: 15 }, 500)
.to({ rotation: 0 }, 500)
.wait(500)
.to({ x: 404 - 6, y: 1146 - 12 }, 100)
.to({ x: 404, y: 1146 }, 100)
.wait(300)
egret.Tween.get(this, { loop: true })
.to({ rotation: 17 }, 100)
.to({ rotation: -21 }, 100)
.to({ rotation: 4 }, 50)
.wait(250)
}
stop() {
this.rotation = 0;
......@@ -342,11 +350,21 @@ class ShoeAni extends egret.Bitmap {
}
play() {
this.rotation = 0;
this.x = 570;
this.y = 1100;
egret.Tween.removeTweens(this);
egret.Tween.get(this, { loop: true })
.to({ rotation: 30 }, 500)
.to({ rotation: 0 }, 500)
.wait(500)
.set({ rotation: 0 })
.to({ rotation: 11 }, 200)
.to({ rotation: -3 }, 100)
.to({ rotation: -8 }, 50)
.wait(600)
egret.Tween.get(this, { loop: true })
.to({ x: 570 + 9, y: 1100 - 18 }, 200)
.to({ x: 570, y: 1100 }, 100)
.wait(650)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment