コード例 #1
0
  // Overrides Animation.animate()
  @Override
  public void animate() {

    // Move the image
    moveIt(xSpeed, ySpeed);
    super.animate();

    // Move the underlying Rectangle
    setLocation(x, y);
  }