Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
boardgame_yyh
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
boardgame_yyh
Commits
e1309f86
Commit
e1309f86
authored
Jul 28, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9beace3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
boardgame_yyh.ts
assets/boardgame_yyh/scene/boardgame_yyh.ts
+10
-4
No files found.
assets/boardgame_yyh/scene/boardgame_yyh.ts
View file @
e1309f86
...
...
@@ -239,6 +239,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
bgNode
.
scale
=
this
.
_mapScaleMax
;
const
cover
=
cc
.
find
(
"
Canvas/cover
"
)
cover
.
scale
=
this
.
_mapScaleMax
;
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
addEventListener
(
dragonBones
.
EventObject
.
COMPLETE
,
()
=>
{
console
.
log
(
"
ani complite
"
);
...
...
@@ -499,7 +502,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
res
=
JSON
.
parse
(
res
);
}
this
.
log
(
"
++++++++++++ _coursewareEnd +++++++++++++++
"
);
this
.
log
(
"
pronunciation===
"
+
res
.
result
?.
pronunciation
);
this
.
log
(
"
发音分数:
pronunciation===
"
+
res
.
result
?.
pronunciation
);
this
.
_coursewareEnd
(
res
.
result
?.
pronunciation
||
0
,)
});
}
else
{
...
...
@@ -655,23 +658,26 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playLocalAudio
(
"
wrong
"
);
let
node
=
cc
.
find
(
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
let
pos
;
let
x
,
y
,
pos
;
if
(
this
.
_status
.
jump
)
{
pos
=
this
.
_cardList
[
this
.
_status
.
jump
].
position
;
x
=
pos
.
x
+
offset
;
y
=
pos
.
y
;
}
else
{
let
Idx
=
this
.
_status
[
this
.
_status
.
current
];
if
(
Idx
>=
0
)
{
pos
=
this
.
_cardList
[
Idx
].
position
;
}
else
{
pos
=
offset
>
0
?
this
.
_blueOriginPos
:
this
.
_redOriginPos
;
pos
.
x
-=
offset
;
x
=
pos
.
x
;
y
=
pos
.
y
;
}
console
.
log
(
"
now idx ==
"
+
Idx
);
}
await
asyncTweenTo
(
node
,
0.7
,
{
x
:
pos
.
x
+
offset
,
y
:
pos
.
y
},
{
x
:
x
,
y
:
y
},
{
easing
:
"
cubicOut
"
}
);
node
.
stopAllActions
();
...
...
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