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
516eedb9
Commit
516eedb9
authored
Apr 28, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整动效,调整烟花层级
parent
02d4da10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
doWormHoleAI.ts
egret/src/mainScene/doWormHoleAI.ts
+7
-7
Element.ts
egret/src/something/class/Element.ts
+1
-1
No files found.
egret/src/mainScene/doWormHoleAI.ts
View file @
516eedb9
...
@@ -73,22 +73,22 @@ const tweenAnisp = function(sp:egret.DisplayObject,posx:number,posy:number,latti
...
@@ -73,22 +73,22 @@ const tweenAnisp = function(sp:egret.DisplayObject,posx:number,posy:number,latti
// console.log("翻转检查",norscaleX,norscaleY);
// console.log("翻转检查",norscaleX,norscaleY);
var
pro
=
new
Promise
(
function
(
resolve
,
reject
){
var
pro
=
new
Promise
(
function
(
resolve
,
reject
){
egret
.
Tween
.
get
(
sp
)
egret
.
Tween
.
get
(
sp
)
.
wait
(
1
3
00
)
.
wait
(
1
1
00
)
.
to
({
.
to
({
alpha
:
0
alpha
:
0
},
70
0
,
egret
.
Ease
.
quadOut
)
},
65
0
,
egret
.
Ease
.
quadOut
)
.
wait
(
2
00
)
.
wait
(
1
00
)
.
to
({
.
to
({
alpha
:
startalpha
alpha
:
startalpha
},
70
0
,
egret
.
Ease
.
quadOut
);
},
65
0
,
egret
.
Ease
.
quadOut
);
egret
.
Tween
.
get
(
sp
)
egret
.
Tween
.
get
(
sp
)
.
wait
(
1
3
00
)
.
wait
(
1
1
00
)
.
to
({
.
to
({
scaleX
:
0.2
,
scaleX
:
0.2
,
scaleY
:
0.2
,
scaleY
:
0.2
,
rotation
:
180
rotation
:
180
},
8
00
,
egret
.
Ease
.
quadOut
)
},
7
00
,
egret
.
Ease
.
quadOut
)
.
call
(()
=>
{
.
call
(()
=>
{
sp
.
x
=
posx
;
sp
.
x
=
posx
;
sp
.
y
=
posy
;
sp
.
y
=
posy
;
...
@@ -97,7 +97,7 @@ const tweenAnisp = function(sp:egret.DisplayObject,posx:number,posy:number,latti
...
@@ -97,7 +97,7 @@ const tweenAnisp = function(sp:egret.DisplayObject,posx:number,posy:number,latti
scaleX
:
norscaleX
,
scaleX
:
norscaleX
,
scaleY
:
norscaleY
,
scaleY
:
norscaleY
,
rotation
:
360
rotation
:
360
},
8
00
,
egret
.
Ease
.
quadOut
)
},
7
00
,
egret
.
Ease
.
quadOut
)
.
call
(()
=>
{
.
call
(()
=>
{
sp
.
rotation
=
0
;
sp
.
rotation
=
0
;
resolve
();
resolve
();
...
...
egret/src/something/class/Element.ts
View file @
516eedb9
...
@@ -120,7 +120,7 @@ export class Element extends eui.Component {
...
@@ -120,7 +120,7 @@ export class Element extends eui.Component {
}
}
this
.
_fireworks
.
x
=
this
.
x
;
this
.
_fireworks
.
x
=
this
.
x
;
this
.
_fireworks
.
y
=
this
.
y
+
3
;
this
.
_fireworks
.
y
=
this
.
y
+
3
;
thisobj
.
addChild
(
this
.
_fireworks
);
thisobj
.
effectContainer
.
addChild
(
this
.
_fireworks
);
this
.
_fireworks
.
gotoAndStop
(
1
);
this
.
_fireworks
.
gotoAndStop
(
1
);
}
}
toFireworksAction
(
start
,
end
)
{
toFireworksAction
(
start
,
end
)
{
...
...
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