TODO6 - Use a single if/else statement with || to enable "WASD" input, for both upper and lowercase letters.
"public void paddleMovementCheck()"
   
  1. Complete the lab section first for practice with Space Smasher before moving on to the assignment.
  2. Remember to experiment with your game by enabling and disabling the solution to observe the desired behaviour (see the Stepwise Approach below).
  3. Find the TODO6.java starter file; run the empty solution file and explore the behaviour that you will replicate with your code.
  4. Next, read all of the comments at the top of the file in the file header.
  5. Determine the single function you need to declare inside the empty class. It's described in the comments and also at the top of this webpage.
  6. Declare the function "public void paddleMovementCheck(){}" and leave it empty and rerun the game with the mouse outside of the window- do you notice any missing behaviour?
  7. Inside your method, you must build one if statement that asks: "if the "A" key OR the "a" key is being pressed, then move the paddle to the left."
  8. Inside your if statement, you'll need to call one or more API functions to move the paddle, which are described in the comments and also listed here for reference:
  9. Method Signature Description
    boolean isKeyboardButtonDown(KeysEnum targetKey) returns true if the key indicated by "targetKey" is being pressed, false otherwise
    void paddleMoveLeft(); call this function to move the paddle to the left one unit
    void paddleMoveRight(); call this function to move the paddle to the right one unit

    Type Values
    KeysEnum {LEFT, RIGHT, UP, DOWN, SPACE, ENTER, ESCAPE, SHIFT, ..., ONE, TWO, THREE, ..., A,B,C,...Z, a,b,c,...,z}

  10. Once you've experimented with the methods above, consider playing with the extended set of methods below for even more complex and fun game behaviors
  11. Extended Method Signature Description
    void paddleMoveLeft(int whichPaddle) call this function to move the paddle specified by whichPaddle to the left one unit
    void paddleMoveRight(int whichPaddle) call this function to move the paddle specified by whichPaddle to the right one unit