Translate to English
This commit is contained in:
parent
92d0669304
commit
7825fad30a
2 changed files with 9 additions and 8 deletions
13
index.html
13
index.html
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue