Keep the Shape Size
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
This commit is contained in:
Debucquoy Anthony 2023-05-04 13:12:22 +02:00
parent 64f77d870d
commit 94be15100d
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -1,22 +1,20 @@
package school_project.Utils;
import javafx.geometry.Rectangle2D;
import javafx.scene.Node;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.GridPane;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.shape.Rectangle;
import school_project.Controller;
import school_project.GameUI;
import school_project.Piece;
import school_project.Shape;
import school_project.*;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class MatrixShape extends GridPane {
public Shape shape;
public Vec2 boundary_size = new Vec2();
private Paint color;
public MatrixShape(Shape shape) {
super();
@ -52,6 +50,7 @@ public class MatrixShape extends GridPane {
}
}
}
boundary_size = new Vec2((GameUI.SEGMENT_SIZE + GameUI.SPACE_SIZE) * shape.getWidth(), (GameUI.SEGMENT_SIZE + GameUI.SPACE_SIZE) * shape.getHeight());
}
public void setColor(Paint p) {
color = p;