glitchassassin / screeps-cartographer

Cartographer is an advanced (and open source) movement library for Screeps
29 stars 8 forks source link

Dynamic avoidance #47

Closed glitchassassin closed 1 year ago

glitchassassin commented 1 year ago

Lets you set an avoidTargets() callback on your move opts (or on your default move opts) with a list of targets to path around. This will check each tick and repath just enough to avoid the targets.