blob: 64e1b8a940143c91a82e23c7dd2b5fee3d4ca11a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package fallTest;
import javafx.animation.*;
import javafx.util.Duration;
public class NoteNode {
private final int TIME = 20;
private NoteField info;
private Block vis;
TranslateTransition anim = new TranslateTransition(Duration.millis(TIME));
public NoteNode(NoteField newInfo, Block newVis) {
vis=newVis;
info = newInfo;
anim.setNode(vis);
anim.setByY(height);
anim.setCycleCount(1);
anim.setAutoReverse(false);
anim.play();
}
}
|