Lab 1 - 2D Graphics

Objectives

  1. Download the chapter 2 source code and import this project into Eclipse.
     
  2. Run SpriteTest2 and test it out.
     
  3. It is time for you to make some changes!  Add another Sprite.  Under the images directory there are three images which should animate a fly.  The fly should bounce around the window with the other sprites but should not do the flips like the others.
     
  4. Scale your sprites (except the fly) to half size.  Beware -- you will have to alter the bounds of the bounce now that the images are smaller in appearance.
     
  5. Have the sprites (except the fly) flip upside down when they are traveling up on the screen but have them remain right side up when traveling down on the screen.
     
  6. Email the modified SpriteTest2.java file to me for grading.