Fehler von move nach links und rechts aufheben
This commit is contained in:
parent
bb346648fb
commit
da39719fa4
@ -12,7 +12,7 @@ public class Menue {
|
|||||||
JButton button = new JButton();
|
JButton button = new JButton();
|
||||||
|
|
||||||
button.setText("Namen Eingeben");
|
button.setText("Namen Eingeben");
|
||||||
button.setPreferredSize(new Dimension(550,650));
|
button.setPreferredSize(new Dimension(400,500));
|
||||||
button.setBackground(Color.CYAN);
|
button.setBackground(Color.CYAN);
|
||||||
parent.add(button);
|
parent.add(button);
|
||||||
parent.pack();
|
parent.pack();
|
||||||
|
@ -11,7 +11,7 @@ public class Stein {
|
|||||||
private int deltax = 0;
|
private int deltax = 0;
|
||||||
private boolean collision = false;
|
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 BOARD_HEIGHT = 20;
|
||||||
public static final int BLOCK_SIZE = 30;
|
public static final int BLOCK_SIZE = 30;
|
||||||
|
|
||||||
@ -115,9 +115,9 @@ public void speedDown(){
|
|||||||
delayTime=normal;
|
delayTime=normal;
|
||||||
}
|
}
|
||||||
public void moveRigth(){
|
public void moveRigth(){
|
||||||
deltax = 2;
|
deltax = 1;
|
||||||
}
|
}
|
||||||
public void moveLeft(){
|
public void moveLeft(){
|
||||||
deltax = -2;
|
deltax = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user