Project #1

Now you too can rule the world. Play Bill Invaders.

Instructions:

1) Click the mouse down to begin the game.
2) Move your mouse around to make Bill follow you around.
3) Hold down the mouse button to fire shots.
4) Ruthlessly destroy any competing brands you see on 
   the screen, making use of flagship products to deflect 
   counter-fire.
If this applet performs too slowly to play, it is because of the implementation of Java on the platform you are on. Try IE 4.0 on a Windows machine, and things will be much faster. In fact, I'd say don't even bother trying this on a non-Windows machine; it's gonna be too slow. Although you may be skeptical, this is actually a feature.


    List of features:
  • Demonstrates several different moving sprites.
  • Sprites are clipped to the edge of the playfield.
  • Sprites implement transparent pixels.
  • There is a method that tests is a given playfield coordinate hits a non-transparent pixel of a sprite.
    More features:
  • Implements a space invaders-like game.
  • Animated sprites are supported.
  • Supports alpha blending.
  • Implements collision detection.
  • Foolishly mocks powerful people.
  • Maintains the status quo by only working well on Windows machines.
  • Illegal in all 50 states.
    Source files:
  • BillInvaders.java
    - this file implements the Bill Invaders game
  • AnimatedSprite.java
    - this file extends the Sprite class to support animated sprites
  • Sprite.java
    - this file is the base class for moveable sprites
  • MyRaster.java
    - this file extends the Raster class to allow for pixBlts and implements alpha blending
  • Raster.java
    - this is the Raster class presented in class
  • Clipper.java
    - this class will clip one Rectangle to another
  • Applet1.java
    - this is a generic extension of the java.applet.Applet class which hands all events off to the BillInvaders object