CS 290 Introduction to Game Development - Lab 8

  1. Create a new DriftSprite object representing the Sargasso Sea. The sprite image should be substantially large and, preferably, animated; the drifting speed should be minimal, but visible. Place two or more instances of this sprite on the map. Modify the game code so that the player ship sprite moving through the Sargasso Sea would do so at half the normal speed.
  2. Current implementation the placeSprite() method makes no guarantees that the newly repositioned sprite will not be in collision with the ship. Modify the method placeSprite() so that it this situation is avoided. Hint: add the third parameter to the placeSprite() method.