Sebastiankay commited on
Commit
d1f36b4
1 Parent(s): 84c31c2

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -713,7 +713,7 @@
713
  })
714
 
715
  // Click event for shooting
716
- canvas.addEventListener("click", (e) => {
717
  if (curBubble.dx === 0 && curBubble.dy === 0 && !gameState.isPaused && !gameState.isGameOver) {
718
  // Only shoot if bubble isn't moving & game is active
719
  curBubble.dx = Math.sin(shootDeg) * curBubble.speed
 
713
  })
714
 
715
  // Click event for shooting
716
+ document.addEventListener("click", (e) => {
717
  if (curBubble.dx === 0 && curBubble.dy === 0 && !gameState.isPaused && !gameState.isGameOver) {
718
  // Only shoot if bubble isn't moving & game is active
719
  curBubble.dx = Math.sin(shootDeg) * curBubble.speed