Fehler von move nach links und rechts aufheben

This commit is contained in:
zhe 2021-12-17 11:00:52 +01:00
parent bb346648fb
commit da39719fa4
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ public class Menue {
JButton button = new JButton();
button.setText("Namen Eingeben");
button.setPreferredSize(new Dimension(550,650));
button.setPreferredSize(new Dimension(400,500));
button.setBackground(Color.CYAN);
parent.add(button);
parent.pack();

View File

@ -11,7 +11,7 @@ public class Stein {
private int deltax = 0;
private boolean collision = false;
public static final int BOARD_WIDTH = 12;
public static final int BOARD_WIDTH = 11;
public static final int BOARD_HEIGHT = 20;
public static final int BLOCK_SIZE = 30;
@ -115,9 +115,9 @@ public void speedDown(){
delayTime=normal;
}
public void moveRigth(){
deltax = 2;
deltax = 1;
}
public void moveLeft(){
deltax = -2;
deltax = -1;
}
}