Adding images to our cats
We will write four functions to add perfect images for our cats. The function should look similar to the following function:
APP.monsters[0].Init = function () { APP.monsters[0].up_images = []; APP.monsters[0].right_images = []; APP.monsters[0].down_images = []; APP.monsters[0].left_images = []; APP.monsters[0].up_images[0] = new Image(); APP.monsters[0].up_images[0].src = "img/monsters/blinky/up/0.png"; APP.monsters[0].right_images[0] = new Image(); APP.monsters[0].right_images[0].src = "img/monsters/blinky/right/0.png"; APP.monsters[0].down_images[0] = new Image(); APP.monsters[0].down_images[0].src = "img/monsters/blinky/down/0.png"; APP.monsters[0].left_images[0] = new Image(); APP.monsters[0].left_images[0].src = "img/monsters/blinky/left/0.png"; APP.monsters[0].up = false; APP.monsters[0].right = true; APP.monsters[0].down = false; APP.monsters[0].left = false; APP.monsters[0].x = APP.INITIAL_BLINKY_X...