Frighten Away the Dragon
Create an initial scene of a troll and a dragon (Medieval) as shown below. The troll is trying to frighten away the dragon from his favorite hunting grounds. The troll is to rant and rave while moving toward the dragon if the two are more than 5 meters apart. The troll should move toward the dragon every time the space bar is pressed. Use your own function to find out when the troll gets too close to the dragon. When the troll is less than 5 meters away from the dragon, have the dragon fly away.