-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (42 loc) · 2.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Moto-Random Cross</title>
<link href="vendor/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel="stylesheet" href="main.css">
</head>
<body class="container d-flex justify-content-center">
<div class="fixed-top" id="list_show" hidden>
<h2>Valores Calculados:</h2>
<ol id="values_list"></ol>
</div>
<div id="start" class="d-flex flex-column justify-content-center mt-5">
<h1 class="text-center bg-danger text-light">Moto-Random Cross</h1>
<h2 id="title">Bienvenido al juego de la moto!</h2>
<button onclick="startGame()" id="startButton" class="btn btn-lg btn-primary my-3">Iniciar</button>
<div id="instructions">
<h2>Instrucciones:</h2>
<ul>
<li>¡No deje que el motociclista choque contra la avalancha!</li>
<li>Utiliza las direccionales (<img class="icon" src="vendor/fontawesome/arrow-left-solid.svg" alt="←">, <img class="icon" src="vendor/fontawesome/arrow-right-solid.svg" alt="→"> ) para dar vueltas y ganar puntos</li>
<li>Utiliza las direccionales (<img class="icon" src="vendor/fontawesome/arrow-up-solid.svg" alt="↑">, <img class="icon" src="vendor/fontawesome/arrow-down-solid.svg" alt="↓"> ) para dar acelerar y frenar, respectivamente</li>
</ul>
<p><strong>¡Éxito!</strong></p>
</div>
<div id="score" class="align-self-center" hidden>
<h2 class="fw-bold">
Score: <span id="score_number">0</span>
</h2>
<h2>Posición Moto: X:<span id="x">0</span>,Y: <span id="y">0</span></h2>
</div>
<div id="gameOver" class="d-flex flex-column justify-content-center" hidden>
<h2 class="fw-bolder text-center my-3">Game Over</h2>
<button onclick="window.location.reload()" id="refresh" class="btn btn-lg btn-success my-3">Jugar otra vez</button>
</div>
</div>
<button onclick="toggleDebug()" id="debug_btn" class="fixed-bottom btn btn-lg btn-danger" hidden>Abrir Log de Valores</button>
</body>
<script src="./index.js"></script>
</html>