コード例 #1
0
ファイル: GridPanel.java プロジェクト: arun-singh/TetrisGame
  /** Paints the grid, the falling shape and the next shape */
  public void paintComponent(Graphics g) {

    super.paintComponent(g);

    grid.drawGrid(grid.getGrid(), g);
    game.getCurrentShape().drawShape(g);
    game.drawAllShapes(g, game.getAllShapes());

    repaint();
  }