display credits on game over

This commit is contained in:
Adrien MALINGREY 2020-11-09 12:29:43 +01:00
parent ccd85b6bd8
commit 958ba01f6b
4 changed files with 5 additions and 1 deletions

2
app.js
View File

@ -441,6 +441,7 @@ function newGame(startLevel) {
startSection.style.display = "none" startSection.style.display = "none"
gameSection.style.display = "block" gameSection.style.display = "block"
settingsSection.style.display = "none" settingsSection.style.display = "none"
footer.style.display = "none"
state = STATE.PLAYING state = STATE.PLAYING
pressedKeys = new Set() pressedKeys = new Set()
@ -631,6 +632,7 @@ function gameOver() {
startSection.style.display = "block" startSection.style.display = "block"
gameSection.style.display = "block" gameSection.style.display = "block"
settingsSection.style.display = "none" settingsSection.style.display = "none"
footer.style.display = "block"
} }
function autorepeat() { function autorepeat() {

View File

@ -194,6 +194,7 @@ footer {
left: 50%; left: 50%;
bottom: 1em; bottom: 1em;
transform: translateX(-50%); transform: translateX(-50%);
display: none;
} }
a { a {

View File

@ -276,6 +276,7 @@ footer {
left: 50%; left: 50%;
bottom: 1em; bottom: 1em;
transform: translateX(-50%); transform: translateX(-50%);
display: none;
} }
a { a {

View File

@ -198,6 +198,7 @@ footer {
left: 50%; left: 50%;
bottom: 1em; bottom: 1em;
transform: translateX(-50%); transform: translateX(-50%);
display: none;
} }
a { a {
@ -227,7 +228,6 @@ a {
border: 0 !important; border: 0 !important;
} }
#leaderboard td:first-child { #leaderboard td:first-child {
text-align: left; text-align: left;
} }