Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -0
index.html
CHANGED
@@ -214,6 +214,8 @@
|
|
214 |
if(e.key.toLowerCase() === 'c') {
|
215 |
currentWeapon = currentWeapon === 'cannon' ? 'machinegun' : 'cannon';
|
216 |
weaponInfo.textContent = `Current Weapon: ${currentWeapon.charAt(0).toUpperCase() + currentWeapon.slice(1)}`;
|
|
|
|
|
217 |
}
|
218 |
});
|
219 |
canvas.addEventListener('mousemove', (e) => {
|
|
|
214 |
if(e.key.toLowerCase() === 'c') {
|
215 |
currentWeapon = currentWeapon === 'cannon' ? 'machinegun' : 'cannon';
|
216 |
weaponInfo.textContent = `Current Weapon: ${currentWeapon.charAt(0).toUpperCase() + currentWeapon.slice(1)}`;
|
217 |
+
} else if(e.key.toLowerCase() === 'r') {
|
218 |
+
autoFire = !autoFire;
|
219 |
}
|
220 |
});
|
221 |
canvas.addEventListener('mousemove', (e) => {
|