avant reteste de son
This commit is contained in:
@@ -7,44 +7,71 @@
|
||||
<head>
|
||||
<meta charset="UTF8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<style>
|
||||
canvas {
|
||||
border-bottom: 2px solid #0d0d0d;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
button {
|
||||
margin-top: +50px;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
img {
|
||||
margin-top: +130px;
|
||||
margin-left: +300px;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="./styles.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--Jeux principal-->
|
||||
<h1 class="center">Fuyez l'homme en noir !</h1>
|
||||
|
||||
<script src="./scores.js">
|
||||
startGame()
|
||||
</script>
|
||||
|
||||
<!--Tableau des scores-->
|
||||
<h3 class="cote">Meilleur score</h3>
|
||||
<script src="./script.js">
|
||||
load()
|
||||
</script>
|
||||
<table class="tab">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p>1ST</p>
|
||||
</td>
|
||||
<td>
|
||||
<script>
|
||||
document.write(getPremier());
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>2ND</p>
|
||||
</td>
|
||||
<td>
|
||||
<script>
|
||||
document.write(getSecond());
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>3RD</p>
|
||||
</td>
|
||||
<td>
|
||||
<script>
|
||||
document.write(getTroisieme());
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!--gif homme en noir qui marche-->
|
||||
<img src="./gifs/homme trop swag.gif" alt="homme en noir" height="150" width="150">
|
||||
|
||||
<br>
|
||||
<button onmousedown="sauter(-0.5)" onmouseup="sauter(0.05)">SAUTER</button>
|
||||
<!--Insertion de l'audio a chaque saut-->
|
||||
<audio id="myAudio">
|
||||
<source src="./sons/OhPonyBoy_-_WOUTIPOUP.ogg" type="audio/ogg">
|
||||
<source src="./sons/OhPonyBoy_-_WOUTIPOUP.mp3" type="audio/mpeg">
|
||||
</audio>
|
||||
|
||||
<!--bouton evenement-->
|
||||
<br>
|
||||
<button onmousedown="sauter(-0.05)" onmouseup="sauter(0.05)">SAUTER</audio></button>
|
||||
<button onclick="playAudio()">MUSIC</audio></button>
|
||||
|
||||
<!--lancer le jeux-->
|
||||
<script>
|
||||
startGame()
|
||||
load()
|
||||
|
Reference in New Issue
Block a user