Board erstellt

This commit is contained in:
Ewen Kerbs 2021-11-11 14:25:07 +01:00
parent 74d8c1e6d4
commit 6ed9390f77

View File

@ -11,7 +11,7 @@ public class Board extends JPanel
public static final int BOARD_WIDTH=10; public static final int BOARD_WIDTH=10;
public static final int BOARD_HEIGHT =20; public static final int BOARD_HEIGHT =20;
private Timer loop; private Timer loop;
private Color[][] board = new = Color[20][20]; private Color[][] board = new Color[BOARD_HEIGHT][BOARD_HEIGHT];
public Board() { public Board() {
loop = new Timer(500, new ActionListener() { loop = new Timer(500, new ActionListener() {
int n = 0; int n = 0;