6.837 Fall 1998 Problem Set 1

Dilbert vs the Monkey, Round 1


Instructions

To move a sprite

  • Select the sprite you wish to move
  • Left click on the location where you wish the sprite to go to
    (Note: the "middle" (sprite.width, sprite.height) of the sprite is drawn at the clicked location).
  • Debugging Features

  • Click the "Clean" button to get rid of the debugging display info.
  • Click the "Debug" button to see the debugging info, which consists of a printout (outlined in the current background color) of the currently selected sprite's saved background, the current cursor location over the applet, and a log of "actions" performed.
  • Design Criteria

    Criteria Met? How Met
    Must use at least two different Sprites YES There are at least two sprites displayed by the applet
    Must allow movement of sprites YES User can click to selectand move sprites
    Must clip at edge of playfield YES The sprites draw properly on all four corners
    Must implement transparent pixels YES The transparent color for the sprites is <192,192,192>,
    and the background is either white or black...
    Must implement and demonstrate a method that tests
    if a given playfield coordinate overlaps a non-transparent
    pixel of the sprite at its current position
    YES You can only select a sprite by clicking on its visible portion
    This page was last edited on September 27, 1998