Idle mode and NPC code

1st – 2nd / feb

I started some work on NPC’s, mainly the escort-function and ability for the NPC to follow you and try to stay behind you. I also added code and the sprite for the dog-friend to sit down when idle.

Some other stuff:

  • Bugfix: zombies not idling when the player exits the detection (instead now they focus on the dog when the player leaves their “vision”)
  • Bugfix: Dog does not get confused when fighting more than 1 zombie (dog used to run back to the player when the first zombie left it’s “vision”, it practically could only remember one zombie at a time).
  • New exit/save/load features
  • Added an autosave-feature (still needs some visuals)