Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- super.paintComponent(g);
- for(int x = 0; x < COL_COUNT; x++)
- {
- for(int y = 0; y < ROW_COUNT; y++)
- {
- TileType type = getTile(x, y);
- if(type != null)
- {
- drawTile(x * TILE_SIZE, y * TILE_SIZE, type, g);
- }
- }
- }
- g.setColor(Color.RED);
- g.drawRect(0, 0, getWidth() - 1, getHeight() - 1);
- for(int x = 0; x < COL_COUNT; x++)
- {
- for(int y = 0; y < ROW_COUNT; y++)
- {
- g.drawLine(x * TILE_SIZE, 0, x * TILE_SIZE, getHeight());
- g.drawLine(0, y * TILE_SIZE, getWidth(), y * TILE_SIZE);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement