From da39719fa4c8a6f1ed97911d9ff74ce554ba7d88 Mon Sep 17 00:00:00 2001 From: zhe Date: Fri, 17 Dec 2021 11:00:52 +0100 Subject: [PATCH] Fehler von move nach links und rechts aufheben --- src/Tetris/Menue.java | 2 +- src/Tetris/Stein.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Tetris/Menue.java b/src/Tetris/Menue.java index dbf10b6..a28d487 100644 --- a/src/Tetris/Menue.java +++ b/src/Tetris/Menue.java @@ -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(); diff --git a/src/Tetris/Stein.java b/src/Tetris/Stein.java index f6be245..eb34bd9 100644 --- a/src/Tetris/Stein.java +++ b/src/Tetris/Stein.java @@ -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; } }