NPChase

Contributed by NpChase

class quest.contrib.npchase.Chase[source]
choose_course(sprite, game)[source]

Moves the NPC towards the character.

Parameters
  • sprite – The sprite who is about to act.

  • game – The game object (to access attributes useful in choosing the course).

Returns

(int, int) pair of the amount to change in the x and y direction