Game Design Lab 10

Monster that Follows You Around All the Time

The "current" version of the in-class game demo contains a SimpleGameObject monster, that currently remains still. For this lab, make it follow the player around!
  1. Inherit from SimpleGameObject and make a new class for the monster.
  2. The new class will need a property named "speed"
  3. Override "overlap" and make it work. Checking for overlap in a sphere will work ok even though the monster is square, but square checks (like the Wall) are more accurate. Remember that "square" and "spherical" shapes are properties of the .obj file provided.
  4. Override "cycle" and set it to move toward the player. Moving just in x, y, and z directions (independently) will work just fine, even though the monster will move faster on a diagonal.