This shows you the differences between the selected revision and the current version of the page.
| courses:cs102-200903:assigns:assign4 2009/10/30 12:23 | courses:cs102-200903:assigns:assign4 2009/10/30 12:30 current | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| - Write the code to move the //AUP// when the "left" or "right" key is pressed. Notice that in Figure 94 on page 288 that this can be done by writing a method in the //AUP// class with signature ''AUP move(UFOWorld, String)''. A stub of this method implementation is already provided for you in the starter code.\\ \\ | - Write the code to move the //AUP// when the "left" or "right" key is pressed. Notice that in Figure 94 on page 288 that this can be done by writing a method in the //AUP// class with signature ''AUP move(UFOWorld, String)''. A stub of this method implementation is already provided for you in the starter code.\\ \\ | ||
| - Make sure that the //AUP// can move only to the left and right edges of the world, but cannot move outside the world before going on to the next part. \\ \\ | - Make sure that the //AUP// can move only to the left and right edges of the world, but cannot move outside the world before going on to the next part. \\ \\ | ||
| + | |||
| ===== Part III: Add Random left and right motions to the UFO ===== | ===== Part III: Add Random left and right motions to the UFO ===== | ||