Instructor: Trish Cornez
Construct a Virtual Pet app that illustrates a Finite State Machine.
App Requirements:
All virtual pets require food for survival.
The owner of the pet world must be able to provide food (using the dispenser), otherwise the pets will starve.
Food objects, once dispensed, are in constant motion, until they are eaten.
Pets move around their world burning off calories.
When hungry, a pet locates a Food object.
After eating a Food object, a pet should dash off to play with his toy and work off the food. NOTE: The toy moves back and forth across the stage.
A dead pet cannot be revived.
Allow the user to generate multiple pets (clicking on the Toy object). Each pet should be assigned a random easing velocity and stomach capacity.
Allow the pets to move using time-to-target.