Chapter 6. Animation

In this chapter we'll talk about how to write a program which continually updates itself onscreen. There are four tasks in an animation program.

  • Place an animation update call in the app where you loop back indefinitely often.

  • Calculate an appropriate timestep dt for each update.

  • Cascade update calls from the app down to the individual data elements of the documents, passing them the current dt.

  • Update the views after the data is updated.

In this chapter, we'll have one section on each of these four tasks.

    Part I: Software Engineering and Computer Games
    Part II: Software Engineering and Computer Games Reference