This project is made to simulate the targeting system of the ghosts in PAC-MAN. Drag around the cats to positions of your choice (yellow is PAC-MAN, red is Blinky, pink is Pinky (duh), blue is Inky and orange is Clyde). You can also rotate PAC-MAN by hovering over him and pressing space. After all that, click the green flag. Four targets of the respective ghosts' colours will appear, and they represent where they would target in that situation.
I'll just give a quick run-down of the ghosts' AI's: - Blinky targets PAC-MAN's exact location in chase mode, and chickens to the top-right corner in scatter mode. - Pinky targets a bit ahead of PAC-MAN (4 grid spaces in the original to be exact), but when PAC-MAN is facing upwards, she targets near the top-right of him. She goes towards the top-left in scatter mode. - Inky's is probably the most complicated; the game draws a line between Blinky and PAC-MAN, and then doubles that distance, and where the line lands is Inky's target. His scatter position is the bottom-right. - Clyde, for the most part, works like Blinky, targeting PAC-MAN, however, when PAC-MAN gets within 8 grid spaces of Clyde, he chickens out to his scatter mode position, that being the bottom-left.