Translate to English

This commit is contained in:
Andras Schmelczer 2022-09-26 17:28:20 +02:00
parent 92d0669304
commit 7825fad30a
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
2 changed files with 9 additions and 8 deletions

View file

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Játék</title> <title>Avoid | Game</title>
<meta name="theme-color" content="#A5402D" /> <meta name="theme-color" content="#A5402D" />
<link <link
@ -19,17 +19,18 @@
<div id="menuBox"> <div id="menuBox">
<div class="box"> <div class="box">
<div id="startText"> <div id="startText">
<h1>Kerüld ki</h1> <h1>Avoid</h1>
<p> <p>
a piros köröket a kurzorod (telefonon az ujjad) mozgatásával. Sok the red balls by moving your cursor (or finger) on the screen. Try
sikert hozzá! eliminating the enemy balls by getting them to collide with each
other. Good luck!
</p> </p>
</div> </div>
<div id="endText"> <div id="endText">
<h1>Játék vége</h1> <h1>You lost :(</h1>
<p id="endScore"></p> <p id="endScore"></p>
</div> </div>
<button id="startButton">Indítás</button> <button id="startButton">Let's start</button>
</div> </div>
</div> </div>

View file

@ -71,7 +71,7 @@ class Game {
new Circle( new Circle(
[ [
Math.random() > 0.5 ? -10 : 1.05 * canvasHandler.width, Math.random() > 0.5 ? -10 : 1.05 * canvasHandler.width,
Math.random() * canvasHandler.height Math.random() * canvasHandler.height,
], ],
"#F15156", "#F15156",
canvasHandler.unitToPx(0.0001), canvasHandler.unitToPx(0.0001),
@ -108,7 +108,7 @@ class Game {
} }
showEndScreen() { showEndScreen() {
document.getElementById("endText").style.display = "block"; 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.menuBox.display = "flex";
this.isActive = false; this.isActive = false;
} }