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
b57ab069
Commit
b57ab069
authored
Sep 12, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
88626e48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
13 deletions
+31
-13
PropGuide.ts
egret/src/mainScene/PropGuide.ts
+31
-13
No files found.
egret/src/mainScene/PropGuide.ts
View file @
b57ab069
...
...
@@ -66,8 +66,8 @@ export class PropGuideInt extends egret.DisplayObjectContainer {
this
.
addChild
(
this
.
boomAni
)
this
.
hammerAni
=
new
HammerAni
();
this
.
hammerAni
.
visible
=
false
;
this
.
hammerAni
.
x
=
380
+
15
;
this
.
hammerAni
.
y
=
1110
+
15
;
this
.
hammerAni
.
x
=
380
+
24
;
this
.
hammerAni
.
y
=
1110
+
36
;
this
.
addChild
(
this
.
hammerAni
)
this
.
shoeANi
=
new
ShoeAni
();
this
.
shoeANi
.
visible
=
false
;
...
...
@@ -287,9 +287,10 @@ class BoomAni extends egret.Bitmap {
this
.
scaleY
=
1
;
egret
.
Tween
.
removeTweens
(
this
);
egret
.
Tween
.
get
(
this
,
{
loop
:
true
})
.
to
({
scaleX
:
1.2
,
scaleY
:
1.2
},
500
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
500
)
.
wait
(
500
)
.
to
({
scaleX
:
0.91
,
scaleY
:
0.91
},
300
)
.
to
({
scaleX
:
1.06
,
scaleY
:
1.06
},
100
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
50
)
.
wait
(
150
)
}
stop
()
{
this
.
scaleX
=
1
;
...
...
@@ -306,19 +307,26 @@ class HammerAni extends egret.Bitmap {
super
();
this
.
touchEnabled
=
true
;
this
.
texture
=
RES
.
getRes
(
"guidePropHammer_png"
);
this
.
anchorOffsetX
=
60
+
15
;
this
.
anchorOffsetY
=
60
+
15
;
this
.
anchorOffsetX
=
60
+
24
;
this
.
anchorOffsetY
=
60
+
36
;
// this.addEventListener(egret.Event.REMOVED_FROM_STAGE, () => {
// egret.Tween.removeTweens(this);
// }, this)
}
play
()
{
this
.
x
=
404
;
this
.
y
=
1146
;
this
.
rotation
=
0
;
egret
.
Tween
.
removeTweens
(
this
);
egret
.
Tween
.
get
(
this
,
{
loop
:
true
})
.
to
({
rotation
:
15
},
500
)
.
to
({
rotation
:
0
},
500
)
.
wait
(
500
)
.
to
({
x
:
404
-
6
,
y
:
1146
-
12
},
100
)
.
to
({
x
:
404
,
y
:
1146
},
100
)
.
wait
(
300
)
egret
.
Tween
.
get
(
this
,
{
loop
:
true
})
.
to
({
rotation
:
17
},
100
)
.
to
({
rotation
:
-
21
},
100
)
.
to
({
rotation
:
4
},
50
)
.
wait
(
250
)
}
stop
()
{
this
.
rotation
=
0
;
...
...
@@ -342,11 +350,21 @@ class ShoeAni extends egret.Bitmap {
}
play
()
{
this
.
rotation
=
0
;
this
.
x
=
570
;
this
.
y
=
1100
;
egret
.
Tween
.
removeTweens
(
this
);
egret
.
Tween
.
get
(
this
,
{
loop
:
true
})
.
to
({
rotation
:
30
},
500
)
.
to
({
rotation
:
0
},
500
)
.
wait
(
500
)
.
set
({
rotation
:
0
})
.
to
({
rotation
:
11
},
200
)
.
to
({
rotation
:
-
3
},
100
)
.
to
({
rotation
:
-
8
},
50
)
.
wait
(
600
)
egret
.
Tween
.
get
(
this
,
{
loop
:
true
})
.
to
({
x
:
570
+
9
,
y
:
1100
-
18
},
200
)
.
to
({
x
:
570
,
y
:
1100
},
100
)
.
wait
(
650
)
}
}
...
...
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