-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (26 loc) · 885 Bytes
/
index.html
File metadata and controls
26 lines (26 loc) · 885 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.7.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.7.0/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="menu.css">
<meta charset="utf-8" />
</head>
<body>
<header>
<audio id="backgroundMusic" loop autoplay>
<source src="./musicaMenu.mp3" type="audio/mp3">
</audio>
</header>
<main>
<h1>GRAVITY PONG</h1>
<button onclick="startGame()">Iniciar Juego</button>
<button onclick="help()">Ayuda</button>
<button id="mute" onclick=music()>
<img src="./mute.jpg" alt="Mute/Unmute">
</button>
<input type="range" id="volumeControl" min="0" max="1" step="0.01" value="1">
</main>
<script src="menu.js"></script>
</body>
</html>