progress
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Eddy 2023-03-30 11:51:47 +02:00
parent a99a53868b
commit 5bfb2aba9b

View File

@ -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));