Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ns16_mole
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
ns16_mole
Commits
ecf9867f
Commit
ecf9867f
authored
Oct 19, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
cff9a119
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
ns16_mole.fire
assets/ns16_mole/scene/ns16_mole.fire
+4
-4
ns16_mole.ts
assets/ns16_mole/scene/ns16_mole.ts
+4
-2
No files found.
assets/ns16_mole/scene/ns16_mole.fire
View file @
ecf9867f
...
@@ -3786,7 +3786,7 @@
...
@@ -3786,7 +3786,7 @@
"__id__": 108
"__id__": 108
}
}
],
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [],
"_components": [],
"_prefab": null,
"_prefab": null,
"_opacity": 255,
"_opacity": 255,
...
@@ -4249,7 +4249,7 @@
...
@@ -4249,7 +4249,7 @@
"_N$string": "apple",
"_N$string": "apple",
"_fontSize": 60,
"_fontSize": 60,
"_lineHeight": 60,
"_lineHeight": 60,
"_enableWrapText":
tru
e,
"_enableWrapText":
fals
e,
"_N$file": {
"_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
},
},
...
@@ -4611,7 +4611,7 @@
...
@@ -4611,7 +4611,7 @@
"_N$string": "apple",
"_N$string": "apple",
"_fontSize": 60,
"_fontSize": 60,
"_lineHeight": 60,
"_lineHeight": 60,
"_enableWrapText":
tru
e,
"_enableWrapText":
fals
e,
"_N$file": {
"_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
},
},
...
@@ -4903,7 +4903,7 @@
...
@@ -4903,7 +4903,7 @@
"_N$string": "apple",
"_N$string": "apple",
"_fontSize": 60,
"_fontSize": 60,
"_lineHeight": 60,
"_lineHeight": 60,
"_enableWrapText":
tru
e,
"_enableWrapText":
fals
e,
"_N$file": {
"_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
},
},
...
...
assets/ns16_mole/scene/ns16_mole.ts
View file @
ecf9867f
...
@@ -113,15 +113,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -113,15 +113,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
.
call
(()
=>
{
pg
.
event
.
emit
(
"
show_round_action
"
);
vs
.
active
=
false
;
}).
start
();
.
call
(()
=>
{
pg
.
event
.
emit
(
"
show_round_action
"
);
vs
.
active
=
false
;
}).
start
();
}
}
private
showGameOver
()
{
private
showGameOver
()
{
let
stoneP
=
Math
.
round
(
10
*
Game
.
getIns
().
player
.
score
/
Game
.
getIns
().
total
);
let
stoneR
=
10
-
stoneP
;
let
player
=
{
let
player
=
{
right
:
Game
.
getIns
().
player
.
score
,
right
:
Game
.
getIns
().
player
.
score
,
error
:
Game
.
getIns
().
player
.
error
,
error
:
Game
.
getIns
().
player
.
error
,
stone
:
Math
.
floor
(
10
*
Game
.
getIns
().
player
.
score
/
Game
.
getIns
().
total
)
stone
:
stoneP
}
}
let
robot
=
{
let
robot
=
{
right
:
Game
.
getIns
().
robot
.
score
,
right
:
Game
.
getIns
().
robot
.
score
,
error
:
Game
.
getIns
().
robot
.
error
,
error
:
Game
.
getIns
().
robot
.
error
,
stone
:
Math
.
floor
(
10
*
Game
.
getIns
().
robot
.
score
/
Game
.
getIns
().
total
)
stone
:
stoneR
}
}
let
totalNumber
=
Game
.
getIns
().
totalNumber
;
let
totalNumber
=
Game
.
getIns
().
totalNumber
;
if
(
Game
.
getIns
().
singleGame
)
{
if
(
Game
.
getIns
().
singleGame
)
{
...
...
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