Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DF-L208
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
DF-L208
Commits
dd585882
Commit
dd585882
authored
Apr 12, 2020
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善
parent
bff9d52f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
play.component.ts
src/app/play/play.component.ts
+19
-2
No files found.
src/app/play/play.component.ts
View file @
dd585882
...
@@ -700,7 +700,12 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -700,7 +700,12 @@ export class PlayComponent implements OnInit, OnDestroy {
if
(
ropeIndex
==
5
){
if
(
ropeIndex
==
5
){
ropeImgKey
=
ropeImgKey
+
"
5_l
"
;
ropeImgKey
=
ropeImgKey
+
"
5_l
"
;
}
}
else
if
(
ropeIndex
==
4
){
else
{
ropeImgKey
=
ropeImgKey
+
ropeIndex
;
}
}
else
if
(
this
.
data
.
exercises
.
length
==
5
){
if
(
ropeIndex
==
4
){
ropeImgKey
=
ropeImgKey
+
"
4_l
"
;
ropeImgKey
=
ropeImgKey
+
"
4_l
"
;
}
}
else
{
else
{
...
@@ -755,7 +760,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -755,7 +760,7 @@ export class PlayComponent implements OnInit, OnDestroy {
cardBaseboard
.
setSize
(
cardBack
.
getBoundingBox
().
width
,
cardBack
.
getBoundingBox
().
height
);
cardBaseboard
.
setSize
(
cardBack
.
getBoundingBox
().
width
,
cardBack
.
getBoundingBox
().
height
);
cardBaseboard
.
alpha
=
0
;
cardBaseboard
.
alpha
=
0
;
cardBaseboard
.
x
=
floor
.
cardX
-
cardBaseboard
.
getBoundingBox
().
width
/
2
;
cardBaseboard
.
x
=
floor
.
cardX
-
cardBaseboard
.
getBoundingBox
().
width
/
2
;
cardBaseboard
.
y
=
floor
.
startY
-
10
*
this
.
mapScale
;
cardBaseboard
.
y
=
floor
.
startY
-
7
*
this
.
mapScale
;
cardObj
.
baseboard
=
cardBaseboard
;
cardObj
.
baseboard
=
cardBaseboard
;
//卡片发光
//卡片发光
...
@@ -1086,6 +1091,18 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1086,6 +1091,18 @@ export class PlayComponent implements OnInit, OnDestroy {
}
}
else
{
else
{
//停止所有的音效
for
(
let
i
=
0
;
i
<
this
.
exercisesArr
.
length
;
++
i
){
let
card
=
this
.
exercisesArr
[
i
];
let
audio
=
this
.
audioObj
[
card
.
audioUrl
];
audio
.
pause
();
audio
.
currentTime
=
0
;
}
this
.
playAudio
(
card
.
audioUrl
);
this
.
playAudio
(
card
.
audioUrl
);
}
}
}
}
...
...
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