Updated functions to handle NPC ship and projectile spawning orientation