|
@@ -652,38 +652,22 @@ const circleOne = {
|
|
|
const result =
|
|
|
('' + resultAux).length > 4 ? resultAux.toFixed(2) : resultAux;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
nextX = x0 + validCircles.length * offsetX + 20;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
-
|
|
|
renderList.push(game.add.text(nextX, y0 + 35, '=', font));
|
|
|
|
|
|
font.align = 'center';
|
|
|
- nextX += offsetX + 40;
|
|
|
+ nextX += offsetX;
|
|
|
|
|
|
- renderList.push(
|
|
|
- game.add.text(nextX - 80, y0 + 35, result >= 0 ? '' : '-', font)
|
|
|
- );
|
|
|
+ if (result < 0) {
|
|
|
+ nextX -= 30;
|
|
|
+
|
|
|
+ renderList.push(game.add.text(nextX, y0 + 35, '-', font));
|
|
|
+
|
|
|
+ nextX += 60;
|
|
|
+ }
|
|
|
|
|
|
const fractionResult = game.add.text(
|
|
|
nextX,
|
|
@@ -695,6 +679,7 @@ const circleOne = {
|
|
|
);
|
|
|
fractionResult.lineHeight = 70;
|
|
|
renderList.push(fractionResult);
|
|
|
+
|
|
|
const fractionLine = game.add.geom.line(
|
|
|
nextX,
|
|
|
y0 + 15,
|
|
@@ -737,13 +722,6 @@ const circleOne = {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
let resultWidth = '_'.length * widthOfChar;
|
|
|
const cardWidth = nextX - x0 + resultWidth + padding * 2;
|
|
|
card.width = cardWidth;
|