Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -713,7 +713,7 @@
|
|
| 713 |
})
|
| 714 |
|
| 715 |
// Click event for shooting
|
| 716 |
-
|
| 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
|