Level traversal works better now, compass is accurate, and direction is maintained when you traverse.

This commit is contained in:
Zed A. Shaw 2025-02-26 10:39:30 -05:00
parent b75a2b8c31
commit 14c7f660de
11 changed files with 35 additions and 16 deletions

View file

@ -52,7 +52,7 @@ public:
bool iswall(size_t x, size_t y);
bool can_move(Point move_to);
// BUG: this isn't really neighbors anymore. Maybe move? Walk?
bool neighbors(Point &out, bool random=false);
bool neighbors(Point &out, bool random=false, int direction=1);
void make_paths();
void set_target(const Point &at, int value=0);