72 avoidSameOverlapping - JcerelusDev/CanvasGameJs GitHub Wiki
avoidSameOverlapping method
It is used to avoid enemies to overlap each other while following or attacking.
In The game.update
let game = new Stage()
game.update = function(){
//other code
game.avoidSameOverlapping(enemies)
//other code
}