Review questions

A When is the OnIdle method called? Which class is it a method of?
B How do we calculate the timestep dt between updates of our game?
C How does a critter use dt and its velocity to get its new position?
D What is the gain of having the dt we give our moving critters match the actual time between updates?
E What are some factors that influence the frame rate of your animation?
F How does the application pass the dt down to the individual critters in a game? Mention all the intervening classes.
G How does the stepDoc(dt) call both update the critter positions and draw them on the screen? Draw a sequence diagram.
H What is the relationship among CDocument::UpdateAllViews, CView::OnUpdate, CView::Invalidate, and CView::OnDraw ? Draw a ...

Get Software Engineering and Computer Games now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.