rename QUATUOR

This commit is contained in:
Adrien MALINGREY 2023-11-07 23:53:46 +01:00
parent cbf86e0bf5
commit 31123fc332
2 changed files with 8 additions and 8 deletions

10
app.js
View File

@ -30,7 +30,7 @@ const CLEARED_LINES_NAMES = [
"SOLO", "SOLO",
"DUO", "DUO",
"TRIO", "TRIO",
"QUATRIS", "QUATUOR",
] ]
const DELAY = { const DELAY = {
@ -485,7 +485,7 @@ class Settings {
this.form.onsubmit = newGame this.form.onsubmit = newGame
levelInput.name = "startLevel" levelInput.name = "startLevel"
levelInput.disabled = false levelInput.disabled = false
titleHeader.innerHTML = "QUATRIS" titleHeader.innerHTML = "QUATUOR"
resumeButton.innerHTML = "Jouer" resumeButton.innerHTML = "Jouer"
} }
@ -553,7 +553,7 @@ class Stats {
this.startTime = new Date() this.startTime = new Date()
this.lockDelay = DELAY.LOCK this.lockDelay = DELAY.LOCK
this.totalClearedLines = 0 this.totalClearedLines = 0
this.nbQuatris = 0 this.nbQuatuors = 0
this.nbTSpin = 0 this.nbTSpin = 0
this.maxCombo = 0 this.maxCombo = 0
this.maxB2B = 0 this.maxB2B = 0
@ -635,7 +635,7 @@ class Stats {
lockDown(nbClearedLines, tSpin) { lockDown(nbClearedLines, tSpin) {
this.totalClearedLines += nbClearedLines this.totalClearedLines += nbClearedLines
if (nbClearedLines == 4) this.nbQuatris++ if (nbClearedLines == 4) this.nbQuatuors++
if (tSpin == T_SPIN.T_SPIN) this.nbTSpin++ if (tSpin == T_SPIN.T_SPIN) this.nbTSpin++
// Cleared lines & T-Spin // Cleared lines & T-Spin
@ -725,7 +725,7 @@ class Stats {
statsModalTimeCell.innerText = this.timeFormat.format(time) statsModalTimeCell.innerText = this.timeFormat.format(time)
statsModaltotalClearedLines.innerText = this.totalClearedLines statsModaltotalClearedLines.innerText = this.totalClearedLines
statsModaltotalClearedLinesPM.innerText = (stats.totalClearedLines * 60000 / time).toFixed(2) statsModaltotalClearedLinesPM.innerText = (stats.totalClearedLines * 60000 / time).toFixed(2)
statsModalNbQuatris.innerText = this.nbQuatris statsModalNbQuatuors.innerText = this.nbQuatuors
statsModalNbTSpin.innerText = this.nbTSpin statsModalNbTSpin.innerText = this.nbTSpin
statsModalMaxCombo.innerText = this.maxCombo statsModalMaxCombo.innerText = this.maxCombo
statsModalMaxB2B.innerText = this.maxB2B statsModalMaxB2B.innerText = this.maxB2B

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>QUATRIS</title> <title>QUATUOR</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark"> <meta name="color-scheme" content="dark">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
@ -26,7 +26,7 @@
<div class="modal-dialog modal-dialog-centered"> <div class="modal-dialog modal-dialog-centered">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h1 id="titleHeader" class="modal-title w-100 text-center">QUATRIS</h1> <h1 id="titleHeader" class="modal-title w-100 text-center">QUATUOR</h1>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form name="settingsForm" class="needs-validation" novalidate> <form name="settingsForm" class="needs-validation" novalidate>
@ -187,7 +187,7 @@
<tr><th>Score </th><td id="statsModalScoreCell"> </td><th>Niveau </th><td id="statsModalLevelCell"> </td></tr> <tr><th>Score </th><td id="statsModalScoreCell"> </td><th>Niveau </th><td id="statsModalLevelCell"> </td></tr>
<tr><th>Meilleur score</th><td id="statsModalHighScoreCell"> </td><th>Temps </th><td id="statsModalTimeCell"> </td></tr> <tr><th>Meilleur score</th><td id="statsModalHighScoreCell"> </td><th>Temps </th><td id="statsModalTimeCell"> </td></tr>
<tr><th>Lignes </th><td id="statsModaltotalClearedLines"></td><th>Lignes par minute </th><td id="statsModaltotalClearedLinesPM"></td></tr> <tr><th>Lignes </th><td id="statsModaltotalClearedLines"></td><th>Lignes par minute </th><td id="statsModaltotalClearedLinesPM"></td></tr>
<tr><th>Quatris </th><td id="statsModalNbQuatris"> </td><th>Plus long combo </th><td id="statsModalMaxCombo"> </td></tr> <tr><th>Quatuors </th><td id="statsModalNbQuatuors"> </td><th>Plus long combo </th><td id="statsModalMaxCombo"> </td></tr>
<tr><th>Pirouettes </th><td id="statsModalNbTSpin"> </td><th>Plus long bout à bout</th><td id="statsModalMaxB2B"> </td></tr> <tr><th>Pirouettes </th><td id="statsModalNbTSpin"> </td><th>Plus long bout à bout</th><td id="statsModalMaxB2B"> </td></tr>
</table> </table>
</div> </div>