Bug Report: Class B
I noticed that you can continue firing after you are dead, and even though no bullets appear, you hear the sound effect, and you are missing bullets as though you have fired them on your next life.
Possible fix: when you respawn the player, set the bullets to maximum, and do a check on the firing event that the player is not dead before playing the sound effect and decreasing the ammo count.