Don't waste your ammo on the enemies you can kill with melee. I recommend using guns only against fast, tough or enemies with long range (bosses, dogs, tentacles). Some enemies can be dodged as well (just run past them with precise timing).