Commit d9dbc4b7 authored by Chen Jiping's avatar Chen Jiping

fix:调整最后显示的大小,去掉翻页音效

parent c2ae5ac9
......@@ -21,7 +21,7 @@ export class Celebrate{
const bg = new ShapeRect();
this.bg = bg;
bg.alpha = 0;
bg.alpha = 1;
this.initPic();
}
......@@ -52,7 +52,6 @@ export class Celebrate{
show(mapscale = 1, callback = null){
let tempScale = mapscale;
this.pic.setScaleXY(0);
......@@ -62,13 +61,13 @@ export class Celebrate{
playAudio(this.audioObj['celebrate'], true);
tweenChange(this.pic, {scaleX : tempScale, scaleY : tempScale}, 0.5, ()=>{
tweenChange(this.smallStar, {scaleX : tempScale * 1.3, scaleY : tempScale * 1.3}, 0.3, ()=>{
tweenChange(this.smallStar, {scaleX : tempScale, scaleY : tempScale}, 0.3)
tweenChange(this.pic, {scaleX : 1, scaleY : 1}, 0.5, ()=>{
tweenChange(this.smallStar, {scaleX : 1 * 1.3, scaleY : 1 * 1.3}, 0.3, ()=>{
tweenChange(this.smallStar, {scaleX : 1, scaleY : 1}, 0.3)
});
tweenChange(this.bigStar, {scaleX : tempScale * 1.3, scaleY : tempScale * 1.3}, 0.3, ()=>{
tweenChange(this.bigStar, {scaleX : tempScale, scaleY : tempScale}, 0.3, callback)
tweenChange(this.bigStar, {scaleX : 1 * 1.3, scaleY : 1 * 1.3}, 0.3, ()=>{
tweenChange(this.bigStar, {scaleX : 1, scaleY : 1}, 0.3, callback)
});
})
}
......
......@@ -842,7 +842,7 @@ export class PlayComponent implements OnInit, OnDestroy {
const audio = this.audioObj['exercises_' + this.curIndex];
this.stage.audioAni.playAudio(audio);
if(this.curIndex != 0){
this.playAudio('switch', true);
}
});
......
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