Package Tetris.Structures

Examples of Tetris.Structures.Grid


    holdLabel.setHorizontalAlignment(SwingConstants.CENTER);
    holdLabel.setFont(Program.displayFont(Font.BOLD, 15));
    holdLabel.setBounds(25, 20, 100, 40);
    this.add(holdLabel);
   
    holdGrid = new Grid(true);
    holdGrid.setBounds(25, 70, 100, 100);
    this.add(holdGrid);
   
    holdBlock = null;
   
    gameGrid = new Grid(false);
    gameGrid.setBounds(150, 10, 305, 600);
    this.add(gameGrid);
   
    gameBlock = new Block(gameGrid);
   
    inQueueGrid = new Grid[QUEUE_SIZE];
    inQueueBlock = new Block[QUEUE_SIZE];
   
    JLabel
    nextLabel = new JLabel("Next");
    nextLabel.setForeground(Program.foreground);
    nextLabel.setHorizontalAlignment(SwingConstants.CENTER);
    nextLabel.setFont(Program.displayFont(Font.BOLD, 15));
    nextLabel.setBounds(480, 20, 100, 40);
    this.add(nextLabel);
   
    for (int i = 0; i < QUEUE_SIZE; ++i) {
      inQueueGrid[i] = new Grid(true);
      inQueueGrid[i].setBounds(480, 70 + 110 * i, 100, 100);
      this.add(inQueueGrid[i]);
     
      inQueueBlock[i] = new Block((inQueueGrid[i]));
    }
View Full Code Here

TOP

Related Classes of Tetris.Structures.Grid

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.