Skip to content

Commit

Permalink
Update flappy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xflipperkast committed Jun 24, 2023
1 parent 8613b18 commit ce16192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/js/flappy.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ function update() {

//click (listeners)
gameBox.addEventListener('click', fly);
gameBox.addEventListener('touchstart', fly);
window.addEventListener('touchstart', fly);
window.addEventListener('keydown', function(e) {
if (e.code === 'Space' || e.code === 'ArrowUp' || e.code === 'KeyW') fly();
});
Expand Down

0 comments on commit ce16192

Please sign in to comment.