From 694d4aac4a0130993d3f7d9b830963cc613d9625 Mon Sep 17 00:00:00 2001
From: adrien <adrien@malingrey.fr>
Date: Tue, 4 Jul 2023 00:43:40 +0200
Subject: [PATCH] tweaks

---
 app.js | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/app.js b/app.js
index 09f3ad5..1d8763b 100644
--- a/app.js
+++ b/app.js
@@ -841,7 +841,7 @@ const commonCylinderGeometry = new THREE.CylinderGeometry(25, 25, 500, 12, 1, tr
 const darkCylinderTexture = new THREE.TextureLoader(loadingManager).load("images/plasma2.jpg", (texture) => {
     texture.wrapS = THREE.RepeatWrapping
     texture.wrapT = THREE.MirroredRepeatWrapping
-    texture.repeat.set(1, 1)
+    texture.repeat.set(2, 1)
 })
 const darkCylinderMaterial = new THREE.MeshLambertMaterial({
     side: THREE.BackSide,
@@ -865,7 +865,7 @@ const colorFullCylinderMaterial = new THREE.MeshBasicMaterial({
     side: THREE.BackSide,
     map: colorFullCylinderTexture,
     blending: THREE.AdditiveBlending,
-    opacity: 0.05
+    opacity: 0.1
 })
 const colorFullCylinder = new THREE.Mesh(
     commonCylinderGeometry,
@@ -874,10 +874,10 @@ const colorFullCylinder = new THREE.Mesh(
 colorFullCylinder.position.set(5, 10, -10)
 scene.add(colorFullCylinder)
 
-const ambientLight = new THREE.AmbientLight(0xffffff, 0.3)
+const ambientLight = new THREE.AmbientLight(0xffffff, 0.2)
 scene.add(ambientLight)
 
-const directionalLight = new THREE.DirectionalLight(0xffffff, 5)
+const directionalLight = new THREE.DirectionalLight(0xffffff, 6)
 directionalLight.position.set(5, -100, -16)
 scene.add(directionalLight)
 
@@ -1091,6 +1091,7 @@ let game = {
         localStorage["teTraHighScore"] = stats.highScore
         messagesSpan.addNewChild("div", { className: "show-level-animation", innerHTML: `<h1>GAME<br/>OVER</h1>` })
 
+        startButton.name("Rejouer")
         startButton.show()
     },
 }
@@ -1169,7 +1170,7 @@ audioLoader.load('audio/hard-drop.wav', function( buffer ) {
 
 let scheduler = new Scheduler()
 var gui = new GUI().title("teTra")
-let startButton = gui.add(game, "start").name("Démarrer").hide()
+let startButton = gui.add(game, "start").name("Jouer").hide()
 let stats = new Stats(gui)
 let settings  = new Settings(gui)