@@ -0,0 +1,814 @@
+import java.awt.Graphics;%0A%0A%0Apublic class StraightMover %7B%0A    private int x;%0A    private int y;%0A    private int xDirection;%0A    private int yDirection;%0A    private Sprite sprite;%0A%0A    /** Create a Bouncer that positions sprite at (startX, startY). */%0A    public StraightMover(int startX, int startY, Sprite sprite) %7B%0A        x = startX;%0A        y = startY;%0A        this.sprite = sprite; %0A    %7D%0A%0A    /** Starts moving the object in the direction (xIncrement, yIncrement). */%0A    public void setMovementVector(int xIncrement, int yIncrement) %7B%0A        xDirection = xIncrement;%0A        yDirection = yIncrement;%0A    %7D%0A%0A    public void draw(Graphics graphics) %7B%0A        sprite.draw(graphics, x, y);%0A%0A        // Move the center of the object each time we draw it%0A        x += xDirection;%0A        y += yDirection;%0A    %7D%0A%7D%0A

Create StraightMover.java