Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -3
index.html
CHANGED
|
@@ -395,7 +395,7 @@
|
|
| 395 |
targetSpeed: 2,
|
| 396 |
targetCount: 1,
|
| 397 |
gameOver: false,
|
| 398 |
-
knockbackDistance: -
|
| 399 |
};
|
| 400 |
|
| 401 |
// DOM elements
|
|
@@ -850,7 +850,7 @@
|
|
| 850 |
|
| 851 |
const centerX = window.innerWidth / 2;
|
| 852 |
const centerY = window.innerHeight / 2;
|
| 853 |
-
const centerRadius =
|
| 854 |
|
| 855 |
state.targets.forEach(target => {
|
| 856 |
// Check if any part of target is within center radius
|
|
@@ -1029,7 +1029,7 @@
|
|
| 1029 |
state.targetSpeed = 2;
|
| 1030 |
state.targetCount = 1;
|
| 1031 |
state.gameOver = false;
|
| 1032 |
-
state.knockbackDistance = -
|
| 1033 |
|
| 1034 |
// Reset UI
|
| 1035 |
hitCountElement.textContent = '0';
|
|
|
|
| 395 |
targetSpeed: 2,
|
| 396 |
targetCount: 1,
|
| 397 |
gameOver: false,
|
| 398 |
+
knockbackDistance: -30 // Added knockback distance
|
| 399 |
};
|
| 400 |
|
| 401 |
// DOM elements
|
|
|
|
| 850 |
|
| 851 |
const centerX = window.innerWidth / 2;
|
| 852 |
const centerY = window.innerHeight / 2;
|
| 853 |
+
const centerRadius = 1;
|
| 854 |
|
| 855 |
state.targets.forEach(target => {
|
| 856 |
// Check if any part of target is within center radius
|
|
|
|
| 1029 |
state.targetSpeed = 2;
|
| 1030 |
state.targetCount = 1;
|
| 1031 |
state.gameOver = false;
|
| 1032 |
+
state.knockbackDistance = -30;
|
| 1033 |
|
| 1034 |
// Reset UI
|
| 1035 |
hitCountElement.textContent = '0';
|