Move the blocks slightly higher so the entire field is visible.

master
sigonasr2 4 years ago
parent 73b47ebec9
commit 14d16485fe
  1. BIN
      Tetris/Tetris.jar
  2. 2
      Tetris/src/sig/game/GameCanvas.java

Binary file not shown.

@ -23,7 +23,7 @@ public class GameCanvas extends JPanel implements KeyListener{
public final static int FIELD_HEIGHT = BLOCK_SIZE*20;
public final static int FIELD_STARTX = WINDOW_WIDTH/2-FIELD_WIDTH/2;
public final static int FIELD_STARTY = WINDOW_HEIGHT/2+FIELD_HEIGHT/2;
public final static int FIELD_STARTY = WINDOW_HEIGHT/2+FIELD_HEIGHT/2-BLOCK_SIZE;
public final static int LINES_CLEARED_DISPLAYX = WINDOW_WIDTH/2+180;
public final static int LINES_CLEARED_DISPLAYY = WINDOW_HEIGHT/2;

Loading…
Cancel
Save