[Solved] I need to know a javascript code


$("#cvs").click(function() {
  shootBullet(player);
 });

This changes the event type to “click”, and removes the c.which === 32 because that is only applicable to key events (the if condition originally checked if the key being pressed was “Space”, so that way pressing another key wouldn’t shoot a bullet. But since you want to use Mouse events, this is not applicable).

solved I need to know a javascript code