GuangyuanSD commited on
Commit
22b5849
·
verified ·
1 Parent(s): a48593e

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -3
index.html CHANGED
@@ -395,7 +395,7 @@
395
  targetSpeed: 2,
396
  targetCount: 1,
397
  gameOver: false,
398
- knockbackDistance: -3 // Added knockback distance
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 = 10;
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 = -3;
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';