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
b6fcd9a7
Commit
b6fcd9a7
authored
Sep 04, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0f73eef7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+13
-0
No files found.
egret/src/mapScene/MapScene.ts
View file @
b6fcd9a7
...
...
@@ -300,14 +300,27 @@ export default class MapScene extends Scene {
this
[
'boxLayer'
].
visible
=
true
;
this
.
_mc
=
await
loadSvga
(
getResPath
()
+
'resource/assets/svgas/box.svga'
,
this
[
'boxani'
]);
this
.
_mc
.
stop
();
this
.
_mc
.
anchorOffsetX
=
750
/
2
;
this
.
_mc
.
anchorOffsetY
=
500
+
50
+
30
;
this
.
_mc
.
x
=
750
/
2
;
this
.
_mc
.
y
=
500
+
50
+
30
;
this
.
_mc
.
visible
=
false
;
await
wait
(
50
);
this
.
_mc
.
visible
=
true
;
const
a
=
100
,
b
=
10
;
egret
.
Tween
.
get
(
this
.
_mc
,{
loop
:
true
}).
set
({
rotation
:
b
})
.
to
({
rotation
:
-
b
},
a
).
to
({
rotation
:
b
},
a
)
.
to
({
rotation
:
-
b
},
a
).
to
({
rotation
:
b
},
a
)
.
to
({
rotation
:
-
b
},
a
).
to
({
rotation
:
b
},
a
)
.
to
({
rotation
:
0
},
a
/
2
)
.
wait
(
1000
);
}
}
async
playAni
()
{
if
(
this
.
_mc
)
{
egret
.
Tween
.
removeTweens
(
this
.
_mc
);
this
.
_mc
.
gotoAndPlay
(
1
,
true
);
await
this
.
onPlaySTOP
();
}
...
...
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