Game multi - Fix scale player maybe, and scrore board picture position

This commit is contained in:
hubourge
2024-10-11 14:31:50 +02:00
parent be60de564a
commit 0fdd1fd32a
2 changed files with 6 additions and 4 deletions

View File

@ -533,9 +533,9 @@ class Map
meshProfileRightFront = new THREE.Mesh(geometryProfileRightFront, materialProfileRight);
geometryProfileLeftBack = new THREE.PlaneGeometry(width - 0.15, height - 0.15);
meshProfileLeftBack = new THREE.Mesh(geometryProfileLeftBack, materialProfileLeft);
meshProfileLeftBack = new THREE.Mesh(geometryProfileLeftBack, materialProfileRight);
geometryProfileRightBack = new THREE.PlaneGeometry(width - 0.15, height - 0.15);
meshProfileRightBack = new THREE.Mesh(geometryProfileRightBack, materialProfileRight);
meshProfileRightBack = new THREE.Mesh(geometryProfileRightBack, materialProfileLeft);
meshProfileLeftFront.position.set(-spacing - width / 2 - 0.275, 1.6, - 8.15);
meshProfileLeftFront.rotation.y = 0.4;
@ -1025,6 +1025,9 @@ class Map
reCreate(name)
{
player.resetScaleplayers();
player.reserCameraPlayer();
this.#clearAnimationGoal();
animateGoalObjectUpdate = false;
animationSpeed = 0.02;
@ -1032,8 +1035,6 @@ class Map
this.updateScore(name, this.score);
ball.resetPosBall();
this.resetPosWalls();
player.resetScaleplayers();
player.reserCameraPlayer();
};
};

View File

@ -439,6 +439,7 @@ class Player
object.scale.x -= value * 2;
}, i * 10);
}
object.scale.set(1, 1, 1);
}
configureVrController()