Code Representation

 

When entering the game, everything will be drawn which includes the background, the cat-character, and the “falling-fish.” The controls will allow the cat to move and the fish to fall, which will be done by clearing the screen and redrawing each part in the new position. The screen will be divided into nine sections and tapping the section of the screen will redraw the cat in the appropriate spot. There will be a logic check to see if the x and y positions of the fish and cat are equal which will allow for the continuance of the game and an increase in the player’s score. If not, the game is over.