for (x=0; x<= width / tileWidth; x++)
{
for (y=0; y<= height / tileHeight ; y++)
{
g.drawImage(tile, x * tileWidth, y * tileHeight, this);
}
}
You need to offset by the width/height of the tile.
FlySwat
2009-03-06 23:22:26