User Tools

Site Tools


a_2048_gui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
a_2048_gui [2026/02/12 16:13] frchrisa_2048_gui [2026/02/12 16:36] (current) frchris
Line 119: Line 119:
  }  }
  g.setColor(Color.BLACK);  g.setColor(Color.BLACK);
-                int thickness = 5; // of the grid lines+                int thickness = 3; // of the grid lines
  for(int r = 0; r <= boardSize; r++) {  for(int r = 0; r <= boardSize; r++) {
      for(int i = 0; i < thickness ; i++)      for(int i = 0; i < thickness ; i++)
-                      g.drawLine(left, top + size*r, left + boardSize*size, top +size*r);+                      g.drawLine(left, top + size*r+i, left + boardSize*size, top +size*r+i);
  }  }
  
  for(int c = 0; c <= boardSize; c++){  for(int c = 0; c <= boardSize; c++){
                     for(int i = 0; i < thickness ; i++)                     for(int i = 0; i < thickness ; i++)
- g.drawLine(left+c*size, top ,left+c*size, top + boardSize* size);+ g.drawLine(left+c*size+i, top ,left+c*size+i, top + boardSize* size);
  }  }
  }  }
a_2048_gui.1770930795.txt.gz · Last modified: by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki