Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SN11
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
SN11
Commits
6287e5e7
Commit
6287e5e7
authored
Sep 21, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
486a8399
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3212 additions
and
35 deletions
+3212
-35
SN11.fire
assets/SN11/scene/SN11.fire
+1588
-3
SN11.js
assets/SN11/scene/SN11.js
+10
-1
SN11_end.fire
assets/SN11/scene/SN11_end.fire
+1593
-21
SN11_end.js
assets/SN11/scene/SN11_end.js
+21
-10
No files found.
assets/SN11/scene/SN11.fire
View file @
6287e5e7
This diff is collapsed.
Click to expand it.
assets/SN11/scene/SN11.js
View file @
6287e5e7
...
@@ -183,7 +183,16 @@ cc.Class({
...
@@ -183,7 +183,16 @@ cc.Class({
console
.
log
(
'
showGameOver
'
);
console
.
log
(
'
showGameOver
'
);
// this.moveGrassInterval
// this.moveGrassInterval
clearInterval
(
this
.
moveGrassInterval
);
clearInterval
(
this
.
moveGrassInterval
);
cc
.
director
.
loadScene
(
'
SN11_end
'
);
// cc.director.loadScene('SN11_end');
this
.
showEnd
();
},
showEnd
()
{
const
endLayer
=
cc
.
find
(
"
Canvas/game_end
"
);
endLayer
.
zIndex
=
99
;
endLayer
.
active
=
true
;
},
},
nextQuestion
()
{
nextQuestion
()
{
...
...
assets/SN11/scene/SN11_end.fire
View file @
6287e5e7
This diff is collapsed.
Click to expand it.
assets/SN11/scene/SN11_end.js
View file @
6287e5e7
...
@@ -37,10 +37,10 @@ cc.Class({
...
@@ -37,10 +37,10 @@ cc.Class({
async
start
()
{
async
start
()
{
cc
.
audioEngine
.
play
(
this
[
'
结束
'
]);
cc
.
audioEngine
.
play
(
this
[
'
结束
'
]);
const
btnRestart
=
cc
.
find
(
'
Canvas/BtnRestart
'
);
const
btnRestart
=
cc
.
find
(
'
Canvas/
game_end/
BtnRestart
'
);
btnRestart
.
active
=
false
;
btnRestart
.
active
=
false
;
btnRestart
.
opacity
=
0
;
btnRestart
.
opacity
=
0
;
const
nodeCharactor
=
cc
.
find
(
'
Canvas/NodeCharactor
'
);
const
nodeCharactor
=
cc
.
find
(
'
Canvas/
game_end/
NodeCharactor
'
);
await
asyncTweenTo
(
nodeCharactor
,
0.6
,
{
y
:
150
},
{
easing
:
'
quadOut
'
});
await
asyncTweenTo
(
nodeCharactor
,
0.6
,
{
y
:
150
},
{
easing
:
'
quadOut
'
});
this
.
showRibbons
();
this
.
showRibbons
();
...
@@ -68,23 +68,34 @@ cc.Class({
...
@@ -68,23 +68,34 @@ cc.Class({
cc
.
audioEngine
.
play
(
this
[
'
点击
'
]);
cc
.
audioEngine
.
play
(
this
[
'
点击
'
]);
btnRestart
.
active
=
false
;
btnRestart
.
active
=
false
;
cc
.
director
.
loadScene
(
'
tyzdc
'
,
()
=>
{
const
btnStart
=
cc
.
find
(
`Canvas/BtnStart`
);
btnStart
.
active
=
false
;
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
// cc.find(`Canvas`).getComponent('tyzdc').gameStart();
if
(
middleLayer
)
{
});
middleLayer
.
getComponent
(
'
middleLayer
'
).
reloadBundle
();
}
else
{
cc
.
audioEngine
.
stopAll
();
cc
.
director
.
loadScene
(
'
SN11
'
,
()
=>
{});
}
// cc.director.loadScene('SN11', () => {
// const btnStart = cc.find(`Canvas/game_end/BtnStart`);
// btnStart.active = false;
// // cc.find(`Canvas`).getComponent('tyzdc').gameStart();
// });
})
})
.
start
();
.
start
();
});
});
},
},
showFinishStone
()
{
showFinishStone
()
{
const
stoneNodeBase
=
cc
.
find
(
'
Canvas/StoneNodeBase
'
);
const
stoneNodeBase
=
cc
.
find
(
'
Canvas/
game_end/
StoneNodeBase
'
);
stoneNodeBase
.
active
=
true
;
stoneNodeBase
.
active
=
true
;
stoneNodeBase
.
zIndex
=
25
;
stoneNodeBase
.
zIndex
=
25
;
stoneNodeBase
.
opacity
=
255
;
stoneNodeBase
.
opacity
=
255
;
const
nodeLight
=
cc
.
find
(
'
Canvas/StoneNodeBase/NodeLight
'
);
const
nodeLight
=
cc
.
find
(
'
Canvas/
game_end/
StoneNodeBase/NodeLight
'
);
nodeLight
.
opacity
=
0
;
nodeLight
.
opacity
=
0
;
cc
.
tween
(
nodeLight
)
cc
.
tween
(
nodeLight
)
.
to
(
3
,
{
opacity
:
255
,
angle
:
-
360
})
.
to
(
3
,
{
opacity
:
255
,
angle
:
-
360
})
...
@@ -93,7 +104,7 @@ cc.Class({
...
@@ -93,7 +104,7 @@ cc.Class({
.
start
();
.
start
();
for
(
let
index
=
0
;
index
<
6
;
index
++
)
{
for
(
let
index
=
0
;
index
<
6
;
index
++
)
{
const
nodeStar
=
cc
.
find
(
`Canvas/StoneNodeBase/NodeStarBase/NodeStar_
${
index
}
`
);
const
nodeStar
=
cc
.
find
(
`Canvas/
game_end/
StoneNodeBase/NodeStarBase/NodeStar_
${
index
}
`
);
nodeStar
.
scale
=
Math
.
random
()
*
0.7
+
0.3
;
nodeStar
.
scale
=
Math
.
random
()
*
0.7
+
0.3
;
cc
.
tween
(
nodeStar
)
cc
.
tween
(
nodeStar
)
.
to
(
1
,
{
scale
:
0
,
opacity
:
0
})
.
to
(
1
,
{
scale
:
0
,
opacity
:
0
})
...
...
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