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!
- Inherit from SimpleGameObject and make a new class for the monster.
- The new class will need a property named "speed"
- 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.
- 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.