small fixes

This commit is contained in:
Adrien MALINGREY 2024-09-26 21:30:12 +02:00
parent abf562fd89
commit 07daa4a9cf
4 changed files with 7 additions and 4 deletions

1
app.js
View File

@ -264,7 +264,6 @@ function resumeOnKeyDown(event) {
/* Scene */ /* Scene */
const renderer = new THREE.WebGLRenderer({ const renderer = new THREE.WebGLRenderer({
powerPreference: "high-performance", powerPreference: "high-performance",
antialias: true, antialias: true,

View File

@ -27,6 +27,10 @@ span {
left: 15px; left: 15px;
} }
.lil-gui.root > .title {
font-size: 1.5em;
}
.lil-gui .controller.disabled { .lil-gui .controller.disabled {
opacity: .8; opacity: .8;
} }
@ -51,6 +55,7 @@ canvas {
#messagesSpan div { #messagesSpan div {
opacity: 0; opacity: 0;
overflow: hidden; overflow: hidden;
user-select: none;
} }
h1 { h1 {
@ -168,7 +173,6 @@ h1 {
.pause #pauseSpan { .pause #pauseSpan {
display: flex; display: flex;
position:absolute; position:absolute;
display: flex;
top: 0; top: 0;
left: 0; left: 0;
filter: blur(2px); filter: blur(2px);
@ -181,4 +185,5 @@ h1 {
font-size: 20vh; font-size: 20vh;
font-weight: 800; font-weight: 800;
letter-spacing: .1em; letter-spacing: .1em;
user-select: none;
} }

View File

@ -5,7 +5,7 @@ import { Mino, environment } from './Tetrominoes.js'
export class TetraGUI extends GUI { export class TetraGUI extends GUI {
constructor(game, settings, stats, scene, controls, playfield, loadingManager) { constructor(game, settings, stats, scene, controls, playfield) {
super({title: "teTra"}) super({title: "teTra"})
this.startButton = this.add(game, "start").name("Jouer").hide() this.startButton = this.add(game, "start").name("Jouer").hide()

View File

@ -35,5 +35,4 @@ class Scheduler {
const scheduler = new Scheduler() const scheduler = new Scheduler()
export { scheduler } export { scheduler }