Lab 2 - User Interactivity

Objectives

  1. Download the chapter 3 source code and import the project into Eclipse.
     
  2. Run InputManagerTest and try out the user commands that make our sprite move left, right, jump, and pause play.  You can check out the listing to see what these commands are!
     
  3. Add a command which allows our sprite to "float" when you hit the F key.  Floating  is like a jump except the force of gravity is decreased by a factor of 20.  Make sure that the sprite doesn't float off the top of the screen and that our sprite can't jump when it is floating nor float when it is jumping.  You will probably need to modify the Player.java file as well as the InputManagerTest.
     
  4. Add actions of shrinking and growing the size of the sprite when you move the mouse left and right respectively.
     
  5. Email the modified Player and InputManagerTest files to me for grading.