use of org.fxyz.cameras.AdvancedCamera in project FXyzLib by Birdasaur.
the class CameraController method setCamera.
public void setCamera(AdvancedCamera camera) {
this.camera = camera;
switch(animPref) {
case TIMELINE:
timeline.getKeyFrames().addAll(new KeyFrame(Duration.millis(15), e -> {
new Timeline(new KeyFrame[] { new KeyFrame(Duration.ONE, ev -> {
update();
}) }).play();
}));
timeline.play();
break;
case TIMER:
timer.start();
break;
case TRANSITION:
transition.play();
break;
case ANIMATION:
break;
}
}
Aggregations