push avant modif foireuse

This commit is contained in:
Chiara 2019-12-06 06:09:46 +01:00
parent a192e16f73
commit 153a7d104f
4 changed files with 9 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

View File

@ -1,3 +1,4 @@
<!--AUTHOR Chiara RELEVAT- Nuit de l'info 2018-->
<!DOCTYPE html> <!DOCTYPE html>
<!--https:/www.w3schools.com/graphics/game_intro.asp--> <!--https:/www.w3schools.com/graphics/game_intro.asp-->
<!--https:/www.trex-game.skipser.com--> <!--https:/www.trex-game.skipser.com-->
@ -72,6 +73,11 @@
<script> <script>
startGame() startGame()
load() load()
if (jeuxFini()) {
var myImage = new Image(150, 150);
myImage.src = './gifs/homme trop swag immobile.png';
document.body.appendChild(myImage);
}
</script> </script>
</body> </body>

View File

@ -120,8 +120,8 @@ function everyinterval(n) {
function jeuxFini(i) { function jeuxFini(i) {
var messageMort; var messageMort;
if (personnage.crashWith(obstacle[i])) { if (personnage.crashWith(obstacle[i])) {
messageMort = new component("30px", "Consolas", "red", 150, 60, "text"); messageMort = new component("30px", "Consolas", "red", 150, 80, "text");
messageMort.text = "Il vous à attrapé..."; messageMort.text = "Il vous à rattrapé...";
messageMort.update(); messageMort.update();
} }
} }

View File

@ -18,6 +18,7 @@ button {
} }
img { img {
position: relative;
margin-top: -10px; margin-top: -10px;
margin-left: +300px; margin-left: +300px;
} }