cutechicken commited on
Commit
a3fc5d8
·
verified ·
1 Parent(s): 9de7d6b

Update index.html

Browse files
Files changed (1) hide show
  1. 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) => {