Commit 658f15fc authored by wjf's avatar wjf

l

parent db21dcd0
......@@ -274,7 +274,7 @@ export default class MainBase extends eui.UILayer {
RES.getResAsync('chocolateFour_png');
RES.getResAsync('redbombParticle_png');
for (var i = 1; i < 19; i++) {
for (var i = 1; i < 18; i++) {
RES.getResAsync("boom" + i + "_png")
}
for (var i = 0; i < 5; i++) {
......
This diff is collapsed.
......@@ -11,9 +11,11 @@ export class BoomAni extends Ani {
super();
this.aniName = "BoomAni";
var arr = []
for (var i = 1; i < 19; i++) {
arr.push(null);
for (var i = 1; i < 18; i++) {
arr.push("boom" + i + "_png");
}
arr.push(null,null);
this.showImage = new ImageAni(arr);
this.addChild(this.showImage);
}
......
......@@ -16,20 +16,21 @@ export class ThreeCrossAni extends Ani {
constructor() {
super()
this.aniName = "ThreeCrossAni";
var texture: egret.Texture = RES.getRes("lineLight_png")
for (var i = 1; i < 4; i++) {
var showImage = new eui.Image("lineLight_png");
var showImage = new eui.Image(texture);
this.addChild(showImage);
showImage.anchorOffsetX = 147 / 2;
showImage.anchorOffsetY = 690;
showImage.anchorOffsetX = texture.textureWidth / 2;
showImage.anchorOffsetY = texture.textureHeight / 2;
showImage.x = (i - 2) * Tool.height;
showImage.scaleY = 0.1;
this["showImage" + i] = showImage
}
for (var i = 4; i < 7; i++) {
var showImage = new eui.Image("lineLight_png");
var showImage = new eui.Image(texture);
this.addChild(showImage);
showImage.anchorOffsetX = 147 / 2;
showImage.anchorOffsetY = 690;
showImage.anchorOffsetX = texture.textureWidth / 2;
showImage.anchorOffsetY = texture.textureHeight / 2;
showImage.y = (i - 5) * Tool.width;
showImage.scaleY = 0.1;
showImage.rotation = 90;
......@@ -44,14 +45,14 @@ export class ThreeCrossAni extends Ani {
this["showImage" + i].alpha = 1;
if (i == 6) {
egret.Tween.get(this["showImage" + i])
.to({ scaleY: 1.2 }, 300)
.to({ scaleY: 2.4 }, 300)
.to({ alpha: 0 }, 100)
.call(() => {
this.recover();
})
} else {
egret.Tween.get(this["showImage" + i])
.to({ scaleY: 1.2 }, 300)
.to({ scaleY: 2.4 }, 300)
.to({ alpha: 0 }, 100)
}
......
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