Shovel Knight developer Yacht Club Games goes into some depth describing and illustrating the very involved creation process for a seemingly static NPC. Interestingly, they use horse-headed characters as placeholders until the gameplay function that drives the design has been figured out.
Read the full article here.