Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
1d037462
Commit
1d037462
authored
Apr 29, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整黑洞动画
parent
f150c840
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
wormhole.svga
egret/resource/assets/svgas/wormhole.svga
+0
-0
WormHole.ts
egret/src/something/class/WormHole.ts
+8
-3
No files found.
egret/resource/assets/svgas/wormhole.svga
View file @
1d037462
No preview for this file type
egret/src/something/class/WormHole.ts
View file @
1d037462
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment