Skip to content

Commit

Permalink
Removed command functionality after game over
Browse files Browse the repository at this point in the history
  • Loading branch information
Williams-The-Mighty committed Apr 1, 2024
1 parent 7c10084 commit a241176
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ function update() {
if (gameOver) {
this.physics.pause();

document.getElementById("enableCommands").disable;

if (guardHit == true) {
gameOverMsg = this.physics.add.staticGroup();
gameOverMsg.create(380, CENTER_VERTICAL + 200, "GameOver").setScale(1.75);
Expand Down

0 comments on commit a241176

Please sign in to comment.