Skip to content
Snippets Groups Projects
Commit 950e021d authored by yangxvlin's avatar yangxvlin
Browse files

add additional questions by xuliny

parent 00289d5f
No related branches found
No related tags found
No related merge requests found
...@@ -82,4 +82,12 @@ public class Q5 extends AbstractGame { ...@@ -82,4 +82,12 @@ public class Q5 extends AbstractGame {
// (a) // (a)
ball.update(); ball.update();
} }
// Additional exercise:
// 1. create a Player.java class just like you abstract the Ball
// 2. use up, down, left, right to control the player, stop player moving if it is going to be outside of the window
// 3. select some if condition block in update method and
// - right click it -> refactor -> Extract -> Method
// in order to improve the readability of your code :)
// SWEN20003 is fun!
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment