Topic 7: Another Graphical Break!

As in Topic 5, this Topic will not introduce any new topics but will allow you to use the GTGE graphical environment to get more practice with arrays. Today you are going to enhance your "move the hero" application by introducing first one, then two monsters.

Object-Oriented Chase Game

Simple case: one monster

Intermediate exercise: Array of monsters

Now enhance your game so that there are three monsters, and not just one. Put the monsters in an array and loop through the array to make all three monsters chase the hero. Initialise the monsters to the following positions: