Beispiel #1
0
  /**
   * "locks the camera on the center of the given Shape. The camera
   *
   * <p>tries to keep the location in its center.
   *
   * @param shape the Shape which should be centered on the screen
   */
  public void centerOn(Shape shape) {

    this.centerOn(shape.getCenterX(), shape.getCenterY());
  }