This game was done using vector math. The player would move by pick & click while collecting boxes, the enemy will chase the player around using line of sight.
In this code I'm find the distance between the player and enemy, then using that distance to get a angle after that I'm turning my angle into degrees. I then find out if my player is in range I than shoot a ray cast at the player can if my ray cast hits the player the enemy chases the player.
For the player movement I did a point and click, I use this by getting the input from right click then get the position from where it was clicked and ray cast it out and place my maker where it was clicked.