From 7825fad30a932cf55c0711e06f2a21d58fc9e33f Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Mon, 26 Sep 2022 17:28:20 +0200 Subject: [PATCH] Translate to English --- index.html | 13 +++++++------ js/main.js | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 50fff72..8ffb31f 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - Játék + Avoid | Game
-

Kerüld ki

+

Avoid

- a piros köröket a kurzorod (telefonon az ujjad) mozgatásával. Sok - sikert hozzá! + the red balls by moving your cursor (or finger) on the screen. Try + eliminating the enemy balls by getting them to collide with each + other. Good luck!

-

Játék vége

+

You lost :(

- +
diff --git a/js/main.js b/js/main.js index c1163ce..212816b 100644 --- a/js/main.js +++ b/js/main.js @@ -71,7 +71,7 @@ class Game { new Circle( [ Math.random() > 0.5 ? -10 : 1.05 * canvasHandler.width, - Math.random() * canvasHandler.height + Math.random() * canvasHandler.height, ], "#F15156", canvasHandler.unitToPx(0.0001), @@ -108,7 +108,7 @@ class Game { } showEndScreen() { document.getElementById("endText").style.display = "block"; - document.getElementById("endScore").innerHTML = `Pontszámod: ${this.score}`; + document.getElementById("endScore").innerHTML = `Your score: ${this.score}`; this.menuBox.display = "flex"; this.isActive = false; }