Commit ecf9867f authored by Tt's avatar Tt

修改bug

parent cff9a119
...@@ -3786,7 +3786,7 @@ ...@@ -3786,7 +3786,7 @@
"__id__": 108 "__id__": 108
} }
], ],
"_active": true, "_active": false,
"_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": true, "_enableWrapText": false,
"_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": true, "_enableWrapText": false,
"_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": true, "_enableWrapText": false,
"_N$file": { "_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e" "__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
}, },
......
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment