Skip to content

Commit

Permalink
Fixed animation problems
Browse files Browse the repository at this point in the history
Fixed initial value showing as "null = "hidden" instead of $score.classList.add("visible");
HadockKali committed Feb 15, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 90dfb7a commit baadc00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engine.js
Original file line number Diff line number Diff line change
@@ -193,6 +193,7 @@ let Game = {

$screen.menu && $screen.menu.classList.add("hidden");

$score.classList.add("visible");
},

pause () {
@@ -201,7 +202,6 @@ let Game = {

$playfield.classList.add("paused");

$score.classList.add("visible");

Game.status = "paused";

@@ -213,7 +213,6 @@ let Game = {

$playfield.classList.remove("paused");

$score.classList.remove("visible");

Game.status = "ongoing";

0 comments on commit baadc00

Please sign in to comment.