Skip to content

Commit

Permalink
fixed space input issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SamanthaSmith04 committed Oct 7, 2024
1 parent 04c9a9b commit 7f536ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ function switchLevel(level) {
}

function update() {
game.input.keyboard.removeCapture('SPACE');
if (gameOver) {
this.physics.pause();

Expand Down

0 comments on commit 7f536ef

Please sign in to comment.