Commit 1d037462 authored by zjz1994's avatar zjz1994

调整黑洞动画

parent f150c840
...@@ -41,8 +41,13 @@ export default class WormHole extends egret.Sprite{ ...@@ -41,8 +41,13 @@ export default class WormHole extends egret.Sprite{
} }
createWormHole(){ createWormHole(){
this.wormHoleClip = new window["SVGA"].EgretMovieClip(wormvideo); this.wormHoleClip = new window["SVGA"].EgretMovieClip(wormvideo);
var mvwidth = 82;
var mvheight = 82; var mscale = 1.08
this.wormHoleClip.scaleX = mscale;
this.wormHoleClip.scaleY = mscale;
var mvwidth = 78*mscale;
var mvheight = 78*mscale;
this.wormHoleClip.x = -mvwidth/2; this.wormHoleClip.x = -mvwidth/2;
this.wormHoleClip.y = -mvwidth/2; this.wormHoleClip.y = -mvwidth/2;
this.addChild(this.wormHoleClip); this.addChild(this.wormHoleClip);
...@@ -52,7 +57,7 @@ export default class WormHole extends egret.Sprite{ ...@@ -52,7 +57,7 @@ export default class WormHole extends egret.Sprite{
} }
toFrameAni(){ toFrameAni(){
var curframe = this.wormHoleClip.currentFrame; var curframe = this.wormHoleClip.currentFrame;
if(curframe==123){ if(curframe==81){
var endtime = new Date().getTime(); var endtime = new Date().getTime();
// console.log("passtime",endtime-this.playtime); // console.log("passtime",endtime-this.playtime);
this.wormHoleClip.gotoAndStop(1); this.wormHoleClip.gotoAndStop(1);
......
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