![]() |
|
#region
__CODE_ADDED__ using |
|
#region
__CODE_ADDED__ constructor |
|
#region
__CODE_ADDED__ InitializeWorld |
|
#region
__CODE_ADDED__ UpdateWorld
Vector2 p =
XnaAssignmentBase.GamePad.ThumbSticks.Left; |
|
#region
__CODE_ADDED__ DrawWorld |
Also, notice the clear structure of event-driven model:
After the two one-time only functions, the rest of the application is a continuous cycle of:
It is important to note that, under this model, our program should not draw during UpdateWorld() and should not update application state during DrawWorld().
![]() |
| Kelvin Sung Computing and Software Systems University of Washington, Bothell ksung@u.washington.edu |