Section II: The
XnaAssignmentBase Library
b. Controlling a circle
Goals:
Notice: To work with the XnaAssignmentBase Library, a bare minimum project must include:
|
public Game1() : base (new Vector2(0, 0), 15.0f) {} |
|
Vector2 pos; // circle position |
|
protected
override void
InitializeWorld() { |
|
protected
override
void UpdateWorld() {
Vector2 delta =
XnaAssignmentBase.GamePad.ThumbSticks.Left; |
|
protected
override
void DrawWorld() { |
![]() |
| Kelvin Sung Computing and Software Systems University of Washington, Bothell ksung@u.washington.edu |