diff --git a/Piece/src/application/Piece.java b/Piece/src/application/Piece.java index c5eadb8..e632b4c 100644 --- a/Piece/src/application/Piece.java +++ b/Piece/src/application/Piece.java @@ -23,7 +23,6 @@ public class Piece extends Application{ double y; - public void start(Stage primaryStage) throws Exception { Polygon piece1 = new Polygon(); @@ -144,6 +143,7 @@ public class Piece extends Application{ } //double click delayed bug to fix + //ftm just the last piece implemented can be rotated public static void rotaterght (Node node) { RotateTransition rotaterght = new RotateTransition(); //setting attributes for the RotateTransition @@ -155,9 +155,9 @@ public class Piece extends Application{ rotaterght.play();} public static void rotatelft (Node node) { - //Instantiating RotateTransition class to create the animation (rotation to the left) + RotateTransition rotatelft = new RotateTransition(); - //setting attributes for the RotateTransition + rotatelft.setByAngle(-90);// minus to rotate to the left rotatelft.autoReverseProperty(); rotatelft.setDuration(Duration.millis(1000));