Week 1 Examples: MVC + Speed + Direction + Velocity + Path SoruceCode zip flie

  1. EmptyTemplate Project:
  2. MVC: Model-View-Controller
  3. Speed:
  4. Constant speed with changing direction:
  5. Constant direction with varying speed:
  6. Vectors and Seeing Vectors:
  7. Changing velocity and speed:
  8. Ball follow path: Define and implement a soccer ball that continuously follow the vector-segments defined (follow the direction). The soccer ball should cover each segment in a fixed amount of time (faster on the short segments and slower on the longer segments). This goal of this exercise/example is to demonstrate direction (velocity) and magnitude (speed) of vectors.
  9. Ball sticking to path using distance travelled: Identical to the above example, only differences are
  10. Ball stick to path using number of ticks left: exactly the same as above, the only differences here are: