From c4e269481d4d5065dd05bf4a2647e80c17c85e5f Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 24 Apr 2023 00:34:17 +0200 Subject: [PATCH] =?UTF-8?q?Frans=C3=B6sich?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app.js b/app.js index dd0dd65..fc29453 100644 --- a/app.js +++ b/app.js @@ -13,8 +13,8 @@ const ROTATION = { const T_SPIN = { NONE: "", - MINI: "MINI T-SPIN", - T_SPIN: "T-SPIN" + MINI: "PETITE
PIROUETTE", + T_SPIN: "PIROUETTE" } // score = SCORES[tSpin][nbClearedLines] @@ -26,9 +26,9 @@ const SCORES = { const CLEARED_LINES_NAMES = [ "", - "SINGLE", - "DOUBLE", - "TRIPLE", + "SOLO", + "DUO", + "TRIO", "QUATRIS", ] @@ -49,12 +49,12 @@ const KEY_NAMES = { ["ArrowRight"]: "→", ["ArrowUp"]: "↑", ["ArrowDown"]: "↓", - [" "]: "Space", + [" "]: "Espace", ["←"]: "ArrowLeft", ["→"]: "ArrowRight", ["↑"]: "ArrowUp", ["↓"]: "ArrowDown", - ["Space"]: " ", + ["Espace"]: " ", } /* Customize Array to be use as coord */ @@ -453,7 +453,7 @@ class Stats { this.lockDelay = 500 * Math.pow(0.9, level - 15) levelInput.value = level levelCell.innerText = level - messagesSpan.addNewChild("div", { className: "show-level-animation", innerHTML: `

LEVEL
${this.level}

` }) + messagesSpan.addNewChild("div", { className: "show-level-animation", innerHTML: `

NIVEAU
${this.level}

` }) } get level() { @@ -505,7 +505,7 @@ class Stats { messagesSpan.addNewChild("div", { className: "zoom-in-animation", style: "animation-delay: .4s", - innerHTML: `COMBO x${this.combo}
${comboScore}` + innerHTML: `ENCHAINEMENT x${this.combo}
${comboScore}` }) this.score += comboScore } @@ -521,7 +521,7 @@ class Stats { messagesSpan.addNewChild("div", { className: "zoom-in-animation", style: "animation-delay: .4s", - innerHTML: `BACK TO BACK x${this.b2b}
${b2bScore}` + innerHTML: `BOUT À BOUT x${this.b2b}
${b2bScore}` }) this.score += b2bScore } @@ -530,7 +530,7 @@ class Stats { messagesSpan.addNewChild("div", { className: "zoom-in-animation", style: "animation-delay: .4s", - innerHTML: `BACK TO BACK END` + innerHTML: `FIN DU BOUT À BOUT` }) } this.b2b = -1 @@ -766,14 +766,14 @@ function gameOver() { document.onkeydown = null document.onkeyup = null - + onblur = null scheduler.clearInterval(clock) messagesSpan.onanimationend = null messagesSpan.addNewChild("div", { className: "game-over-animation", style: "opacity: 100%", - innerHTML: "

GAME
OVER

" + innerHTML: "

FIN

" }) }