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
c0a4b445
Commit
c0a4b445
authored
Jul 30, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
78d981b1
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
211 additions
and
149 deletions
+211
-149
boardgame_yyh.fire
assets/boardgame_yyh/scene/boardgame_yyh.fire
+201
-139
boardgame_yyh.ts
assets/boardgame_yyh/scene/boardgame_yyh.ts
+10
-10
No files found.
assets/boardgame_yyh/scene/boardgame_yyh.fire
View file @
c0a4b445
This diff is collapsed.
Click to expand it.
assets/boardgame_yyh/scene/boardgame_yyh.ts
View file @
c0a4b445
...
...
@@ -239,9 +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
.
width
=
cc
.
winSize
.
width
;
cover
.
height
=
cc
.
winSize
.
height
;
this
.
cover
.
width
=
cc
.
winSize
.
width
;
this
.
cover
.
height
=
cc
.
winSize
.
height
;
this
.
cover
.
getChildByName
(
"
bg
"
).
scale
=
this
.
_mapScaleMax
;
const
endRoot
=
cc
.
find
(
"
Canvas/endRoot
"
)
endRoot
.
scale
=
this
.
_mapScaleMax
;
...
...
@@ -472,12 +472,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
async
openCoursView
(
node
,
word
)
{
this
.
cover
.
active
=
true
;
let
probar
=
this
.
cover
.
getChildByName
(
"
probar
"
);
let
pass
=
this
.
cover
.
getChildByName
(
"
pass
"
);
let
loss
=
this
.
cover
.
getChildByName
(
"
loss
"
);
this
.
cover
.
getChildByName
(
"
bar
"
).
removeAllChildren
();
let
probar
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
probar
"
);
let
pass
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
pass
"
);
let
loss
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
loss
"
);
this
.
cover
.
getChildByName
(
"
b
g
"
).
getChildByName
(
"
b
ar
"
).
removeAllChildren
();
let
icon
=
cc
.
instantiate
(
node
);
icon
.
parent
=
this
.
cover
.
getChildByName
(
"
bar
"
);
icon
.
parent
=
this
.
cover
.
getChildByName
(
"
b
g
"
).
getChildByName
(
"
b
ar
"
);
icon
.
x
=
0
;
icon
.
y
=
0
;
icon
.
scale
=
1
;
...
...
@@ -542,7 +542,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
log
(
"
测评分数:
"
+
score
);
if
(
score
>=
70
)
{
let
pass
=
this
.
cover
.
getChildByName
(
"
pass
"
);
let
pass
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
pass
"
);
pass
.
active
=
true
;
pass
.
scale
=
0
;
cc
.
tween
(
pass
).
to
(
0.3
,
{
scale
:
0.5
},
{
easing
:
"
cubicIn
"
}).
start
();
...
...
@@ -559,7 +559,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
{
let
loss
=
this
.
cover
.
getChildByName
(
"
loss
"
);
let
loss
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
loss
"
);
loss
.
active
=
true
;
loss
.
scale
=
0
;
cc
.
tween
(
loss
).
to
(
0.3
,
{
scale
:
0.5
},
{
easing
:
"
cubicIn
"
}).
start
();
...
...
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