I tried making it more realistic i think, but i don't know, what do you think? Arrow keys to move the blue player, the red is your "enemy" i guess. When he doesn't look at you, he will search you, but when he does see you, he will try to catch you. Put the mouse in the top-left corner to change variables by using the sliders.. Use the slider to change the Field of view (FOV) of the enemy and Accuracy. (A) FOV: 50 A: 5 These are the best for less lag. if you try higher FOV or lower A, it may get laggy. Thanks to @AnimeEpisodic and @FUNUT :D Also, i noticed that this is actually very accurate, depending on how far is something, it's more difficult for the enemy to notice it. Example would be the if you put the enemy in the bottom.right corner of the screen and the player in the opposite, it would be a little hard for the enemy to notice the player, even if it's not moving. :)