Simple demonstration of enemy artificial intelligence. If the hero (cat) gets too close to the enemy (bat), the enemy will chase him until the hero escapes (by getting out of range). If the hero is far away, the enemy will return to his "patrol" routine. Directions: - Control the hero with the mouse.
Another game from www.OnlineDesignTeacher.com Check out our 5 step guide to creating 2d games http://www.onlinedesignteacher.com/2016/03/create-2d-game-introduction.html