Lab 2 - User Interactivity
Objectives
- Become familiar with GameAction and InputManager classes
- Download the chapter 3 source code and import the project into Eclipse.
- 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!
- 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.
- Add actions of shrinking and growing the size of the sprite when you
move the mouse left and right respectively.
- Email the modified Player and InputManagerTest files to me for grading.