change pieces design

This commit is contained in:
samuelsmith 2025-05-07 14:28:51 +02:00
parent 94265ccd2f
commit 24a9be40f9
2 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -22,9 +22,9 @@ public class JPanelChessBoard extends JPanel {
private Game myGame; private Game myGame;
private MyInterface interfaceGlobal; private MyInterface interfaceGlobal;
private BufferedImage spriteSheet; private BufferedImage spriteSheet;
private int PIECE_WIDTH = 16; //in spritesheet private int PIECE_WIDTH = 200; //in spritesheet
private int PIECE_HEIGHT = 16; //in spritesheet private int PIECE_HEIGHT = 200; //in spritesheet
private int MARGIN = 6; private int MARGIN = 0;
private boolean pieceSelectorMode; private boolean pieceSelectorMode;
private boolean selectedPieceIsWhite; private boolean selectedPieceIsWhite;
@ -39,7 +39,7 @@ public class JPanelChessBoard extends JPanel {
selectedPieceType = PieceType.Pawn; selectedPieceType = PieceType.Pawn;
pieceSelectorMode = false; pieceSelectorMode = false;
try { try {
spriteSheet = ImageIO.read(new File("pieces.png")); spriteSheet = ImageIO.read(new File("newPieces.png"));
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }