Enemies can be tagged as moving randomly, but it's very subtle.

This commit is contained in:
Zed A. Shaw 2025-01-09 14:25:34 -05:00
parent 222b39c403
commit d6916b675e
4 changed files with 11 additions and 3 deletions

View file

@ -43,7 +43,7 @@ void System::enemy_pathing(DinkyECS::World &world, Map &game_map, Player &player
Point out = position.location; // copy
if(game_map.distance(out) < config.hearing_distance) {
game_map.neighbors(out);
game_map.neighbors(out, motion.random);
motion = { int(out.x - position.location.x), int(out.y - position.location.y)};
}
}