function playerShootBullet(shooter, originX, originY) {
  let currentTime = Date.now();
  if (currentTime - lastPlayerShot > shootDelay) {
    lastPlayerShot = currentTime;
    if (shooter.type == leftFacingGunPlayer) {
      addSprite(originX, originY, player_bullet_left);
    } else if (shooter.type == rightFacingGunPlayer) {
      addSprite(originX, originY, player_bullet_right);
    }
  }
}
Ellicit a bullet attack from a player.
Shoot a bullet.
@param {*} shooter attacker
@param {*} originX origin x
@param {*} originY origin y