-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (104 loc) · 3.79 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<title>Ping Pong</title>
<style>
canvas{
border: solid;
align-items: center;
border-color:rgba(0, 0, 200, 0.5);
}
body{
}
h1,h3{
text-align: center;
font: oblique bold cursive;
color: rgba(0, 0, 200, 0.5);;
}
li{
font-size: 20px;
padding: 5px;
}
#reglas{
padding: 50px;
}
#container{
padding: 50px 0px 50px 0px;
}
.canvasdiv{
justify-content:center;
aling-items:center
}
</style>
</head>
<body>
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light">
<!-- Container wrapper -->
<div class="container-fluid">
<!-- Toggle button -->
<button
class="navbar-toggler"
type="button"
data-mdb-toggle="collapse"
data-mdb-target="#navbarRightAlignExample"
aria-controls="navbarRightAlignExample"
aria-expanded="false"
aria-label="Toggle navigation"
>
<i class="fas fa-bars"></i>
</button>
<!-- Collapsible wrapper -->
<div class="collapse navbar-collapse" id="navbarRightAlignExample">
<!-- Left links -->
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#container">Jugar</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#reglas">Instruciones y Reglas</a>
</li>
</ul>
<!-- Left links -->
</div>
<!-- Collapsible wrapper -->
</div>
<!-- Container wrapper -->
</nav>>
<div class="container" id="container">
<h1 >Ping Pong por Yhomira </h1>
<div class="input-group mb-3">
<span class="input-group-text">Puntaje Jugador A</span>
<input id='puntajea'type="number" class="form-control" disabled >
<span class="input-group-text">Puntaje Jugador B</span>
<input id='puntajeb' type="number" class="form-control" disabled >
</div>
<!-- Content here -->
<div class="d-flex justify-content-center" >
<canvas id="canvas"></canvas>
</div>
<!--llamando a archivo javascript-->
<div id="reglas" class="row justify-content-center ">
<h3>Instrucciones</h3>
<ol >
<li>Para iniciar o pausar el Juego presione la tecla de espaciador,vera que la bola empiza a moverse.</li>
<li>Para mover la barra derecha presione la tecla ↑ (para subir) y ↓ (para bajar)..</li>
<li>Para mover la barra izquierda precione la tecla W(para subir) y S (para bajar)</li>
</ol>
<h3>Reglas</h3>
<ol >
<li>Se obtine puntos cuando la pelota no rebota con la barra y sale del tablero</li>
<li>Al obtener el punto la pelota aparecera al medio y se movera de forma aleatoria</li>
<li>GANA el primer jugador que obtiene 11 puntos</li>
<li>DIVIERTANSE!!!</li>
</ol>
</div>
</div>
<!--creacion de titulo-->
<!--etiqueta que crea un lienzo en blando-->
<script src="main.js"></script>
</body>
</html>