Spaces:
Running
Running
Update index.html
Browse files- index.html +6 -7
index.html
CHANGED
|
@@ -348,8 +348,8 @@
|
|
| 348 |
<div class="weapon locked" data-weapon="shotgun" data-price="800">
|
| 349 |
<div class="weapon-price">800</div>
|
| 350 |
</div>
|
| 351 |
-
<div class="weapon locked" data-weapon="bouncy" data-price="
|
| 352 |
-
<div class="weapon-price">
|
| 353 |
</div>
|
| 354 |
</div>
|
| 355 |
<div id="custom-cursor"></div>
|
|
@@ -387,7 +387,7 @@
|
|
| 387 |
rapid: { price: 50, fireRate: 250, projectileCount: 1, spread: 0, bouncy: false },
|
| 388 |
double: { price: 300, fireRate: 300, projectileCount: 2, spread: 10, bouncy: false },
|
| 389 |
shotgun: { price: 800, fireRate: 500, projectileCount: 5, spread: 20, bouncy: false },
|
| 390 |
-
bouncy: { price:
|
| 391 |
},
|
| 392 |
lastShot: 0,
|
| 393 |
colors: ['#ff0000', '#00ff00', '#0000ff', '#ffff00', '#ff00ff', '#00ffff'],
|
|
@@ -395,7 +395,7 @@
|
|
| 395 |
targetSpeed: 2,
|
| 396 |
targetCount: 1,
|
| 397 |
gameOver: false,
|
| 398 |
-
knockbackDistance: -
|
| 399 |
};
|
| 400 |
|
| 401 |
// DOM elements
|
|
@@ -905,8 +905,7 @@
|
|
| 905 |
|
| 906 |
// Show "Ejection FACE!" text
|
| 907 |
const ejectionText = document.createElement('div');
|
| 908 |
-
ejectionText.className = 'ejection-text
|
| 909 |
-
|
| 910 |
ejectionText.textContent = 'Ejection FACE!';
|
| 911 |
ejectionText.style.left = `${window.innerWidth / 2 - 150}px`;
|
| 912 |
ejectionText.style.top = `${window.innerHeight / 2 - 50}px`;
|
|
@@ -1030,7 +1029,7 @@
|
|
| 1030 |
state.targetSpeed = 2;
|
| 1031 |
state.targetCount = 1;
|
| 1032 |
state.gameOver = false;
|
| 1033 |
-
state.knockbackDistance = -
|
| 1034 |
|
| 1035 |
// Reset UI
|
| 1036 |
hitCountElement.textContent = '0';
|
|
|
|
| 348 |
<div class="weapon locked" data-weapon="shotgun" data-price="800">
|
| 349 |
<div class="weapon-price">800</div>
|
| 350 |
</div>
|
| 351 |
+
<div class="weapon locked" data-weapon="bouncy" data-price="1600">
|
| 352 |
+
<div class="weapon-price">1600</div>
|
| 353 |
</div>
|
| 354 |
</div>
|
| 355 |
<div id="custom-cursor"></div>
|
|
|
|
| 387 |
rapid: { price: 50, fireRate: 250, projectileCount: 1, spread: 0, bouncy: false },
|
| 388 |
double: { price: 300, fireRate: 300, projectileCount: 2, spread: 10, bouncy: false },
|
| 389 |
shotgun: { price: 800, fireRate: 500, projectileCount: 5, spread: 20, bouncy: false },
|
| 390 |
+
bouncy: { price: 1600, fireRate: 100, projectileCount: 18, spread: 360, bouncy: true }
|
| 391 |
},
|
| 392 |
lastShot: 0,
|
| 393 |
colors: ['#ff0000', '#00ff00', '#0000ff', '#ffff00', '#ff00ff', '#00ffff'],
|
|
|
|
| 395 |
targetSpeed: 2,
|
| 396 |
targetCount: 1,
|
| 397 |
gameOver: false,
|
| 398 |
+
knockbackDistance: -3 // Added knockback distance
|
| 399 |
};
|
| 400 |
|
| 401 |
// DOM elements
|
|
|
|
| 905 |
|
| 906 |
// Show "Ejection FACE!" text
|
| 907 |
const ejectionText = document.createElement('div');
|
| 908 |
+
ejectionText.className = 'ejection-text';
|
|
|
|
| 909 |
ejectionText.textContent = 'Ejection FACE!';
|
| 910 |
ejectionText.style.left = `${window.innerWidth / 2 - 150}px`;
|
| 911 |
ejectionText.style.top = `${window.innerHeight / 2 - 50}px`;
|
|
|
|
| 1029 |
state.targetSpeed = 2;
|
| 1030 |
state.targetCount = 1;
|
| 1031 |
state.gameOver = false;
|
| 1032 |
+
state.knockbackDistance = -3;
|
| 1033 |
|
| 1034 |
// Reset UI
|
| 1035 |
hitCountElement.textContent = '0';
|