fullscreenButton
This commit is contained in:
@@ -70,7 +70,8 @@ export class Menu extends GUI {
|
||||
scene.tetrisSound.setVolume(volume/100)
|
||||
scene.hardDropSound.setVolume(volume/100)
|
||||
})
|
||||
|
||||
this.settings.fullscreenButton = this.settings.add(game, "fullscreen").name("Plein écran")
|
||||
|
||||
let material
|
||||
function changeMaterial() {
|
||||
material?.destroy()
|
||||
|
||||
@@ -55,7 +55,7 @@ export class TetraScene extends THREE.Scene {
|
||||
case "Espace":
|
||||
this.ambientLight.intensity = 7
|
||||
this.directionalLight.intensity = 5
|
||||
this.directionalLight.position.set(2, -10, 20)
|
||||
this.directionalLight.position.set(2, -3, 20)
|
||||
this.music.src = "audio/benevolence.m4a"
|
||||
break
|
||||
case "Rétro":
|
||||
|
||||
Reference in New Issue
Block a user