diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-17 01:43:16 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-17 01:43:16 -0400 |
commit | 7f68620c10c2c5ea62195bd06e7344042e486419 (patch) | |
tree | 296fa3c77873608384ffc5a5d95f3d3e766b7e98 /src/fallTest/NoteNode.java | |
parent | 5c2c149dc1db92d8a457959c7f2071ea3005348c (diff) | |
parent | 0ec11156c87afc066b1a6ef8f569aedad3a16ae5 (diff) | |
download | NPEhero-7f68620c10c2c5ea62195bd06e7344042e486419.tar.gz NPEhero-7f68620c10c2c5ea62195bd06e7344042e486419.tar.bz2 NPEhero-7f68620c10c2c5ea62195bd06e7344042e486419.zip |
Merge branch 'main' of https://gitlab.sowgro.net/guitarheros/guitarhero
Diffstat (limited to 'src/fallTest/NoteNode.java')
-rw-r--r-- | src/fallTest/NoteNode.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/fallTest/NoteNode.java b/src/fallTest/NoteNode.java new file mode 100644 index 0000000..c24e10f --- /dev/null +++ b/src/fallTest/NoteNode.java @@ -0,0 +1,19 @@ +package fallTest;
+
+import javafx.animation.*;
+import javafx.util.Duration;
+
+public class NoteNode {
+ 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();
+ anim.setCycleCount(1);
+ anim.setAutoReverse(false);
+ anim.play();
+ }
+}
|