diff --git a/assets/css/style.css b/assets/css/style.css index 1ee97c1..a703e4f 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1,3 +1,8 @@ +@font-face{ + font-family: 'FIANSO'; + src: url('../fonts/prstartk.ttf'); +} + body{ margin: 0; padding: 0; @@ -21,6 +26,98 @@ body{ .container{ max-width: 1140px; margin: auto; + position: absolute; + left: 0; + right: 0; + margin-left: auto; + margin-right: auto; +} + +.score{ + position: absolute; + right: 0px; + top: 0px; + text-align: right; + padding-top: 20px; + padding-right: 20px; +} + +.score h3{ + font-family: 'FIANSO'; + font-size: 32px; + color: #000; + margin: inherit; + padding-bottom: 8px; +} + +.score h5{ + font-family: 'FIANSO'; + font-size: 24px; + color: #000; + margin: inherit; +} + +.gameover{ + text-align: center; + position: absolute; + width: 100%; + height: 73%; + top: 0; + padding-top: 150px; + background: rgba(155, 0, 0, 0.85); + box-shadow: inset 0px 0px 60px 0px rgba(0,0,0,0.75); + +} + +.gameover h1{ + font-family: 'FIANSO'; + font-size: 64px; + color: #fff; + margin: inherit; + padding-bottom: 60px; + animation: pulse 3s infinite; +} + +@keyframes pulse{ + 0%{ + transform: scale(1); + } + 50%{ + transform: scale(1.15); + } + 100%{ + transform: scale(1); + } +} + +.gameover h4{ + font-family: 'FIANSO'; + font-size: 18px; + color: #fff; + margin: inherit; + padding-bottom: 100px; + opacity: 0.8; +} + +.gameover a{ + font-family: 'FIANSO'; + font-size: 18px; + color: #fff; + margin: inherit; + text-align: center; + border: solid 3px #fff; + border-radius: 6px; + padding: 12px 24px; + text-decoration: none; + transition: 0.3s; + position: relative; + z-index: 5; + +} + +.gameover a:hover{ + background: #fff; + color: #000; } .map{ @@ -29,6 +126,7 @@ body{ display: inline-block; padding-top: 7px; padding-bottom: 3px; + overflow: hidden; } .line{ @@ -51,6 +149,18 @@ body{ animation: cibleBroken 0.3s 3; } +<<<<<<< Updated upstream +======= +.cible{ + background: url(../img/bg_cible.png) no-repeat; +} + +.cible-touchee{ + background: url(../img/bg_cible_broken.png) no-repeat; + animation: cibleBroken 0.3s 3; +} + +>>>>>>> Stashed changes @keyframes cibleBroken{ 0%{ opacity: 1; diff --git a/assets/fonts/Mario-Kart-DS.ttf b/assets/fonts/Mario-Kart-DS.ttf new file mode 100644 index 0000000..011a906 Binary files /dev/null and b/assets/fonts/Mario-Kart-DS.ttf differ diff --git a/assets/fonts/prstartk.ttf b/assets/fonts/prstartk.ttf new file mode 100644 index 0000000..6ce26eb Binary files /dev/null and b/assets/fonts/prstartk.ttf differ diff --git a/assets/js/script.js b/assets/js/script.js index bd9fad2..3a76b4e 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -112,6 +112,7 @@ function move(event) { } } +<<<<<<< Updated upstream setInterval(function(){ console.log('test'); if(bulletX == 0 || bulletY == 0){ @@ -192,6 +193,9 @@ setInterval(function(){ grid.style.background = 'url(./assets/img/bg_bullet.png) no-repeat'; grid.style.backgroundPosition = bulletDir; }, 32.12); +======= +document.addEventListener('keydown', move, false); +>>>>>>> Stashed changes var ntm = setInterval(function(){ x2 = Math.floor(Math.random() * 11); @@ -222,4 +226,9 @@ var ntm = setInterval(function(){ }, 1000); document.addEventListener('keydown', move, false); -setPosition(x, y, direction); \ No newline at end of file +setPosition(x, y, direction); +======= + + +}, 3000); +>>>>>>> Stashed changes diff --git a/index.html b/index.html index a79c8d5..b8ae256 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,6 @@ de_tank - - @@ -17,6 +11,15 @@
+
+

SCORE

+
999
+
+
+

GAME OVER

+

Votre score : 999

+ Rejouer +
@@ -203,7 +206,7 @@
-
+