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>
<!--https:/www.w3schools.com/graphics/game_intro.asp-->
<!--https:/www.trex-game.skipser.com-->
@ -72,6 +73,11 @@
<script>
startGame()
load()
if (jeuxFini()) {
var myImage = new Image(150, 150);
myImage.src = './gifs/homme trop swag immobile.png';
document.body.appendChild(myImage);
}
</script>
</body>

View File

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

View File

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