So, I am working on a roguelike game. There are rooms that have holes that act as traps and I want the walking enemies to avoid them. But I don't want to use complex pathfinding as I think it will slow down the game. So is there any simple solutions to this?
Right now it just makes the enemy stops upon collision with the hole, like this: