g2.fillRect(0, 0, getWidth(), getHeight());
}
for (int i = 0; i < paintList.size(); i++)
{
Tile tile = paintList.get(i);
BufferedImage im = tile.getImage();
// todo
// clip to visible
g2.drawImage(im, tile.getX(), tile.getY(), null);
// paint
}
System.out.println("Map painted!");
}