Enemies can be tagged as moving randomly, but it's very subtle.
This commit is contained in:
parent
222b39c403
commit
d6916b675e
4 changed files with 11 additions and 3 deletions
|
@ -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)};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue