display credits on game over
This commit is contained in:
parent
ccd85b6bd8
commit
958ba01f6b
2
app.js
2
app.js
@ -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() {
|
||||||
|
@ -194,6 +194,7 @@ footer {
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
bottom: 1em;
|
bottom: 1em;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
@ -276,6 +276,7 @@ footer {
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
bottom: 1em;
|
bottom: 1em;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user