Spaces:
Running
Running
Update index.html
Browse files- index.html +11 -10
index.html
CHANGED
|
@@ -345,11 +345,11 @@
|
|
| 345 |
<div class="weapon locked" data-weapon="double" data-price="300">
|
| 346 |
<div class="weapon-price">300</div>
|
| 347 |
</div>
|
| 348 |
-
<div class="weapon locked" data-weapon="shotgun" data-price="
|
| 349 |
-
<div class="weapon-price">
|
| 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>
|
|
@@ -385,9 +385,9 @@
|
|
| 385 |
weapons: {
|
| 386 |
basic: { price: 0, fireRate: 500, projectileCount: 1, spread: 0, bouncy: false },
|
| 387 |
rapid: { price: 50, fireRate: 250, projectileCount: 1, spread: 0, bouncy: false },
|
| 388 |
-
double: { price:
|
| 389 |
-
shotgun: { price:
|
| 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,7 +905,8 @@
|
|
| 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,7 +1030,7 @@
|
|
| 1029 |
state.targetSpeed = 2;
|
| 1030 |
state.targetCount = 1;
|
| 1031 |
state.gameOver = false;
|
| 1032 |
-
state.knockbackDistance = -
|
| 1033 |
|
| 1034 |
// Reset UI
|
| 1035 |
hitCountElement.textContent = '0';
|
|
|
|
| 345 |
<div class="weapon locked" data-weapon="double" data-price="300">
|
| 346 |
<div class="weapon-price">300</div>
|
| 347 |
</div>
|
| 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="1500">
|
| 352 |
+
<div class="weapon-price">1500</div>
|
| 353 |
</div>
|
| 354 |
</div>
|
| 355 |
<div id="custom-cursor"></div>
|
|
|
|
| 385 |
weapons: {
|
| 386 |
basic: { price: 0, fireRate: 500, projectileCount: 1, spread: 0, bouncy: false },
|
| 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: 1500, 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: -1 // 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 |
+
|
| 910 |
ejectionText.textContent = 'Ejection FACE!';
|
| 911 |
ejectionText.style.left = `${window.innerWidth / 2 - 150}px`;
|
| 912 |
ejectionText.style.top = `${window.innerHeight / 2 - 50}px`;
|
|
|
|
| 1030 |
state.targetSpeed = 2;
|
| 1031 |
state.targetCount = 1;
|
| 1032 |
state.gameOver = false;
|
| 1033 |
+
state.knockbackDistance = -1;
|
| 1034 |
|
| 1035 |
// Reset UI
|
| 1036 |
hitCountElement.textContent = '0';
|